This is the mail archive of the cygwin@cygwin.com 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]

minor bugs in pthread_setcancelstate and pthread_setcanceltype



Hi all,

for the functions (thread.cc):
int __pthread_setcancelstate (int state, int *oldstate)
int __pthread_setcanceltype (int type, int *oldtype)
can somebody add the checking whether the pointers oldstate and oldtype are
nill pointers?

The Linux man page says that the previous state/type is not saved when the
pointer is zero.
Currently we get the annoying SIGSEGV crash when the old state/type is
written to address 0x0.

regards,

Dirk

cygcheck -s -v -r
(See attached file: cygcheck.out)

Attachment: cygcheck.out
Description: Binary data

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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