[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined behavior in closeout, aggravated by libsigsegv
From: |
Bruno Haible |
Subject: |
Re: undefined behavior in closeout, aggravated by libsigsegv |
Date: |
Sat, 21 Nov 2009 18:11:24 +0100 |
User-agent: |
KMail/1.9.9 |
Eric Blake wrote on 2009-07-23:
> Actually, the bug is that libsigsegv is too eager to claim that an SEH
> exception is a SEGV, even if cygwin was otherwise prepared to handle it
> and not raise SIGSEGV. The fix is to delay handling of the fault until
> after the SIGSEGV has actually been raised, although for cygwin 1.5, the
> SEH handler is still needed to learn the faulting address since it wasn't
> until today's patch to cygwin 1.7 that si_addr was populated correctly.
>
> Here's three patches that add test cases, then respectively fixes cygwin
> 1.7 and 1.5 to pass the new tests. I've also tested that on platforms
> like Linux that the new tests pass, as well as testing that mingw skips
> the tests but otherwise still compiles fine.
>
> $ git pull git://repo.or.cz/libsigsegv/ericb.git master
Thanks for this. You find a new libsigsegv tarball with your patches included
(with small modifications) in
http://www.haible.de/bruno/gnu/libsigsegv-2.8-pre1.tar.gz
Bruno
- Re: undefined behavior in closeout, aggravated by libsigsegv,
Bruno Haible <=