View previous topic :: View next topic |
Author |
Message |
questionaire Tux's lil' helper
Joined: 01 May 2006 Posts: 131
|
Posted: Sun Aug 20, 2006 7:59 pm Post subject: After update PHP corrupt |
|
|
made an emerge -a world today, updated all etcs, but now, when i open my browser and access a site which is parsed by php module i get an error 500 (internal server error).
in the logs i see this:
*** glibc detected *** double free or corruption (fasttop): 0x08074a40 ***
now i'm wondering: what the fuck? |
|
Back to top |
|
|
hanj Veteran
Joined: 19 Aug 2003 Posts: 1500
|
Posted: Sun Aug 20, 2006 8:26 pm Post subject: |
|
|
Hello
I ran into something similar before. This is an Apache error I believe. Can you post your USE flags for apache as well as dev-lang/php?
hanji |
|
Back to top |
|
|
questionaire Tux's lil' helper
Joined: 01 May 2006 Posts: 131
|
Posted: Sun Aug 20, 2006 8:51 pm Post subject: |
|
|
TSwebserver FireMail # cat /var/db/pkg/net-www/apache-2.0.58-r2/IUSE
apache2 debug doc ldap mpm-itk mpm-leader mpm-peruser mpm-prefork mpm-threadpool mpm-worker no-suexec ssl static-modules threads selinux
TSwebserver FireMail # cat /var/db/pkg/dev-lang/php-5.1.4-r6/IUSE
cli cgi discard-path force-cgi-redirect concurrentmodphp threads fastbuild apache apache2 adabas bcmath berkdb birdstep bzip2 calendar cdb cjk crypt ctype curl curlwrappers db2 dbase dbmaker debug doc empress empress-bcs esoob exif frontbase fdftk filepro firebird flatfile ftp gd gd-external gdbm gmp hardenedphp hash hyperwave-api iconv imap informix inifile interbase iodbc ipv6 java-external kerberos ldap libedit mcve memlimit mhash ming msql mssql mysql mysqli ncurses nls oci8 oci8-instant-client odbc pcntl pcre pdo pdo-external pic posix postgres qdbm readline reflection recode sapdb sasl session sharedext sharedmem simplexml snmp soap sockets solid spell spl sqlite ssl sybase sybase-ct sysvipc tidy tokenizer truetype unicode vm-goto vm-switch wddx xml xmlreader xmlwriter xmlrpc xpm xsl yaz zip zlib
Last edited by questionaire on Sun Aug 20, 2006 8:56 pm; edited 1 time in total |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Aug 20, 2006 8:55 pm Post subject: Re: After update PHP corrupt |
|
|
do you have rebuilt php and apache after the error? |
|
Back to top |
|
|
questionaire Tux's lil' helper
Joined: 01 May 2006 Posts: 131
|
Posted: Sun Aug 20, 2006 8:56 pm Post subject: Re: After update PHP corrupt |
|
|
k.gothmog wrote: | do you have rebuilt php and apache after the error? |
no i havent - should i? |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Aug 20, 2006 9:01 pm Post subject: Re: After update PHP corrupt |
|
|
you can try |
|
Back to top |
|
|
questionaire Tux's lil' helper
Joined: 01 May 2006 Posts: 131
|
Posted: Sun Aug 20, 2006 9:11 pm Post subject: |
|
|
k.gothmog brought up a good idea at icq ...
an php info works correct when i execute it by /usr/bin/php, but doesnt work when i call it in my browser ... so may there something be with apache?! |
|
Back to top |
|
|
hanj Veteran
Joined: 19 Aug 2003 Posts: 1500
|
Posted: Sun Aug 20, 2006 9:42 pm Post subject: |
|
|
questionaire wrote: | TSwebserver FireMail # cat /var/db/pkg/net-www/apache-2.0.58-r2/IUSE
apache2 debug doc ldap mpm-itk mpm-leader mpm-peruser mpm-prefork mpm-threadpool mpm-worker no-suexec ssl static-modules threads selinux
TSwebserver FireMail # cat /var/db/pkg/dev-lang/php-5.1.4-r6/IUSE
cli cgi discard-path force-cgi-redirect concurrentmodphp threads fastbuild apache apache2 adabas bcmath berkdb birdstep bzip2 calendar cdb cjk crypt ctype curl curlwrappers db2 dbase dbmaker debug doc empress empress-bcs esoob exif frontbase fdftk filepro firebird flatfile ftp gd gd-external gdbm gmp hardenedphp hash hyperwave-api iconv imap informix inifile interbase iodbc ipv6 java-external kerberos ldap libedit mcve memlimit mhash ming msql mssql mysql mysqli ncurses nls oci8 oci8-instant-client odbc pcntl pcre pdo pdo-external pic posix postgres qdbm readline reflection recode sapdb sasl session sharedext sharedmem simplexml snmp soap sockets solid spell spl sqlite ssl sybase sybase-ct sysvipc tidy tokenizer truetype unicode vm-goto vm-switch wddx xml xmlreader xmlwriter xmlrpc xpm xsl yaz zip zlib |
Hello, that shows the possible USE flags. Can you post the output of...
Code: | emerge -pv dev-lang/php apache |
This'll show the exact USE flags you have set.
hanji |
|
Back to top |
|
|
questionaire Tux's lil' helper
Joined: 01 May 2006 Posts: 131
|
Posted: Sun Aug 20, 2006 9:43 pm Post subject: |
|
|
Code: | TSwebserver psybnc # emerge -pv dev-lang/php apache
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-lang/php-5.1.4-r6 USE="apache2 bcmath* bzip2* cgi* cli crypt curl force-cgi-redirect* ftp gd gmp* hardenedphp* imap ipv6 ldap mhash ming mysql ncurses nls pcre posix readline reflection sasl session sharedmem simplexml sockets spell spl ssl tokenizer* truetype xml zip* zlib -adabas -apache -berkdb* -birdstep -calendar -cdb -cjk -concurrentmodphp -ctype -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filepro -firebird -flatfile -frontbase -gd-external -gdbm* -hash -hyperwave-api -iconv -informix -inifile -interbase -iodbc -java-external -kerberos -libedit -mcve -memlimit -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pdo-external -pic -postgres -qdbm -recode -sapdb -sharedext -snmp* -soap -solid -sqlite -sybase -sybase-ct -sysvipc -threads -tidy -unicode -vm-goto -vm-switch -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz" 58 kB
[ebuild R ] net-www/apache-2.0.58-r2 USE="apache2 ldap ssl -debug -doc -mpm-itk -mpm-leader -mpm-peruser -mpm-prefork -mpm-threadpool -mpm-worker -no-suexec -static-modules -threads" 0 kB
Total size of downloads: 58 kB
|
|
|
Back to top |
|
|
hanj Veteran
Joined: 19 Aug 2003 Posts: 1500
|
Posted: Sun Aug 20, 2006 10:16 pm Post subject: |
|
|
Hello
Did you restart apache after upgrade? I'm also curious about cgi flag in PHP. I'm also using the following USE flag for apache 'mpm-prefork no-suexec'
hanji |
|
Back to top |
|
|
questionaire Tux's lil' helper
Joined: 01 May 2006 Posts: 131
|
Posted: Sun Aug 20, 2006 10:17 pm Post subject: |
|
|
yes restarted it - also recompiled them, no changes |
|
Back to top |
|
|
hanj Veteran
Joined: 19 Aug 2003 Posts: 1500
|
Posted: Mon Aug 21, 2006 1:49 am Post subject: |
|
|
Did you want PHP built as a cgi versus a apache mod?
hanji |
|
Back to top |
|
|
questionaire Tux's lil' helper
Joined: 01 May 2006 Posts: 131
|
Posted: Mon Aug 21, 2006 7:09 am Post subject: |
|
|
i dont care wheter its built as cgi or not! php must work, cgis must work and suphp must work.
thats all
i even dont know any advantage / disadvantage of using php as cgi.
would it be better not to compile it as cgi against apache? |
|
Back to top |
|
|
adelante Tux's lil' helper
Joined: 19 Apr 2003 Posts: 133 Location: South Africa - Johannesburg
|
Posted: Wed Aug 23, 2006 11:24 am Post subject: |
|
|
This doesn't seem like a apache error, because if I run suPHP from command line, i get this error:
Quote: |
Keres web # suphp
suPHP version 0.6.1
(c) 2002-2005 Sebastian Marsching
suPHP has to be called by mod_suphp to work.
*** glibc detected *** double free or corruption (fasttop): 0x8003cf58 ***
Aborted
Keres web #
|
|
|
Back to top |
|
|
adelante Tux's lil' helper
Joined: 19 Apr 2003 Posts: 133 Location: South Africa - Johannesburg
|
Posted: Wed Aug 23, 2006 11:27 am Post subject: |
|
|
Ok, here is some more information:
a simple php script:
Code: |
<?php
phpinfo();
?>
|
When I run it via a web browser, i get this error in the apache error log:
Quote: |
[Wed Aug 23 13:25:35 2006] [error] [client 196.41.186.226] Premature end of script headers: info.php
[Wed Aug 23 13:25:35 2006] [error] [client 196.41.186.226] ParsingException in Configuration.cpp:62: "flase" is not a valid boolean value
[Wed Aug 23 13:25:35 2006] [error] [client 196.41.186.226] *** glibc detected *** double free or corruption (fasttop): 0x8003cd58 ***
|
Any ideas?
Dave |
|
Back to top |
|
|
|