Re: Sending SIGUSR1 to thread in nanosleep causes segfault

2010-07-15 Thread Christopher Faylor
On Mon, Jul 12, 2010 at 11:36:04AM -0500, James Cotton wrote: >Hello, I've been trying to get the FreeRTOS Posix simulator to run on >Cygwin and have run into a few bugs in the signal handling/pthread >libraries and have isolated test cases > >Essentially sending a SIGUSR1 to a pthread causes a seg

Re: Sending SIGUSR1 to thread in nanosleep causes segfault

2010-07-13 Thread Corvus Corax
Here are some backtraces: snapshot: cygwin1-20100707.dll.bz2 System AMD64 CPU - Windows XP Professional 64 bit Edition, Version 2003, Service Pack 2 Program is test_case_1_sleep.c: 1 /** 2 * small test program whether signals between threads work as they should 3 */ 4 5 #include 6 #incl

Re: Sending SIGUSR1 to thread in nanosleep causes segfault

2010-07-12 Thread Andy Koppe
On 12 July 2010 22:05, Corvus Corax wrote: > Just to update some details. > > I am working with James Cotton on the OpenPilot project. > We are trying to port the POSIX simulation port of FreeRTOS to cygwin. > > We run into issues with signal handling in cygwin 1.7.5 that are > currently blocking o

Re: Sending SIGUSR1 to thread in nanosleep causes segfault

2010-07-12 Thread Corvus Corax
FYI Just to update some details. I am working with James Cotton on the OpenPilot project. We are trying to port the POSIX simulation port of FreeRTOS to cygwin. We run into issues with signal handling in cygwin 1.7.5 that are currently blocking our development, since every method to suspend a ru

Sending SIGUSR1 to thread in nanosleep causes segfault

2010-07-12 Thread James Cotton
Hello, I've been trying to get the FreeRTOS Posix simulator to run on Cygwin and have run into a few bugs in the signal handling/pthread libraries and have isolated test cases Essentially sending a SIGUSR1 to a pthread causes a segfault if that thread is in sleep/nanosleep/select. This behavior c