You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Philip M. Gollucci" <pg...@p6m7g8.com> on 2005/04/06 10:42:54 UTC
theading woes
Hi,
[This is probably FreeBSD specific but since I'm -current after the
SMPng I thought this might work now.]
This happens with both mpm and prefok.
on FBSD-current/i386
perl5.9.3 -V:useithreads -V:usemultiplicity
useithreads='define';
usemultiplicity='define';
./configure --prefix=/home/pgollucci/dev/inst/httpd/$HTTPDVER/$mpm \
--with-perl=/home/pgollucci/dev/perl/5.9.3/bin/perl \
--with-port=8000 \
--enable-maintainer-mode \
--enable-v4-mapped \
--with-dbm=sdbm \
--with-ssl=/usr \
--enable-so \
--with-mpm=$mpm \
--with-expat=/usr/local \
--enable-debug \
--enable-threads \
--enable-mods-shared="[....]"
/home/pgollucci/dev/inst/perl/5.9.3/bin/perl Makefile.PL \
MP_APXS=/home/pgollucci/dev/inst/httpd/2.1.5-dev/worker/bin/apxs \
MP_MAINTAINER=1
[....]
make test
cd "src/modules/perl" && make
/home/pgollucci/dev/inst/perl/5.9.3/bin/perl -Iblib/arch -Iblib/lib
t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT=
APACHE_TEST_USER= APACHE_TEST_APXS=
/home/pgollucci/dev/inst/perl/5.9.3/bin/perl -Iblib/arch -Iblib/lib
t/TEST -bugreport -verbose=0
/home/pgollucci/dev/inst/httpd/2.1.5-dev/worker/bin/httpd -d
/usr/home/pgollucci/dev/src/modperl2/t -f
/usr/home/pgollucci/dev/src/modperl2/t/conf/httpd.conf -D APACHE2 -D
PERL_USEITHREADS
using Apache/2.1.5-dev (worker MPM)
waiting 300 seconds for server to start: .Fatal error 'Spinlock called
when not threaded.' at line 87 in file
/usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
END
------------------------------------------------------------------------------
Philip M. Gollucci
Consultant
E-Mail: pgollucci@p6m7g8.com
URL : http://p6m7g8.net/Resume/resume.shtml
Phone : 301.254.5198
$Id: .signature,v 1.7 2004/09/05 23:46:37 philip Exp $
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: theading woes
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
>>> waiting 300 seconds for server to start: .Fatal error 'Spinlock
>>> called when not threaded.' at line 87 in file
>>> /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
This _was_ caused by libpthread and libc_r being linked to my
httpd2/apr/apr-util.
I solved this using the /etc/libmap.conf file as Paul pointed out from
apr@apr.apache.org
cat /etc/libmap.conf
libc_r.so.5 libpthread.so.1 # Everything that uses 'libc_r'
libc_r.so libpthread.so # now uses 'libpthread'
--
END
------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: theading woes
Posted by Stas Bekman <st...@stason.org>.
Philip M. Gollucci wrote:
>> waiting 300 seconds for server to start: .Fatal error 'Spinlock called
>> when not threaded.' at line 87 in file
>> /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
>
> I've eliminated httpd2/apr with --enable-threads as the cause here by
> recompiling them both without it.
>
> The only thing with threads is my perl 5.9.3 w/ ithreads
Philip, see if you any of these google hits can help:
http://www.google.ca/search?hl=en&q=Fatal+error+%27Spinlock+called+when+not+threaded.%27&btnG=Google+Search&meta=
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: theading woes
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
> waiting 300 seconds for server to start: .Fatal error 'Spinlock called
> when not threaded.' at line 87 in file
> /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
I've eliminated httpd2/apr with --enable-threads as the cause here by
recompiling them both without it.
The only thing with threads is my perl 5.9.3 w/ ithreads
--
END
------------------------------------------------------------------------------
Philip M. Gollucci
Consultant
E-Mail: pgollucci@p6m7g8.com
URL : http://p6m7g8.net/Resume/resume.shtml
Phone : 301.254.5198
$Id: .signature,v 1.7 2004/09/05 23:46:37 philip Exp $
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org