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: Sending SIGUSR1 to thread in nanosleep causes segfault


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

Well, yes.  A SIGSEGV in cygwin code is always a bug.

I'm investigating.  I see how it happens but not why yet.

cgf

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