From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 9 16:58:09 2011 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B1F7106564A for ; Sun, 9 Oct 2011 16:58:09 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5C8F18FC0A for ; Sun, 9 Oct 2011 16:58:07 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA16095 for ; Sun, 09 Oct 2011 19:58:06 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RCwhR-000A3y-Pq for hackers@freebsd.org; Sun, 09 Oct 2011 19:58:05 +0300 Message-ID: <4E91D29B.50802@FreeBSD.org> Date: Sun, 09 Oct 2011 19:58:03 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111002 Thunderbird/7.0.1 MIME-Version: 1.0 To: hackers@FreeBSD.org X-Enigmail-Version: undefined Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: Subject: gdb vs non-base gcc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2011 16:58:09 -0000 I observe some strange behavior with different versions gdb when used on executables compiled with gcc45. My world is compiled with the base gcc. 1. If a crash happens while execution is in code compiled with base gcc (e.g. in libc because of abort(2) call)... A. Base gdb: - incorrectly reports lines numbers in code compiled with gcc45 - reports a lot of strange/junk frames in between libc and program frames - but overall correctly shows program stack B. gdb73 - correctly shows libc frames - doesn't unwind stack to program frames 2. If a crash happens in the code compiled with gcc45... A. Base gdb: - show some strange stack frames and is not really useable B. gdb73 - does everything correctly >From what I've heard on IRC it looks like I am not the only one who runs into issues like this. Any ideas/suggestions? -- Andriy Gapon