From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12498 invoked by alias); 7 Feb 2012 18:20:36 -0000 Received: (qmail 12472 invoked by uid 22791); 7 Feb 2012 18:20:35 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BJ X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Feb 2012 18:20:21 +0000 From: "hyrum at hyrumwright dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/13619] Crash when running binary a second time in the same session Date: Tue, 07 Feb 2012 18:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hyrum at hyrumwright dot org 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: 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/msg00199.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13619 --- Comment #3 from Hyrum Wright 2012-02-07 18:20:15 UTC --- Rebuilt without optimization (which, incidentally is itself non-trivial), and I now get the following stack trace: [[[ (gdb) bt #0 0x00007fff94e0e6c0 in malloc_error_break () #1 0x00007fff94e0e805 in free () #2 0x0000000100333dc2 in xfree (ptr=0x10046e998) at common-utils.c:107 #3 0x000000010020271a in gdb_bfd_unref (abfd=0x100be5e50) at objfiles.c:1557 #4 0x00000001001ff67b in free_objfile (objfile=0x10124e800) at objfiles.c:597 #5 0x0000000100200c0e in objfile_purge_solibs () at objfiles.c:986 #6 0x00000001000267b9 in no_shared_libraries (ignored=0x0, from_tty=1) at solib.c:1205 #7 0x00000001001e9fbd in target_pre_inferior (from_tty=1) at target.c:2479 #8 0x0000000100186a56 in run_command_1 (args=0x0, from_tty=1, tbreak_at_main=0) at infcmd.c:516 #9 0x0000000100186d87 in run_command (args=0x0, from_tty=1) at infcmd.c:620 #10 0x000000010007487c in do_cfunc (c=0x100b40300, args=0x0, from_tty=1) at cli-decode.c:67 #11 0x0000000100079117 in cmd_func (cmd=0x100b40300, args=0x0, from_tty=1) at cli-decode.c:1810 #12 0x00000001002eef5c in execute_command (p=0x100b0a221 "", from_tty=1) at top.c:441 #13 0x00000001001ba2ca in command_handler (command=0x100b0a220 "") at event-top.c:435 #14 0x00000001001baad3 in command_line_handler (rl=0x100becf80 "??\v\020") at event-top.c:636 #15 0x0000000100359359 in rl_callback_read_char () at callback.c:220 #16 0x00000001001b9a11 in rl_callback_read_char_wrapper (client_data=0x0) at event-top.c:169 #17 0x00000001001ba177 in stdin_event_handler (error=0, client_data=0x0) at event-top.c:375 #18 0x00000001001b883a in handle_file_event (data={ptr = 0x7fff00000000, integer = 0}) at event-loop.c:827 #19 0x00000001001b7c1e in process_event () at event-loop.c:401 #20 0x00000001001b7d1d in gdb_do_one_event () at event-loop.c:465 #21 0x00000001001b7d92 in start_event_loop () at event-loop.c:490 #22 0x00000001001b9a5b in cli_command_loop () at event-top.c:182 #23 0x00000001001ae49a in current_interp_command_loop () at interps.c:309 #24 0x00000001001af2de in captured_command_loop (data=0x0) at main.c:232 #25 0x00000001001ad51a in catch_errors (func=0x1001af2c0 , func_args=0x0, errstring=0x100486080 "", mask=6) at exceptions.c:502 #26 0x00000001001b0a25 in captured_main (data=0x7fff5fbffa20) at main.c:942 #27 0x00000001001ad51a in catch_errors (func=0x1001af340 , func_args=0x7fff5fbffa20, errstring=0x100486080 "", mask=6) at exceptions.c:502 #28 0x00000001001b0bc4 in gdb_main (args=0x7fff5fbffa20) at main.c:951 #29 0x0000000100001423 in main (argc=2, argv=0x7fff5fbffa80) at gdb.c:34 ]]] It looks like the calls to gdb_bfd_unref() and xfree() were optimized out in the first version, but things are otherwise the same. -- 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.