Date: Sat, 30 Dec 2006 11:13:52 -0300 From: Alejandro Pulver <alepulver@FreeBSD.org> To: Kostik Belousov <kostikbel@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Program receiving SIGSEGV after exit() 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <kostikbel@gmail.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061230111352.43fa8c32>