This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/13728] GDB crashes on catch exec -> detach


http://sourceware.org/bugzilla/show_bug.cgi?id=13728

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-02-29 17:01:50 UTC ---
The "detach" causes the bpstat to be freed;
but code higher up the stack is still using it.

==23681== Invalid read of size 8
==23681==    at 0x66ED20: bpstat_do_actions_1 (breakpoint.c:3832)
==23681==    by 0x66ED6B: bpstat_do_actions (breakpoint.c:3914)
==23681==    by 0x70098A: inferior_event_handler (inf-loop.c:117)
==23681==    by 0x6E038D: fetch_inferior_event (infrun.c:2817)
==23681==    by 0x700A25: fetch_inferior_event_wrapper (inf-loop.c:145)
==23681==    by 0x6F5BD7: catch_errors (exceptions.c:546)
==23681==    by 0x700793: inferior_event_handler (inf-loop.c:53)
==23681==    by 0x5D19C5: handle_target_event (linux-nat.c:4950)
==23681==    by 0x6FE461: handle_file_event (event-loop.c:827)
==23681==    by 0x6FD927: process_event (event-loop.c:401)
==23681==    by 0x6FD9C9: gdb_do_one_event (event-loop.c:453)
==23681==    by 0x6FDA3F: start_event_loop (event-loop.c:490)
==23681==  Address 0x4fd4270 is 0 bytes inside a block of size 48 free'd
==23681==    at 0x4A0662E: free (vg_replace_malloc.c:366)
==23681==    by 0x819DD4: xfree (common-utils.c:107)
==23681==    by 0x66E7E6: bpstat_free (breakpoint.c:3631)
==23681==    by 0x66E81F: bpstat_clear (breakpoint.c:3649)
==23681==    by 0x6F1BFE: clear_thread_inferior_resources (thread.c:116)
==23681==    by 0x6F2152: delete_thread_1 (thread.c:294)
==23681==    by 0x6F21E5: delete_thread_silent (thread.c:317)
==23681==    by 0x80C87F: delete_thread_of_inferior (inferior.c:173)
==23681==    by 0x6F22D8: iterate_over_threads (thread.c:368)
==23681==    by 0x80CAA8: exit_inferior_1 (inferior.c:272)
==23681==    by 0x80CBE9: detach_inferior (inferior.c:322)
==23681==    by 0x5C31E2: inf_ptrace_detach (inf-ptrace.c:303)
==23681==

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]