PHP 5.2.11_1 core dump under FreeBSD 7.2-STABLE (with gdb info)

James Chang james.technew at gmail.com
Fri Dec 25 09:55:45 UTC 2009


Dears,

    I upgrade my FreeBSD Box to 7.2-STABLE today and us portupgrade to
upgrade installed ports.
When everything done, php was broken :<

   When I run 'php -m' it will show me core dump message, following
are my system info and error messages:

1.uname -a
 FreeBSD db1.books.com.tw 7.2-STABLE FreeBSD 7.2-STABLE #0: Thu Dec 24
13:38:12 CST 2009     root at web.test.com:/usr/obj/usr/src/sys/GENERIC
amd64

2.php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
date
dom
exif
fileinfo
filter
fribidi
ftp
gd
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mhash
ming
mysql
mysqli
ncurses
odbc
openssl
pcntl
pcre
pdf
PDO
pdo_sqlite
posix
pspell
readline
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
SQLite
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
yaz
zip
zlib

[Zend Modules]

Segmentation fault

3.php -v
PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Dec 25 2009 07:12:09) (DEBUG)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Segmentation fault

4.gdb info, sorry my gdb skill is very poor :<
<-root->gdb -e /usr/local/bin/php
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd".
(gdb) set args -v
(gdb) run
Starting program: /usr/local/bin/php -v
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...[New LWP
100103]
[New Thread 0x8013c30b0 (LWP 100103)]
PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Dec 25 2009 07:12:09) (DEBUG)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
[New LWP 100103]
suspend error: generic error
[Switching to LWP 100103]
Stopped due to shared library event
(gdb) set args -m
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/local/bin/php -m
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...[New LWP
100105]
[New Thread 0x8013c30b0 (LWP 100105)]
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
date
dom
exif
fileinfo
filter
fribidi
ftp
gd
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mhash
ming
mysql
mysqli
ncurses
odbc
openssl
pcntl
pcre
pdf
PDO
pdo_sqlite
posix
pspell
readline
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
SQLite
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
yaz
zip
zlib

[Zend Modules]

[New LWP 100105]
suspend error: generic error
[Switching to LWP 100105]
Stopped due to shared library event

Best Regards!


More information about the freebsd-ports mailing list