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 gdb/14100] internal-error: frame_cleanup_after_sniffer: Assertion `frame->prologue_cache == NULL' failed. Date: Thu, 02 Aug 2012 15:02:00 -0000 [thread overview] Message-ID: <bug-14100-4717-TO75GmcldQ@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-14100-4717@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=14100 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com --- Comment #2 from Tom Tromey <tromey at redhat dot com> 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=0x3b84890, object=TARGET_OBJECT_STACK_MEMORY, annex=0x0, buf=0x3e89fc0 "", offset=140737479962640, len=8) at ../../archer/gdb/target.c:2027 #2 0x0000000000742a9e in target_read_stack (memaddr=140737479962640, myaddr= 0x3e89fc0 "", len=8) at ../../archer/gdb/target.c:1785 #3 0x000000000079e592 in read_stack (memaddr=140737479962640, myaddr= 0x3e89fc0 "", len=8) at ../../archer/gdb/corefile.c:233 #4 0x00000000006bf20e in read_value_memory (val=0x3e42c00, embedded_offset=0, stack=1, memaddr=140737479962640, buffer=0x3e89fc0 "", length=8) at ../../archer/gdb/valops.c:1140 #5 0x00000000006bec15 in value_fetch_lazy (val=0x3e42c00) at ../../archer/gdb/valops.c:1022 #6 0x00000000006aed06 in value_entirely_available (value=0x3e42c00) at ../../archer/gdb/value.c:348 #7 0x0000000000818e29 in frame_register_unwind (frame=0x3bf7ec0, regnum=6, optimizedp=0x7fffffb7517c, unavailablep=0x7fffffb75178, lvalp= 0x7fffffb75168, addrp=0x7fffffb75170, realnump=0x7fffffb7516c, bufferp= 0x7fffffb751c0 "ʠ\370\003\006") at ../../archer/gdb/frame.c:863 #8 0x00000000008190b3 in frame_unwind_register (frame=0x3bf7ec0, regnum=6, buf=0x7fffffb751c0 "ʠ\370\003\006") at ../../archer/gdb/frame.c:912 #9 0x000000000081912d in get_frame_register (frame=0x3bf8d10, regnum=6, buf= 0x7fffffb751c0 "ʠ\370\003\006") at ../../archer/gdb/frame.c:926 #10 0x00000000007ab399 in read_reg (baton=0x3bf8d10, reg=6) at ../../archer/gdb/dwarf2-frame.c:299 #11 0x00000000007ad205 in dwarf2_frame_cache (this_frame=0x3bf8d10, this_cache=0x3bf8d28) at ../../archer/gdb/dwarf2-frame.c:1090 -- 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.
next prev parent reply other threads:[~2012-08-02 15:02 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-05-12 17:46 [Bug gdb/14100] New: " ppluzhnikov at google dot com 2012-08-02 13:39 ` [Bug gdb/14100] " tromey at redhat dot com 2012-08-02 15:02 ` tromey at redhat dot com [this message] 2012-08-05 19:52 ` jan.kratochvil at redhat dot com 2012-08-06 19:23 ` tromey at redhat dot com
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-14100-4717-TO75GmcldQ@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: linkBe 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).