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>

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

--hu1ClgjWvfumRnAp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.



--hu1ClgjWvfumRnAp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

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

--hu1ClgjWvfumRnAp--



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