Opened 15 years ago
Closed 15 years ago
#5742 closed bug (fixed)
gdb starts kdl: PANIC: spurious debug exception in kernel mode
Reported by: | lucian | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/Kernel | Version: | R1/Development |
Keywords: | Cc: | mdisreali@… | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Running on haiku-nightly-hrev36330-x86gcc4-raw.zip in Qemu.
I've created a small program:
int main() { printf("a"); return 0; }
And ran:
$ gcc -g a.c $ gdb ./a.out (gdb) start (gdb) n
After hitting n
I immediately went to KDL. The bug happens on more complex programs too and even on prebuilt programs:
gdb `which StyleEdit`
. 100% reproducibility.
In KDL continue
will lead to a subsequent panic, ad nauseam.
The panic title:
PANIC: spurious debug exception in kernel mode (no condition recognized)
. I'll attach a syslog as soon as I learn how to get one out from qemu.
Attachments (1)
Change History (7)
comment:1 by , 15 years ago
Cc: | added |
---|
by , 15 years ago
Attachment: | haiku_r36330_closing_gdb_causes_kdl.txt added |
---|
comment:2 by , 15 years ago
Component: | - General → System/Kernel |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 15 years ago
Status: | assigned → in-progress |
---|
follow-up: 6 comment:4 by , 15 years ago
The hrev36340 commit fixes the unwanted trips to KDL.
I'm not sure if this is another issue, or something related: stepping with n
in gdb does not work, replying "cannot determine bounds of current function". continue
however works.
comment:5 by , 15 years ago
Disreali, can you check with the latest nightly image if your problem is solved too (to be sure they are the same issue, and not distinct)?
comment:6 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Replying to lucian:
The hrev36340 commit fixes the unwanted trips to KDL. I'm not sure if this is another issue, or something related: stepping with
n
in gdb does not work, replying "cannot determine bounds of current function".continue
however works.
I've noticed that, too. gdb seems to have trouble with the syscall trampoline code. It is possible that special handling is needed for it, but not implemented. As long as debug info for the executed code is available it should work OK, though.
i also experienced a couple instances of closing the gdb term would cause a kdl on hrev36330.
One was when Jukebox crashed. I select debug button, copied bt output and as some as I closed the gdb term, the system kdl-ed. I don't know it will help, but including the jukebox gdb