From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 30 14:14:18 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 5472A16A407 for ; Sat, 30 Dec 2006 14:14:18 +0000 (UTC) (envelope-from alepulver@FreeBSD.org) Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by mx1.freebsd.org (Postfix) with SMTP id 0B83713C474 for ; Sat, 30 Dec 2006 14:14:17 +0000 (UTC) (envelope-from alepulver@FreeBSD.org) Received: (qmail 75646 invoked by uid 0); 30 Dec 2006 14:14:17 -0000 Received: from 200.115.252.195 (HELO phobos.mars.bsd) (200.115.252.195) by relay00.pair.com with SMTP; 30 Dec 2006 14:14:17 -0000 X-pair-Authenticated: 200.115.252.195 Date: Sat, 30 Dec 2006 11:13:52 -0300 From: Alejandro Pulver To: Kostik Belousov Message-ID: <20061230111352.43fa8c32@phobos.mars.bsd> In-Reply-To: <20061230121557.GL21325@deviant.kiev.zoral.com.ua> References: <20061230031035.149313d3@phobos.mars.bsd> <20061230121557.GL21325@deviant.kiev.zoral.com.ua> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.6; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_HKbJwXO4X=D5ok=P5mvK8Mz"; protocol="application/pgp-signature"; micalg=PGP-SHA1 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 14:14:18 -0000 --Sig_HKbJwXO4X=D5ok=P5mvK8Mz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 30 Dec 2006 14:15:57 +0200 Kostik Belousov wrote: > 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. >=20 >=20 Hello. Thank you for your reply. I searched in the SVN repository and found it originally was _exit(), but changed to exit() just before the release, and after that it was backed out. Yes, I guess the handler is not very useful (also it doesn't produce a core file like the default one). Best Regards, Ale --Sig_HKbJwXO4X=D5ok=P5mvK8Mz Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFlnQ9iV05EpRcP2ERAubqAJ4udaYzwEE26kAUK7DyUj5eUdK1XgCgiW/F s2z3yQK1EILVWTYSjQtvh0s= =TNAw -----END PGP SIGNATURE----- --Sig_HKbJwXO4X=D5ok=P5mvK8Mz--