semget() crash
David Stacey
drstacey@tiscali.co.uk
Mon Jun 10 21:24:00 GMT 2013
Please find attached a short test programme derived from the semaphore
handling code in Poco. The test crashes in the call to semget(),
reporting 'Bad system call (core dumped)'. I am using the latest 32-bit
snapshot (2013-06-08).
The test programme runs correctly under Fedora 18 x64.
BTW, the man page for ftok(3) states that the second parameter
('proj_id') must be non-zero. Contrary to this, Poco uses zero for
'proj_id'. This is easy enough to patch, but does anyone know the effect
of using zero here? If there's no good reason for it then I'll raise a
ticket with Poco and get it changed.
Many thanks in advance for looking at this problem,
Dave.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poco_ne.c
Type: text/x-csrc
Size: 1008 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130610/ebac72c0/attachment.bin>
-------------- 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