Program receiving SIGSEGV after exit()

Alejandro Pulver alepulver at FreeBSD.org
Sat Dec 30 06:14:18 PST 2006


On Sat, 30 Dec 2006 14:15:57 +0200
Kostik Belousov <kostikbel at gmail.com> wrote:

> 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.
> 
> 

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20061230/fcc3733f/signature.pgp


More information about the freebsd-hackers mailing list