This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: perl threads on 2008 R2 64bit = crash ( was: perl 5.10 threads on 1.5.25 = instant crash )


On Jul 15 12:23, Christopher Faylor wrote:
> On Wed, Jul 15, 2009 at 05:21:39PM +0200, Corinna Vinschen wrote:
> >==== SNIP ====
> >#include <stdio.h>
> >#include <errno.h>
> >#include <pthread.h>
> >
> >pthread_attr_t attr;
> >
> >void *thr (void *arg)
> >{
> >  printf ("I'm a thread\n");
> >  return NULL;
> >}
> >
> >int main()
> >{
> >  pthread_t t;
> >  int i, r;
> >  void *ret;
> >
> >  fprintf (stderr, "Testing threads...\n");
> >  i = pthread_attr_init (&attr);
> >  printf ("i = %d\n", i);
> >  r = pthread_create (&t, &attr, thr, NULL);
> >  if (r)
> >    fprintf (stderr, "pthread_create: %d %s\n", errno, strerror (errno));
> >  else
> >    pthread_join (t, &ret);
> >  fprintf (stderr, "Testing done\n");
> >  return 0;
> >}
> >==== SNAP ====
> 
> I can't try this right now myself but what about trying various settings
> for a SIGSEGV signal handler?

No SIGSEGV setting has any visible effect.  In the Perl testcase
_cygtls::handle_exceptions is just not called, in the C testcase
it's always called.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]