Discussion:
[vbox-dev] Cannot debug linux kernel with VBox 4.3+
Aaron Lewis
2013-12-31 07:29:44 UTC
Permalink
Hi,

I couldn't use kgdb to debug a linux kernel running inside VBox.

When the kernel crashes, VBox pops up a dialog asking me either to
Ignore the error or Close the VM. The former does no work, and the
whole thing freezes up

Any ideas?
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Frank Mehnert
2014-01-07 09:37:09 UTC
Permalink
AAron,
Post by Aaron Lewis
I couldn't use kgdb to debug a linux kernel running inside VBox.
When the kernel crashes, VBox pops up a dialog asking me either to
Ignore the error or Close the VM. The former does no work, and the
whole thing freezes up
do you have VT-x / AMD-V enabled for this VM and is this feature
really used (VBox.log file)? And are you on Intel or on AMD? I know
there were some VMM changes / fixes regarding debug exceptions.

Kind regards,

Frank
--
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

Hauptverwaltung: Riesstr. 25, D-80992 M?nchen
Registergericht: Amtsgericht M?nchen, HRA 95603
Gesch?ftsf?hrer: J?rgen Kunz

Komplement?rin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140107/b6ce4176/attachment.bin
Aaron Lewis
2014-01-08 05:46:39 UTC
Permalink
Hi Frank,

The CPU model is: Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz

And yes I have VT-x enabled.

The VBox.log is uploaded here: http://paste.ubuntu.com/6713174/
Post by Frank Mehnert
AAron,
Post by Aaron Lewis
I couldn't use kgdb to debug a linux kernel running inside VBox.
When the kernel crashes, VBox pops up a dialog asking me either to
Ignore the error or Close the VM. The former does no work, and the
whole thing freezes up
do you have VT-x / AMD-V enabled for this VM and is this feature
really used (VBox.log file)? And are you on Intel or on AMD? I know
there were some VMM changes / fixes regarding debug exceptions.
Kind regards,
Frank
--
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany
Hauptverwaltung: Riesstr. 25, D-80992 M?nchen
Registergericht: Amtsgericht M?nchen, HRA 95603
Gesch?ftsf?hrer: J?rgen Kunz
Komplement?rin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Ramshankar
2014-01-10 14:19:12 UTC
Permalink
Post by Aaron Lewis
Hi Frank,
And yes I have VT-x enabled.
The VBox.log is uploaded here: http://paste.ubuntu.com/6713174/
Does disable Nested Paging for the VM mitigate/workaround the issue?

Regards,
Ram.
Post by Aaron Lewis
Post by Frank Mehnert
AAron,
Post by Aaron Lewis
I couldn't use kgdb to debug a linux kernel running inside VBox.
When the kernel crashes, VBox pops up a dialog asking me either to
Ignore the error or Close the VM. The former does no work, and the
whole thing freezes up
do you have VT-x / AMD-V enabled for this VM and is this feature
really used (VBox.log file)? And are you on Intel or on AMD? I know
there were some VMM changes / fixes regarding debug exceptions.
Kind regards,
Frank
--
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany
Hauptverwaltung: Riesstr. 25, D-80992 M?nchen
Registergericht: Amtsgericht M?nchen, HRA 95603
Gesch?ftsf?hrer: J?rgen Kunz
Komplement?rin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
Aaron Lewis
2014-01-12 02:04:43 UTC
Permalink
No, Nested-Paging is disabled, and I still see the dialog popsup

On Fri, Jan 10, 2014 at 10:19 PM, Ramshankar
Post by Ramshankar
Post by Aaron Lewis
Hi Frank,
And yes I have VT-x enabled.
The VBox.log is uploaded here: http://paste.ubuntu.com/6713174/
Does disable Nested Paging for the VM mitigate/workaround the issue?
Regards,
Ram.
Post by Aaron Lewis
Post by Frank Mehnert
AAron,
Post by Aaron Lewis
I couldn't use kgdb to debug a linux kernel running inside VBox.
When the kernel crashes, VBox pops up a dialog asking me either to
Ignore the error or Close the VM. The former does no work, and the
whole thing freezes up
do you have VT-x / AMD-V enabled for this VM and is this feature
really used (VBox.log file)? And are you on Intel or on AMD? I know
there were some VMM changes / fixes regarding debug exceptions.
Kind regards,
Frank
--
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany
Hauptverwaltung: Riesstr. 25, D-80992 M?nchen
Registergericht: Amtsgericht M?nchen, HRA 95603
Gesch?ftsf?hrer: J?rgen Kunz
Komplement?rin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Aaron Lewis
2014-01-12 02:06:13 UTC
Permalink
If I don't attach gdb to the remote serial port, the dialog won't pop up.

And I can see the kernel panic in VBoxGUI.

On Sun, Jan 12, 2014 at 10:04 AM, Aaron Lewis
Post by Aaron Lewis
No, Nested-Paging is disabled, and I still see the dialog popsup
On Fri, Jan 10, 2014 at 10:19 PM, Ramshankar
Post by Ramshankar
Post by Aaron Lewis
Hi Frank,
And yes I have VT-x enabled.
The VBox.log is uploaded here: http://paste.ubuntu.com/6713174/
Does disable Nested Paging for the VM mitigate/workaround the issue?
Regards,
Ram.
Post by Aaron Lewis
Post by Frank Mehnert
AAron,
Post by Aaron Lewis
I couldn't use kgdb to debug a linux kernel running inside VBox.
When the kernel crashes, VBox pops up a dialog asking me either to
Ignore the error or Close the VM. The former does no work, and the
whole thing freezes up
do you have VT-x / AMD-V enabled for this VM and is this feature
really used (VBox.log file)? And are you on Intel or on AMD? I know
there were some VMM changes / fixes regarding debug exceptions.
Kind regards,
Frank
--
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany
Hauptverwaltung: Riesstr. 25, D-80992 M?nchen
Registergericht: Amtsgericht M?nchen, HRA 95603
Gesch?ftsf?hrer: J?rgen Kunz
Komplement?rin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Aaron Lewis
2014-01-13 06:41:56 UTC
Permalink
Hmm, I have downgraded to 4.2.18, still not working

When the kernel crashes, the serial port seems to be dead as well. gdb
on the host is not receiving anything

Funny thing is, I remember VBox works well months ago, it all just
went off suddenly ;-(

P.S: Nested paging do hinder debugging in 4.2.18

On Sun, Jan 12, 2014 at 10:06 AM, Aaron Lewis
Post by Aaron Lewis
If I don't attach gdb to the remote serial port, the dialog won't pop up.
And I can see the kernel panic in VBoxGUI.
On Sun, Jan 12, 2014 at 10:04 AM, Aaron Lewis
Post by Aaron Lewis
No, Nested-Paging is disabled, and I still see the dialog popsup
On Fri, Jan 10, 2014 at 10:19 PM, Ramshankar
Post by Ramshankar
Post by Aaron Lewis
Hi Frank,
And yes I have VT-x enabled.
The VBox.log is uploaded here: http://paste.ubuntu.com/6713174/
Does disable Nested Paging for the VM mitigate/workaround the issue?
Regards,
Ram.
Post by Aaron Lewis
Post by Frank Mehnert
AAron,
Post by Aaron Lewis
I couldn't use kgdb to debug a linux kernel running inside VBox.
When the kernel crashes, VBox pops up a dialog asking me either to
Ignore the error or Close the VM. The former does no work, and the
whole thing freezes up
do you have VT-x / AMD-V enabled for this VM and is this feature
really used (VBox.log file)? And are you on Intel or on AMD? I know
there were some VMM changes / fixes regarding debug exceptions.
Kind regards,
Frank
--
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany
Hauptverwaltung: Riesstr. 25, D-80992 M?nchen
Registergericht: Amtsgericht M?nchen, HRA 95603
Gesch?ftsf?hrer: J?rgen Kunz
Komplement?rin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Azat Khuzhin
2014-01-25 16:16:28 UTC
Permalink
Hi, Aaron,

Just in case, vbox 4.2.16_Debianr86992 works perfectly for me (kgdb,gdb).

On Mon, Jan 13, 2014 at 10:41 AM, Aaron Lewis
Post by Aaron Lewis
Hmm, I have downgraded to 4.2.18, still not working
When the kernel crashes, the serial port seems to be dead as well. gdb
on the host is not receiving anything
Funny thing is, I remember VBox works well months ago, it all just
went off suddenly ;-(
P.S: Nested paging do hinder debugging in 4.2.18
On Sun, Jan 12, 2014 at 10:06 AM, Aaron Lewis
Post by Aaron Lewis
If I don't attach gdb to the remote serial port, the dialog won't pop up.
And I can see the kernel panic in VBoxGUI.
On Sun, Jan 12, 2014 at 10:04 AM, Aaron Lewis
Post by Aaron Lewis
No, Nested-Paging is disabled, and I still see the dialog popsup
On Fri, Jan 10, 2014 at 10:19 PM, Ramshankar
Post by Ramshankar
Post by Aaron Lewis
Hi Frank,
And yes I have VT-x enabled.
The VBox.log is uploaded here: http://paste.ubuntu.com/6713174/
Does disable Nested Paging for the VM mitigate/workaround the issue?
Regards,
Ram.
Post by Aaron Lewis
Post by Frank Mehnert
AAron,
Post by Aaron Lewis
I couldn't use kgdb to debug a linux kernel running inside VBox.
When the kernel crashes, VBox pops up a dialog asking me either to
Ignore the error or Close the VM. The former does no work, and the
whole thing freezes up
do you have VT-x / AMD-V enabled for this VM and is this feature
really used (VBox.log file)? And are you on Intel or on AMD? I know
there were some VMM changes / fixes regarding debug exceptions.
Kind regards,
Frank
--
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany
Hauptverwaltung: Riesstr. 25, D-80992 M?nchen
Registergericht: Amtsgericht M?nchen, HRA 95603
Gesch?ftsf?hrer: J?rgen Kunz
Komplement?rin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
--
Respectfully
Azat Khuzhin
Loading...