delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/17/19:00:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: fun? with libsigsegv
Date: Fri, 17 Jul 2009 22:55:13 +0000 (UTC)
Lines: 34
Message-ID: <loom.20090717T225214-564@post.gmane.org>
References: <loom DOT 20090717T213846-627 AT post DOT gmane DOT org> <loom DOT 20090717T224758-877 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Eric Blake <ebb9 <at> byu.net> writes:

> Of course, given the code, that meant I wasn't using libsigsegv like I 
thought 
> I was.  So, with my typo corrected, I'm (unfortunately) still seeing 
libsigsegv 
> interference:
> 
> $ ./foo
> fclose -1, errno 9
> Aborted (core dumped)

Even more depressing - this looks like a regression.  The same STC, compiled 
with libsigsegv under cygwin 1.5, works in that environment.

And I'm not sure what to do in gdb to try and get more useful information:

Breakpoint 1, die () at foo.c:19
19        i = fclose (stdout);
(gdb) n
20        fprintf (stderr, "fclose %d, errno %d\n", i, errno);
(gdb) 
21        errno = 0;
(gdb) 
22        i = fflush (stdout);
(gdb) 

Program received signal SIGABRT, Aborted.
0x7c90e514 in ntdll!LdrAccessResource ()
   from /cygdrive/c/WINDOWS/system32/ntdll.dll

-- 
Eric Blake



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019