public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug cli/13728] GDB crashes on catch exec -> detach
Date: Wed, 29 Feb 2012 17:02:00 -0000	[thread overview]
Message-ID: <bug-13728-4717-bisEUD7PvZ@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-13728-4717@http.sourceware.org/bugzilla/>

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.


  reply	other threads:[~2012-02-29 17:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23 10:18 [Bug cli/13728] New: " jan.kratochvil at redhat dot com
2012-02-29 17:02 ` tromey at redhat dot com [this message]
2012-02-29 21:43 ` [Bug cli/13728] " tromey at redhat dot com
2012-03-14 15:20 ` palves at redhat dot com
2024-01-09 19:53 ` ssbssa at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-13728-4717-bisEUD7PvZ@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).