Bug 8623 - Application terminates when running under gdb
Summary: Application terminates when running under gdb
Status: ASSIGNED
Alias: None
Product: gdb
Classification: Unclassified
Component: threads (show other bugs)
Version: unknown
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 7778 8910 9086 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-18 08:18 UTC by bryner
Modified: 2024-01-13 19:21 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bryner 2004-01-18 08:18:00 UTC
[Converted from Gnats 1518]

When running Mozilla under gdb, it often terminates during startup, with the message:

Couldn't get registers: No such process.

Here's the output of 'set debug lin-lwp 1' leading up to the abnormal exit:

RC:  PTRACE_CONT LWP 6051, 0, 0 (resume sibling)
RC:  PTRACE_CONT LWP 6050, 0, 0 (resume sibling)
RC:  PTRACE_CONT LWP 6049, 0, 0 (resume sibling)
RC:  PTRACE_CONT LWP 6045, 0, 0 (resume sibling)
LLR: PTRACE_CONT process 6048, 0 (resume event thread)
LLW: waitpid 6045 received Unknown signal 0 (terminated)
SC:  kill LWP 6051 **<SIGSTOP>**
SC:  lwp kill -1 No such process
WL: LWP 6051 vanished.
WL: LWP 6051 exited.
SC:  kill LWP 6050 **<SIGSTOP>**
SC:  lwp kill -1 No such process
WL: LWP 6050 vanished.
WL: LWP 6050 exited.
SC:  kill LWP 6049 **<SIGSTOP>**
SC:  lwp kill -1 No such process
WL: LWP 6049 vanished.
WL: LWP 6049 exited.
SC:  kill LWP 6048 **<SIGSTOP>**
SC:  lwp kill -1 No such process
WL: LWP 6048 vanished.
WL: LWP 6048 exited.
LLW: LWP 6045 exited.
LLW: Candidate event Unknown signal 0 (terminated) in LWP 6045.

I can provide other debug output if it would be helpful.  Also, I believe this problem has been around for awhile... I'm not sure it has ever worked correctly with NPTL.

Release:
2004-01-18-cvs

Environment:
Fedora Core 1 (kernel 2.4.22-1.2149.nptl, glibc 2.3.2-101.4)

How-To-Repeat:
- Do a stock debug build of Mozilla
- Start gdb via the included shell script:
  ./mozilla -d gdb -g

(this sets up LD_LIBRARY_PATH and then starts gdb on the binary)

The problem happens much less often on optimized builds of Mozilla.
Comment 1 Hannes Domani 2024-01-13 12:05:02 UTC
*** Bug 9086 has been marked as a duplicate of this bug. ***
Comment 2 Hannes Domani 2024-01-13 19:21:12 UTC
*** Bug 8910 has been marked as a duplicate of this bug. ***
Comment 3 Hannes Domani 2024-01-13 19:21:36 UTC
*** Bug 7778 has been marked as a duplicate of this bug. ***