Segfaults with modphp5 (apache) with threads, and fastcgi question

This is a discussion on Segfaults with modphp5 (apache) with threads, and fastcgi question within the PHP General forums, part of the PHP Programming Forums category; Hi, I got serous problems with modphp5 in a apache, both are compiled with treads, apache was worker-mpm and ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2007
Felipe Alcacibar
 
Posts: n/a
Default Segfaults with modphp5 (apache) with threads, and fastcgi question

Hi,

I got serous problems with modphp5 in a apache, both are compiled
with treads, apache was worker-mpm and php was interpreter level
threads, i got lots of segmentation faults in threads. someone can helps me?

At the end of the list, info about configure parameters for apache and php5

I see a alternative, the best is fcgi, but i use lots of php_flag and
php_admin_flag, how some way to use it on fcgi??

I got too much problems with this, maybe if i ran a server without
threads may works it, but it is no funny.

I hope a answer, thanks...

Felipe


OS: Gentoo Linux
Arch: x86_64

Apache info:
shrike counter # apache2 -V
Server version: Apache/2.2.4 (Unix)
Server built: Sep 7 2007 08:57:32
Server's Module Magic Number: 20051115:5
Server loaded: APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, APR-Util 1.2.8
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"



php configure:
Also have a phpinfo on http://www.chileweb.cl/phpinfo.php

'./configure' '--prefix=/usr/lib64/php5' '--host=x86_64-pc-linux-gnu'
'--mandir=/u
sr/lib64/php5/man' '--infodir=/usr/lib64/php5/info' '--sysconfdir=/etc'
'--cache-file=./config.cache' '--
with-libdir=lib64' '--enable-maintainer-zts' '--enable-cli'
'--disable-cgi' '--with-config-file-path=/etc/php/cli-php5'
'--with-config-file-scan-dir=/etc/php/cli-php5/ext-active'
'--without-pear' '--disable-bcmath' '--with-bz2' '--disable-calendar'
'--without-curl' '--without-curlwrappers' '--disable-dbase'
'--enable-exif' '--without-fbsql' '--without-fdftk' '--disable-filter'
'--enable-ftp' '--with-gettext' '--with-gmp' '--disable-hash'
'--with-kerberos=/usr' '--enable-mbstring' '--with-mcrypt'
'--without-mhash' '--without-msql' '--with-mssql' '--with-ncurses'
'--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl'
'--disable-pdo' '--with-pgsql' '--without-pspell' '--without-recode'
'--disable-shmop' '--without-snmp' '--enable-soap' '--enable-sockets'
'--without-sybase' '--without-sybase-ct' '--disable-sysvmsg'
'--disable-sysvsem' '--disable-sysvshm' '--without-tidy'
'--disable-wddx' '--disable-xmlreader' '--disable-xmlwriter'
'--with-xmlrpc' '--with-xsl' '--disable-zip' '--with-zlib'
'--disable-debug' '--enable-dba' '--without-cdb' '--without-db4'
'--without-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm'
'--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir'
'--with-gd' '--with-imap' '--with-imap-ssl' '--with-interbase=/usr'
'--with-ldap' '--without-ldap-sasl' '--with-mysql=/usr'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mysqli'
'--with-unixODBC=/usr' '--without-adabas' '--without-birdstep'
'--without-dbmaker' '--without-empress' '--without-esoob'
'--without-ibm-db2' '--without-iodbc' '--without-sapdb'
'--without-solid' '--with-readline' '--without-libedit' '--without-mm'
'--with-sqlite=/usr' '--enable-sqlite-utf8'
Reply With Quote
  #2 (permalink)  
Old 09-10-2007
Chris
 
Posts: n/a
Default Re: [PHP] Segfaults with modphp5 (apache) with threads, and fastcgiquestion

Felipe Alcacibar wrote:
> Hi,
>
> I got serous problems with modphp5 in a apache, both are compiled with
> treads, apache was worker-mpm and php was interpreter level threads, i
> got lots of segmentation faults in threads. someone can helps me?


Firstly the configure line you sent us is wrong. It's for the cli
version, not the cgi version.

'--enable-cli' '--disable-cgi'


Does it work with a different version of php?

Try to cut down the code you're looking at (create a test-case)

If really desperate, re-compile php with --enable-debug and create a
backtrace (http://bugs.php.net/bugs-generating-backtrace.php)


--
Postgresql & php tutorials
http://www.designmagick.com/
Reply With Quote
  #3 (permalink)  
Old 09-10-2007
Felipe Alcacibar
 
Posts: n/a
Default Re: [PHP] Segfaults with modphp5 (apache) with threads, and fastcgiquestion

Chris escribió:
> Firstly the configure line you sent us is wrong. It's for the cli
> version, not the cgi version.
>
> '--enable-cli' '--disable-cgi'
>


i am using a apache modphp, and also enabled the cli interface, i am not
using cgi yet, i want to use fastcgi, but i made a cuestion before.

i am want a take a look for debug-backtrace.

Thanks.

Felipe
Reply With Quote
  #4 (permalink)  
Old 09-10-2007
Nathan Nobbe
 
Posts: n/a
Default Re: [PHP] Segfaults with modphp5 (apache) with threads, and fastcgiquestion

you might also want to hop on the #gentoo-php channel on irc.freenode.net

-nathan

On 9/10/07, Felipe Alcacibar <falcacibar@gmail.com> wrote:
>
> Chris escribió:
> > Firstly the configure line you sent us is wrong. It's for the cli
> > version, not the cgi version.
> >
> > '--enable-cli' '--disable-cgi'
> >

>
> i am using a apache modphp, and also enabled the cli interface, i am not
> using cgi yet, i want to use fastcgi, but i made a cuestion before.
>
> i am want a take a look for debug-backtrace.
>
> Thanks.
>
> Felipe
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0