Re: [Openais] Fix compile/runtime issues for _POSIX_THREAD_PROCESS_SHARED 1

2011-07-06 Thread Steven Dake
On 07/05/2011 07:22 PM, Tim Beale wrote: Hi, Another issue we found upgrading was that the code doesn't compile when _POSIX_THREAD_PROCESS_SHARED 1. When it does compile, it crashes on our system - our version of uClibc seems to always expect a 4th arg. The man pages suggests the 4th arg

Re: [Openais] Fix compile/runtime issues for _POSIX_THREAD_PROCESS_SHARED 1

2011-07-06 Thread Tim Beale
Hi Steve, Yes, sorry - we're using uClibc-0.9.30.1 on linux. The problem is uClibc's semctl() always tries to access the fourth arg using va_arg(), which results in a crash for us. It seems uClibc doesn't do any checking on whether the semctl cmd specified actually needs the 4th semun arg. I'm

[Openais] Fix compile/runtime issues for _POSIX_THREAD_PROCESS_SHARED 1

2011-07-05 Thread Tim Beale
Hi, Another issue we found upgrading was that the code doesn't compile when _POSIX_THREAD_PROCESS_SHARED 1. When it does compile, it crashes on our system - our version of uClibc seems to always expect a 4th arg. The man pages suggests the 4th arg is optional, but does say: 'For greater