| Summary: | gdb 6.0 gives incoherent backtraces in multithreaded programs | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Michael C. Martin <mcmartin> |
| Component: | [OLD] Development | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | mrannanj |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | 40464 | ||
| Bug Blocks: | |||
| Attachments: | sample backtraces from gdb 6.0 and 5.3 | ||
|
Description
Michael C. Martin
2004-02-12 17:57:50 UTC
The referenced bug should be Bug #40464, not 30841. Created attachment 25510 [details]
sample backtraces from gdb 6.0 and 5.3
These are the sample backtraces from UQM under gdb 6.0 (first) and 5.3
(second).
libsdl among others is not compiled with -ggdb, and also stripped. Rectify this for all libs used, as well as app, and reopen if still an issue. re-emerging SDL and recompiling app with -ggdb has no effect on backtrace. The app has always been compiled with -g alone, nor was the app ever stripped. Even when SDL *was* stripped, 5.3 could (and can) still produce backtraces inside the app. Its automatically stripped by portage ... The sample backtrace is given is with the default libSDL emerge - does gdb 6.0 add the requirement that nothing may be stripped? 5.3 goes through it with no difficulty. This problem does not occur with breakpoints; a thread with a breakpoint in it will give a proper backtrace (though all the others will still give "??" for almost every frame, unlike gdb 5.3). This may just be a change in functionality between 6.0 and 5.3. please try with latest gdb and glibc |