Re: Program receiving SIGSEGV after exit()



On Sat, 30 Dec 2006 14:15:57 +0200
Kostik Belousov <kostikbel@xxxxxxxxx> 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

Attachment: signature.asc
Description: PGP signature



Relevant Pages

  • Re: Infinite Loop in ErrorHandler That Requires Hard Shutdown
    ... > others and have come up with the following Exit Handler and Error ... > If bInTrans Then 'Rollback if the transaction is active. ... > I thought I was handling my Error Handling and Exit Handling ...
    (microsoft.public.access.formscoding)
  • Re: Threading Issues (If you can answer this, Ill kiss you.)
    ... sent it is not read from the message queue and your SessionEnding handler is ... On the other hand when you register for the process exit event the system ... process exits a threadpool thread then calls your event handler. ... specifically to handle the broadcast messages. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Flaw in Conditions System?
    ... > | silent on this. ... Unless there's some implicit block I missed. ... consequence of that non-local exit but I'm still in my handler code. ...
    (comp.lang.lisp)
  • funny SIGCHLD behavior
    ... I'm trying to implement a simple shell and am facing some ... SIGCHLD must get sent to the handler. ... to exit. ... * cmdbuf as required by execvfunctions ...
    (comp.unix.programmer)
  • Re: Newbie exception handler question
    ... You want to install a rundown handler ... Control-C or control-Y do not, in and of themselves, terminate your ... exit, the rundown handler will take care of it, even if the command ... An ordinary exit handler will not be ...
    (comp.os.vms)