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]

Sending SIGUSR1 to thread in nanosleep causes segfault


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

Attachment: test_case_1_sleep.c
Description: Binary data

Attachment: test_case_2_nanosleep.c
Description: Binary data

Attachment: test_case_3_select.c
Description: Binary data

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