From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6683 invoked by alias); 22 Aug 2012 09:54:05 -0000 Received: (qmail 6665 invoked by uid 22791); 22 Aug 2012 09:54:04 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_EB 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, 22 Aug 2012 09:53:07 +0000 From: "jojelino at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug backtrace/14507] New: failed to compute dwarf2-CFA when unwinder of caller frame is unknown. Date: Wed, 22 Aug 2012 09:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: backtrace X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jojelino at gmail 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: Message-ID: 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-q3/txt/msg00261.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14507 Bug #: 14507 Summary: failed to compute dwarf2-CFA when unwinder of caller frame is unknown. Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: backtrace AssignedTo: unassigned@sourceware.org ReportedBy: jojelino@gmail.com Classification: Unclassified Created attachment 6598 --> http://sourceware.org/bugzilla/attachment.cgi?id=6598 the source i tried to debug. i think gdb 7.1 didn't complain like following. but i got unexpected `error reading variable: can't compute CFA for this frame' anyway, the following is mmap test debug session. and in cygwin host, i tried to breakpoint mmap64(a.k.a mmap) cygwin replaces its return address to sigbe so gdb cannot find its caller frame.(hence sigbe of sigfe.s doesn't contain any cfi information.) the problem is, it resulted in displaying incorrect frame info about the callee frame which has correct dwarf-2 CFI, whose caller doesn't have CFI. $ gdb --args a GNU gdb (GDB) 7.5.50.20120806-cvs Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-cygwin". For bug reporting instructions, please see: ... warning: the current range check setting does not match the language. warning: the current type check setting does not match the language. Whether backtraces should continue past the entry point of a program is off. Reading symbols from /tmp/a...done. (gdb) b mmap64 Function "mmap64" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (mmap64) pending. (gdb) r Starting program: /tmp/a [New Thread 5304.0x1d00] [New Thread 5304.0x1428] Breakpoint 1, mmap64 ( addr=, len=, prot=, flags=, fd=, off=) at /tmp/winsup/winsup/cygwin/mmap.cc:795 795 { (gdb) bt #0 mmap64 (addr=, len=, prot=, flags=, fd=, off=) at /tmp/winsup/winsup/cygwin/mmap.cc:795 #1 0x610d2ca5 in _sigfe () from /usr/bin/cygwin1.dll #2 0x00000003 in ?? () #3 0x00000012 in ?? () #4 0x00000003 in ?? () #5 0x00000000 in ?? () (gdb) info frame 0 Stack frame at 0x22ac10: eip = 0x61086420 in mmap64 (/tmp/winsup/winsup/cygwin/mmap.cc:795); saved eip 0x610d2ca5 called by frame at 0x22ac1c source language c++. Arglist at 0x22ac08, args: addr=, len=, prot=, flags=, fd=, off= Locals at 0x22ac08, Previous frame's sp is 0x22ac10 Saved registers: eip at 0x22ac0c (gdb) info frame 1 Stack frame at 0x22ac1c: eip = 0x610d2ca5 in _sigbe; saved eip 0x3 called by frame at 0x22ac20, caller of frame at 0x22ac10 Arglist at 0x22ac14, args: Locals at 0x22ac14, Previous frame's sp is 0x22ac1c Saved registers: edx at 0x22ac0c, ebx at 0x22ac10, eip at 0x22ac18 -- 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.