php 5.2.6 'random' segfault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Debian) |
Incomplete
|
Unknown
|
|||
php5 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Binary package hint: php5-cli
I'm getting random php segfaults in my /var/log/messages file:
ug 28 09:28:02 www kernel: [122051.459511] php[15082]: segfault at 7f2459eecf3b ip 00007f2459c8a4ef sp 00007f2457ff3c60 error 4 in libgcc_
Aug 28 09:47:01 www kernel: [123191.280575] php[21125]: segfault at 7fd16f10ef30 ip 00007fd16f10ef30 sp 00007fd16d2160f8 error 14 in libuuid.
Aug 28 10:14:07 www -- MARK --
Aug 28 10:16:01 www kernel: [124931.139171] php[29406]: segfault at 7f16486c4f30 ip 00007f16486c4f30 sp 00007f16467cc0f8 error 14 in librt-2.
These are most likely triggered by some of my cron jobs which are php scripts, but it seems completely random. Sometime the script will complete without segfaulting, other times it will fault.
I've never had these segfaults on the Centos 5.3 machine I migrated from.
Here is an example of how to reproduce:
<?php
$a = 2;
$b = 1;
$c = $a ^ $b;
var_dump($c);
?>
Run this script on the command line, and once out of about 30 times it will segfault.
Here is a link to someone else who had the same problem a few months ago but found no solution:
http://
Some details:
root@www:~# lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
root@www:~# uname -a
Linux www.servername.com 2.6.28-15-server #49-Ubuntu SMP Tue Aug 18 20:09:37 UTC 2009 x86_64 GNU/Linux
root@www:~# apt-cache policy php5-cli
php5-cli:
Installed: 5.2.6.dfsg.
Candidate: 5.2.6.dfsg.
Version table:
*** 5.2.6.dfsg.
500 http://
500 http://
100 /var/lib/
5.
500 http://
root@www:~# php -m:
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
date
dba
dom
exif
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
json
libxml
mbstring
mime_magic
mssql
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
pdo_pgsql
pgsql
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib
[Zend Modules]
Hope this is enough information,
Thanks,
Pieter
Changed in php5 (Ubuntu): | |
status: | Incomplete → Confirmed |
importance: | Undecided → Medium |
Changed in php5 (Debian): | |
status: | Unknown → Incomplete |
Adding a 'me too'. These are PHP cronjobs that run every few minutes. Most of the times nothing is wrong, occasionally one will segfault. Machine load is low.
2.6.28-14-server #47-Ubuntu SMP Sat Jul 25 01:18:34 UTC 2009 i686 GNU/Linux
[1667242.984012] feeder.php[22564]: segfault at b703c760 ip b703c760 sp b6d7039c error 14 in libpam. so.0.81. 12[b7271000+ a000] 9.so[b77e4000+ 7000] 9.so[b7722000+ 7000] 9.so[b7788000+ 7000] php[27630] : segfault at b6f28760 ip b6f28760 sp b6c5c39c error 14 in librt-2. 9.so[b76fc000+ 7000] 9.so[b77b1000+ 7000] 9.so[b7678000+ 7000] s.so.1[ b7821000+ d000] 9.so[b76c5000+ 7000] 9.so[b779a000+ 7000] 9.so[b76c6000+ 7000] 9.so[b7670000+ 7000] 9.so[b7735000+ 7000] php[14445] : segfault at b6ed2760 ip b6ed2760 sp b6c0639c error 14 in librt-2. 9.so[b76a6000+ 7000] 9.so[b7709000+ 7000] 9.so[b76ce000+ 7000] error.so. 0.3.0[b74ea000+ 3000] 9.so[b7773000+ 7000] 9.so[b76a1000+ 7000] 9.so[b76c7000+ 7000] 9.so[b7721000+ 7000] 9.so[b7750000+ 7000] 9.so[b76fd000+ 7000] 9.so[b7720000+ 7000]
[1671023.312542] runDB[24828]: segfault at b7010760 ip b7010760 sp b6d4439c error 14 in librt-2.
[1672043.050297] runDB[25416]: segfault at b6f4e760 ip b6f4e760 sp b6c8239c error 14 in librt-2.
[1672703.042364] feeder.php[25821]: segfault at b6fb4760 ip b6fb4760 sp b6ce839c error 14 in librt-2.
[1675703.352735] uploader.
[1677502.632613] runDB[28702]: segfault at b6fdd760 ip b6fdd760 sp b6d1139c error 14 in librt-2.
[1683442.852024] feeder.php[32316]: segfault at b6ea4760 ip b6ea4760 sp b6bd839c error 14 in librt-2.
[1684702.464171] runDB[603]: segfault at b6f5877e ip b7828816 sp b6c8c088 error 4 in libgcc_
[1689022.976655] feeder.php[3551]: segfault at b6ef1760 ip b6ef1760 sp b6c2539c error 14 in librt-2.
[1699163.412581] feeder.php[9710]: segfault at b6fc6760 ip b6fc6760 sp b6cfa39c error 14 in librt-2.
[1699462.460828] feeder.php[9918]: segfault at b6ef2760 ip b6ef2760 sp b6c2639c error 14 in librt-2.
[1699942.970096] feeder.php[10201]: segfault at b6e9c760 ip b6e9c760 sp b6bd039c error 14 in librt-2.
[1700123.420937] runDB[10290]: segfault at b6f61760 ip b6f61760 sp b6c9539c error 14 in librt-2.
[1706783.311784] uploader.
[1707263.200251] runDB[14720]: segfault at b6f35760 ip b6f35760 sp b6c6939c error 14 in librt-2.
[1708343.275339] feeder.php[15354]: segfault at b6efa760 ip b6efa760 sp b6c2e39c error 14 in librt-2.
[1709962.970937] feeder.php[16463]: segfault at b6e58760 ip b6e58760 sp b6b8c39c error 14 in libgpg-
[1710682.748884] runDB[16882]: segfault at b6f9f760 ip b6f9f760 sp b6cd339c error 14 in librt-2.
[1712003.024355] runDB[17719]: segfault at b6ecd760 ip b6ecd760 sp b6c0139c error 14 in librt-2.
[1714282.577907] feeder.php[19153]: segfault at b6ef3760 ip b6ef3760 sp b6c2739c error 14 in librt-2.
[1715243.422550] runDB[19761]: segfault at b6f4d760 ip b6f4d760 sp b6c8139c error 14 in librt-2.
[1717822.629017] runDB[21484]: segfault at b6f7c760 ip b6f7c760 sp b6cb039c error 14 in librt-2.
[1718542.894834] runDB[21957]: segfault at b6f29760 ip b6f29760 sp b6c5d39c error 14 in librt-2.
[1718662.454723] feeder.php[22031]: segfault at b6f4c760 ip b6f4c760 sp b6c8039c error 14 in librt-2.
[1719802.590656] feeder.php[22767]: segfault at b6e5a77e ip b7732816 sp b6b8e088 error 4 in libgcc_s....