From owner-freebsd-stable@FreeBSD.ORG Thu May 12 12:55:17 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 632C416A4CE for ; Thu, 12 May 2005 12:55:17 +0000 (GMT) Received: from mail.ticketswitch.com (mail.ticketswitch.com [194.200.93.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03F0643D77 for ; Thu, 12 May 2005 12:55:17 +0000 (GMT) (envelope-from petefrench@ticketswitch.com) Received: from [172.16.1.6] (helo=dilbert.firstcallgroup.co.uk) by mail.ticketswitch.com with esmtp (Exim 4.50 (FreeBSD)) id 1DWDDf-0009MK-KT for stable@FreeBSD.ORG; Thu, 12 May 2005 13:55:15 +0100 Received: from petefrench by dilbert.firstcallgroup.co.uk with local (Exim 4.50 (FreeBSD)) id 1DWDDf-0009ky-Ht for stable@FreeBSD.ORG; Thu, 12 May 2005 13:55:15 +0100 To: stable@FreeBSD.ORG Message-Id: From: Pete French Date: Thu, 12 May 2005 13:55:15 +0100 Subject: gdb problem - program vanishes on SIGABRT X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 12:55:17 -0000 Under 4.11 I was using gcc34 and gdb6 to run and debug code. Moving to 5.4 these tools come as standard, so I am now just using the normal cc / gdb combination. I am finding that when my code breaks with SIGABRT (as the result of an unknown method being sent in this case) then I cannot get a backtrace in gbd as it tells me "The program no longer exists." This appears to be FreeBSD 5.4 specific - using the same versions of the compiler and debugger under FreeBSD 4.11 doesnt have this problem, and it does not occurr on other operating systems either. 4.11 output from gdb6: Program received signal SIGABRT, Aborted. 0x280b3474 in kill () from /usr/lib/libc_r.so.4 5.4 output from gdb Program terminated with signal SIGABRT, Aborted. The program no longer exists. Heres the code I am using. Its compiled with 'cc -g test.m -lobjc -pthread' #include #include #include int main(int argc, char *argv[]) { id my_test = [Object new]; [my_test a_missing_method]; return 0; } Several people have tried this on other operating systems and do not see the same problem - also (as I said) it does not occur on FreeBSD 4.11 so it seems to be specific to FreeBSD 5. -pcf.