Hi all,

I've hit a segfault trying to build APR 1.3.5 on AIX 5.3.

I configured APR with: --enable-shared=no --enable-static=yes --enable-threads

The segfault is triggered by the testlockperf (other tests fail similarly) with the following bt:

#0  apr_proc_mutex_unix_setup_lock () at locks/unix/proc_mutex.c:497
#1  0x1000318c in apr_initialize () at misc/unix/start.c:51
#2  0x10000ff8 in main (argc=1, argv=0x2ff22a24) at testlockperf.c:236

Here's some stepping through the code:

171         proc_mutex_op_on.sem_num = 0;
(gdb)
172         proc_mutex_op_on.sem_op = -1;
(gdb)
173         proc_mutex_op_on.sem_flg = SEM_UNDO;
(gdb)
176         proc_mutex_op_try.sem_flg = SEM_UNDO | IPC_NOWAIT;
(gdb)
178         proc_mutex_op_off.sem_op = 1;
(gdb)
175         proc_mutex_op_try.sem_op = -1;
(gdb)
179         proc_mutex_op_off.sem_flg = SEM_UNDO;
(gdb)
488         proc_mutex_lock_it.l_whence = SEEK_SET;   /* from current point */
(gdb)
178         proc_mutex_op_off.sem_op = 1;
(gdb)
497         proc_mutex_unlock_it.l_pid = 0;           /* pid not actually interesting */
(gdb)

Program received signal SIGSEGV, Segmentation fault.
apr_proc_mutex_unix_setup_lock () at locks/unix/proc_mutex.c:497
497         proc_mutex_unlock_it.l_pid = 0;           /* pid not actually interesting */

GCC version 4.2.4.

Any assistance would be appreciated.

Thanks,
Gavin