Bug#177351: libc6: calling semctl(2) causes process to seg Fault on PowerPC
Package: libc6
Version: 2.3.1-9
Severity: normal
If you call semctl(2) after sucessfully creating a new semaphore set
with semget(2) it produces a Segmentation Fault on PowerPC. Sample
code:
int create_mutex(key_t clave)
{
int mutex;
mutex = semget(clave, 1, IPC_CREAT|IPC_EXCL|0640);
if (mutex == -1)
mutex = semget(clave, 1, 0);
else
if (semctl(mutex, 0, SETVAL, 1) == -1)
throw_an_error();
return mutex;
}
It works on i386 with the same version.
-- System Information:
Debian Release: testing/unstable
Architecture: ppc
Kernel: Linux butterfly 2.4.20-ben1 #2 vie ene 3 17:15:31 CET 2003 ppc
Locale: LANG=es_ES@euro, LC_CTYPE=es_ES@euro
Versions of packages libc6 depends on:
ii libdb1-compat 2.1.3-7 The Berkeley database routines [gl
-- no debconf information
Reply to: