Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Dec 2006 14:15:57 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Alejandro Pulver <alepulver@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Program receiving SIGSEGV after exit()
Message-ID:  <20061230121557.GL21325@deviant.kiev.zoral.com.ua>
In-Reply-To: <20061230031035.149313d3@phobos.mars.bsd>
References:  <20061230031035.149313d3@phobos.mars.bsd>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sat, Dec 30, 2006 at 03:10:35AM -0300, Alejandro Pulver wrote:
> Hello.
> 
> 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.
> 
> I think it is a problem with the application itself, but I don't know
> what to look for in the source code.
> 
> I have attached a 'gdb' backtrace.
> 
> Could someone please point me in the right direction?
> 
> Thanks and Best Regards,
> Ale
Use _exit() instead of exit() in the handler. Aside question is whether
this handler is needed at all.



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFllh9C3+MBN1Mb4gRAt/SAKD0AEcJeO7YPdE+VNrxowgIXI4PwQCg2OJP
ZPPlYBE487vkf8jNMUJDWCU=
=t8yQ
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061230121557.GL21325>