kernel generates spurious SIGTRAPs in debugged applications
Bug #253591 reported by
Frédéric RIss
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-image-
--> lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
linux-image-
Under some conditions, the kernel generates spurious SIGTRAPs when debugging a program. It seems the kernel executes PTRACE_SINGLESTEP instead of the requested PTRACE_CONTINUE. The easiest way to see this effect is in the GDB testsuite, in the shlib-call.exp test (I checked that the GDB package in hardy exposes this).
To post a comment you must log in.
Something wasn't very clear in what I said above. This isn't only some bizarre testsuite FAIL. This affects real life debugging. I can't debug my C++ code at all due to this bug. The bug manifests itself with some sequences of stepping and calling debuggee functions. It does it all the time when I debug C++ code because then the debugger calls functions for operators.
I'd just like to be sure that this bug doesn't get any answer because there're more serious issues than making some programs undebugable, and not because it looks like some totally theoretical issue.