Sending SIGUSR1 to thread in nanosleep causes segfault

James Cotton peabody124@gmail.com
Mon Jul 12 16:56:00 GMT 2010


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 continues if you
comment out the printing behavior.

I believe at least nanosleep is meant to return when it receives a
signal so this seems like a bug.

Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_case_1_sleep.c
Type: application/octet-stream
Size: 577 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100712/fd3eb1ab/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_case_2_nanosleep.c
Type: application/octet-stream
Size: 665 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100712/fd3eb1ab/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_case_3_select.c
Type: application/octet-stream
Size: 720 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100712/fd3eb1ab/attachment-0002.obj>
-------------- next part --------------
--
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


More information about the Cygwin mailing list