Program receiving SIGSEGV after exit()
Kostik Belousov
kostikbel at gmail.com
Sat Dec 30 04:59:19 PST 2006
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20061230/817f5ca2/attachment.pgp
More information about the freebsd-hackers
mailing list