This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/10510] New: Use of follow-fork-mode child causes GDB to crash
- From: "avi at checkpoint dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 11 Aug 2009 12:11:04 -0000
- Subject: [Bug gdb/10510] New: Use of follow-fork-mode child causes GDB to crash
- Reply-to: sourceware-bugzilla at sourceware dot org
I try to debug a child process spawned by the process attached to be GDB. For
this I set follow-fork-mode child (prior to fork) and continue the parent
process. GDB crashes.
Program runs on Linux 2.6.18.
GDB is compiled using gcc 3.2.3
Program is compiled using gcc 3.2.3
Full scenario:
1. The parent process runs
2. GDB <executable> <pid>
3. break <some lines prior to fork>
4. continue and trigger spawning. GDB stops in the breakpoint
5. set follow-fork-mode child
6. continue
After some seconds GDB crashes. Its backtrace:
#0 0x080987fd in clear_lwpid_callback (thread=0xade2428, dummy=0x0)
at linux-thread-db.c:762
#1 0x0810c6f7 in iterate_over_threads (
callback=0x80987f4 <clear_lwpid_callback>, data=0x0) at thread.c:212
#2 0x08098852 in thread_db_resume (ptid={pid = 4363, lwp = 4363, tid = 0},
step=1, signo=TARGET_SIGNAL_0) at linux-thread-db.c:779
#3 0x08103221 in resume (step=1, sig=TARGET_SIGNAL_0) at infrun.c:651
#4 0x08105f63 in keep_going (ecs=0x7fa17310) at infrun.c:2915
#5 0x0810430f in handle_inferior_event (ecs=0x7fa17310) at infrun.c:2721
#6 0x081038f2 in wait_for_inferior (treat_exec_as_sigtrap=0) at infrun.c:1042
#7 0x08103686 in proceed (addr=1, siggnal=TARGET_SIGNAL_HUP, step=0)
at infrun.c:844
#8 0x081007cc in continue_command (proc_count_exp=0x0, from_tty=1)
at infcmd.c:653
#9 0x080b3cf6 in do_cfunc (c=0xade2428, args=0x0, from_tty=1)
at ../gdb/cli/cli-decode.c:60
#10 0x080b571e in cmd_func (cmd=0x92bd810, args=0x0, from_tty=1)
at ../gdb/cli/cli-decode.c:1663
#11 0x0808470b in execute_command (p=0x92a3129 "", from_tty=1) at top.c:449
#12 0x08111211 in command_handler (command=0x92a3128 "c") at event-top.c:518
#13 0x081116a1 in command_line_handler (rl=0xd012548 "H08\r`g9\r")
at event-top.c:804
#14 0x081a4894 in rl_callback_read_char () at callback.c:205
#15 0x08110ba7 in rl_callback_read_char_wrapper (client_data=0x0)
at event-top.c:177
#16 0x0811111e in stdin_event_handler (error=0, client_data=0xade2428)
at event-top.c:431
#17 0x08110484 in handle_file_event (event_file_desc=0) at event-loop.c:728
#18 0x0810ffc8 in process_event () at event-loop.c:341
#1
--
Summary: Use of follow-fork-mode child causes GDB to crash
Product: gdb
Version: 6.8
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned at sourceware dot org
ReportedBy: avi at checkpoint dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10510
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.