From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17894 invoked by alias); 29 Feb 2012 17:02:50 -0000 Received: (qmail 17703 invoked by uid 22791); 29 Feb 2012 17:02:48 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Feb 2012 17:02:37 +0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug cli/13728] GDB crashes on catch exec -> detach Date: Wed, 29 Feb 2012 17:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q1/txt/msg00363.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13728 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com --- Comment #1 from Tom Tromey 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.