View Single Post

  #2 (permalink)  
Old 12-14-2007
Jochem Maas
 
Posts: n/a
Default Re: [PHP] php with threaded MPM problem ?

Rashmi Badan wrote:
> Hi,
>
> I'm using php 5.2.1 with apache 2.2.6 and while running certain tests I see
> a segmentation fault - the relevant stack is given below. My php configure
> line is as follows
>
> configure '--prefix=/my/php/installdir' *'--with-tsrm-pthreads' *'--with-ldap'
> *'--enable-maintainer-zts'* '--enable-sigchild' '--enable-so'
> '--with-apxs2=/my/apache2/bin/apxs' '--without-sqlite'
> '--without-pdo-sqlite' '--with-oci8=/my/oracle/installdir'
> '--enable-mbstring'
>
> I'm running apache with a threaded MPM. Is that a probem as I remember
> reading somewhere that php does not quite work well with threaded MPMs.
> Would appreciate any help/pointers on this.


you can't realiably run php in a threaded webserver due to the large number
of extension which are home to code that is not thread safe - and nobody can
tell you what or where the non-threadsafe code exactly iirc

>
> Thanks,
> Rashmi
>
> -----------------------------------
> #0 0x007937a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
> #1 0x007d7c96 in kill () from /lib/tls/libc.so.6
> #2 0x08070da8 in sig_coredump ()
> #3 <signal handler called>
> #4 0x00a00d24 in pthread_mutex_lock () from /lib/tls/libpthread.so.0
> *#5 0xb461d9f5 in tsrm_mutex_lock (mutexp=0x0)
> at /ade/rbadan_gollum/oracle/apache_modules/mod_php/php-5.2.1
> /TSRM/TSRM.c:660
> #6 0xb461d071 in ts_resource_ex (id=0, th_id=0x0)*
> at /ade/rbadan_gollum/oracle/apache_modules/mod_php/php-5.2.1
> /TSRM/TSRM.c:345
> #7 0xb472dcb5 in php_handler (r=0x85c65b0)
> at /ade/rbadan_gollum/oracle/apache_modules/mod_php/php-5.2.1
> /sapi/apache2handler/sapi_apache2.c:500
> #8 0x080829af in ap_run_handler ()
> #9 0x08082807 in ap_invoke_handler ()
> #10 0x080976d5 in async_run_handlers ()
> #11 0x080975f3 in async_process_connection ()
> #12 0x08097346 in process_socket ()
> #13 0x08096e97 in worker_thread ()
> #14 0xb7f83e33 in dummy_worker (opaque=0x85bf438) at
> threadproc/unix/thread.c:142
> #15 0x009ff371 in start_thread () from /lib/tls/libpthread.so.0
> #16 0x008779be in clone () from /lib/tls/libc.so.6
>

Reply With Quote