[OpenAFS-devel] 1.4.0 volserver crash on AIX 5.2; pthread issue?

Tom Keiser tkeiser@gmail.com
Tue, 22 Nov 2005 18:44:02 -0500


On 11/22/05, Peter Somogyi <psomogyi@gamax.hu> wrote:
> Hi,
>
> I've downloaded 1.4.0 binaries from www.openafs.org for AIX 5.2, but vols=
erver crashes.
>
> Core was generated by `volserver'.
> Program terminated with signal 6, Aborted.
> #0  0xd005c604 in pthread_kill () from /usr/lib/libpthreads.a(shr_xpg5.o)
> (gdb) bt
> #0  0xd005c604 in pthread_kill () from /usr/lib/libpthreads.a(shr_xpg5.o)
> #1  0xd005c08c in _p_raise () from /usr/lib/libpthreads.a(shr_xpg5.o)
> #2  0xd01eff34 in raise () from /usr/lib/libc.a(shr.o)
> #3  0xd02102c8 in abort () from /usr/lib/libc.a(shr.o)
> #4  0x100028f0 in AssertionFailed ()
> #5  0x10002770 in vFSLog ()
> #6  0x10037e00 in Log ()
> #7  0x10000c34 in main ()
>

The assertion is failing because serverLogMutex was never initialized.
 It's a bug in OpenLog() in src/util/serverLog.c.  We either need to
initialize the mutex for the syslog case, or not call LOCK_SERVERLOG
for the syslog case (for most libc implementations we should be able
to depend on syslog() to handle any necessary synchronization
internally).  Until this is fixed, you'll have to run without the
-syslog flag.

Regards,

--
Tom Keiser
tkeiser@gmail.com