delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/26/02:12:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-WM-Posted-At: MailAndNews.com; Fri, 26 May 00 02:11:34 -0400
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Need help. Latest snapshot may be next cygwin net release.
References: <20000525154409 DOT A13047 AT cygnus DOT com>
Reply-to: egorovv AT mailandnews DOT com
From: Vadim Egorov <egorovv AT mailandnews DOT com>
In-Reply-To: Chris Faylor's message of "Thu, 25 May 2000 15:44:10 -0400"
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6
Date: 26 May 2000 10:11:15 +0400
Message-ID: <u66s1g7ss.fsf@mailandnews.com>
Lines: 39
MIME-Version: 1.0

Sorry, the message body seems was lost on the way.

Chris Faylor <cgf AT cygnus DOT com> writes:

> I would appreciate it if any adventurous souls would try out the
> latest cygwin snapshot by downloading this:

libstdc++-v3 configure hangs again. An old problem with signals.
This is a  piece of code which hangs and  a strace log.

#include <unistd.h>
#include <signal.h>
#include <setjmp.h>

static jmp_buf	env;
int signo = SIGSEGV;

static void sig_handler(int sig)
{
    static sigset_t x;
    signal (sig, sig_handler);
    sigemptyset (&x);
    sigprocmask(SIG_SETMASK, &x, NULL);

    longjmp(env, 1);
}

int main(int argc, char * * argv)
{
    if (setjmp(env) == 0 ) 
    {
        signal(signo, sig_handler);
        *(char*)0 = 1;
    }
    return 0;
}
-- 
Regards,
Vadim Egorov 


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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