From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 30 12:59:19 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 659EF16A403; Sat, 30 Dec 2006 12:59:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id 0DE6313C43E; Sat, 30 Dec 2006 12:59:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.227] (helo=fw.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1H0d86-000AFv-5S; Sat, 30 Dec 2006 14:16:10 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id kBUCFwiu042025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 30 Dec 2006 14:15:58 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8) with ESMTP id kBUCFwrZ039086; Sat, 30 Dec 2006 14:15:58 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8/Submit) id kBUCFvHV039085; Sat, 30 Dec 2006 14:15:57 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 30 Dec 2006 14:15:57 +0200 From: Kostik Belousov To: Alejandro Pulver Message-ID: <20061230121557.GL21325@deviant.kiev.zoral.com.ua> References: <20061230031035.149313d3@phobos.mars.bsd> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hu1ClgjWvfumRnAp" Content-Disposition: inline In-Reply-To: <20061230031035.149313d3@phobos.mars.bsd> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=ALL_TRUSTED,SPF_NEUTRAL autolearn=failed version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on fw.zoral.com.ua X-Scanner-Signature: 8fcfa5a562f326ba64a474cd1db6e25e X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 661 [Dec 30 2006] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: freebsd-hackers@freebsd.org Subject: Re: Program receiving SIGSEGV after exit() 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: Sat, 30 Dec 2006 12:59:19 -0000 --hu1ClgjWvfumRnAp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 30, 2006 at 03:10:35AM -0300, Alejandro Pulver wrote: > Hello. >=20 > The port "games/qudos" keeps running in a loop after exiting from the > main menu. This is because after calling exit() the program receives a > SIGSEGV signal, and the signal handler, after intercepting it, calls > exit() again. >=20 > I think it is a problem with the application itself, but I don't know > what to look for in the source code. >=20 > I have attached a 'gdb' backtrace. >=20 > Could someone please point me in the right direction? >=20 > Thanks and Best Regards, > Ale Use _exit() instead of exit() in the handler. Aside question is whether this handler is needed at all. --hu1ClgjWvfumRnAp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFllh9C3+MBN1Mb4gRAt/SAKD0AEcJeO7YPdE+VNrxowgIXI4PwQCg2OJP ZPPlYBE487vkf8jNMUJDWCU= =t8yQ -----END PGP SIGNATURE----- --hu1ClgjWvfumRnAp--