From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14985 invoked by alias); 2 Aug 2012 15:02:44 -0000 Received: (qmail 14967 invoked by uid 22791); 2 Aug 2012 15:02:43 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Aug 2012 15:02:30 +0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14100] internal-error: frame_cleanup_after_sniffer: Assertion `frame->prologue_cache == NULL' failed. Date: Thu, 02 Aug 2012 15:02: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: 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" Content-Transfer-Encoding: quoted-printable 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-q3/txt/msg00158.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D14100 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com --- Comment #2 from Tom Tromey 2012-08-02 15:02:= 14 UTC --- It was surprisingly hard to find out where the exception is originally thrown. I had to resort to some crazy hacks. There are two possible problems. One is that maybe this is just a bad assert. Perhaps instead this cleanup should just clear the prologue_cache field. This would make sense because it is hard to predict what code paths might call QUIT. Another is that dwarf2_frame_cache could assign to *this_cache at the end of its processing, rather than at the beginning. What is happening is that dwarf2_frame_cache sets *this_cache. Then it does some more work; including eventually calling target_read, which calls QUIT. If the C-c arrives at exactly the right moment, it triggers the failure. #1 0x000000000074315e in target_read (ops=3D0x3b84890,=20 object=3DTARGET_OBJECT_STACK_MEMORY, annex=3D0x0, buf=3D0x3e89fc0 "",=20 offset=3D140737479962640, len=3D8) at ../../archer/gdb/target.c:2027 #2 0x0000000000742a9e in target_read_stack (memaddr=3D140737479962640, mya= ddr=3D 0x3e89fc0 "", len=3D8) at ../../archer/gdb/target.c:1785 #3 0x000000000079e592 in read_stack (memaddr=3D140737479962640, myaddr=3D 0x3e89fc0 "", len=3D8) at ../../archer/gdb/corefile.c:233 #4 0x00000000006bf20e in read_value_memory (val=3D0x3e42c00,=20 embedded_offset=3D0, stack=3D1, memaddr=3D140737479962640, buffer=3D0x3= e89fc0 "",=20 length=3D8) at ../../archer/gdb/valops.c:1140 #5 0x00000000006bec15 in value_fetch_lazy (val=3D0x3e42c00) at ../../archer/gdb/valops.c:1022 #6 0x00000000006aed06 in value_entirely_available (value=3D0x3e42c00) at ../../archer/gdb/value.c:348 #7 0x0000000000818e29 in frame_register_unwind (frame=3D0x3bf7ec0, regnum= =3D6,=20 optimizedp=3D0x7fffffb7517c, unavailablep=3D0x7fffffb75178, lvalp=3D 0x7fffffb75168, addrp=3D0x7fffffb75170, realnump=3D0x7fffffb7516c, buff= erp=3D 0x7fffffb751c0 "=CA=A0\370\003\006") at ../../archer/gdb/frame.c:863 #8 0x00000000008190b3 in frame_unwind_register (frame=3D0x3bf7ec0, regnum= =3D6,=20 buf=3D0x7fffffb751c0 "=CA=A0\370\003\006") at ../../archer/gdb/frame.c:= 912 #9 0x000000000081912d in get_frame_register (frame=3D0x3bf8d10, regnum=3D6= , buf=3D 0x7fffffb751c0 "=CA=A0\370\003\006") at ../../archer/gdb/frame.c:926 #10 0x00000000007ab399 in read_reg (baton=3D0x3bf8d10, reg=3D6) at ../../archer/gdb/dwarf2-frame.c:299 #11 0x00000000007ad205 in dwarf2_frame_cache (this_frame=3D0x3bf8d10,=20 this_cache=3D0x3bf8d28) at ../../archer/gdb/dwarf2-frame.c:1090 --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.