Subject: Re: apache httpd on NetBSD2.0 (pthread problem?)
To: Tom Uban <uban@ubanproductions.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc
Date: 01/30/2005 13:03:50
On Sat, Jan 29, 2005 at 12:18:23PM -0600, Tom Uban wrote:
> Hello,
> 
> I compiled Apache httpd-2.0.52.tar.gz under NetBSD2.0/sparc for my IPX and
> following a clean build/install, running httpd fails with the following:
> 
> 0  0x101dc100 in pthread__lock_ras_end () from /usr/lib/libpthread.so.0
> #1  0x101db888 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
> #2  0x102a6d10 in malloc () from /usr/lib/libc.so.12
> #3  0x102a4128 in calloc () from /usr/lib/libc.so.12
> #4  0x10295b80 in __hash_open () from /usr/lib/libc.so.12
> #5  0x10249fc8 in endpwent () from /usr/lib/libc.so.12
> #6  0x10249830 in getsubopt () from /usr/lib/libc.so.12
> #7  0x10288694 in nsdispatch () from /usr/lib/libc.so.12
> #8  0x10249c8c in getpwnam () from /usr/lib/libc.so.12
> #9  0x000581d8 in ap_uname2id (name=0x10c698 "nobody") at mpm_common.c:294
> #10 0x00067dc8 in unixd_set_user (cmd=0x10c699, dummy=0x0,
>     arg=0x10c698 "nobody") at unixd.c:170
> #11 0x0004b4c0 in invoke_cmd (cmd=0x8f030, parms=0xeffff868, mconfig=0x0,
>     args=0x10087e "") at config.c:675
> #12 0x0004c204 in ap_walk_config_sub (current=0x100858, parms=0xeffff868,
>     section_vector=0xa6bb8) a#13 0x0004c298 in ap_walk_config 
> (current=0x100858,
>  parms=0xeffff868,
>     section_vector=0xa6bb8) at config.c:1098
> #14 0x0004d0ac in ap_process_config_tree (s=0xa5740, conftree=0x100858,
>     p=0xa1018, ptemp=0xe3018) at config.c:1641
> #15 0x00050024 in main (argc=3, argv=0xeffffa04) at main.c:595
> #16 0x000260d8 in ___start ()Badly placed ()'s.
> 
> Is this a sparc specific pthread problem? I found a similar thread
> "bind9 on -current/sparc (pthread problem?)", but there doesn't seem
> to be a resolution...

Yes, it's sparc-specific. I have several PRs open for pthread problems on
sparc.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--