Applied patch from Dan Kegel:
Looks like semctl crashes on some architectures
if the 4th argument is present but is
not of type 'union semun'.  (And that's ok by Posix.)
Several LTP testcases have a comment near calls to semctl
mentioning that this is an issue on 64 bit systems,
but it seems to also be an issue for ppc32.
This doesn't make any sense to me, but I think I've verified that
with my compiler, either providing the union or omitting
the fourth arg fixes the crash in the IPC_RMID case.
1 file changed