PHP5 crashes after cacti and snmpd installation , and configurations. any idea? Follows error code com´s listing about 20 line if i write command dmesg.

Bug #407248 reported by Villet
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Debian)
New
Unknown
php5 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

[1353581.072851] php5[5330]: segfault at bf480dd8 ip b7df8d5c sp bf480ca0 error 6 in libpcre.so.3.12.1[b7de7000+30000]
[1353641.287136] php5[5491]: segfault at bf71ff8c ip b7d97daf sp bf71ff40 error 6 in libpcre.so.3.12.1[b7d86000+30000]
[1353701.769129] php5[5786]: segfault at bf477dd8 ip b7defd5c sp bf477ca0 error 6 in libpcre.so.3.12.1[b7dde000+30000]
[1353761.160878] php5[6003]: segfault at bf455ffc ip b7dd3654 sp bf455fd0 error 6 in libpcre.so.3.12.1[b7dbb000+30000]
[1353821.350551] php5[6231]: segfault at bf570ffc ip b7de7daf sp bf570fb0 error 6 in libpcre.so.3.12.1[b7dd6000+30000]
[1353881.540650] php5[6390]: segfault at bf74ed48 ip b7cc6d5c sp bf74ec10 error 6 in libpcre.so.3.12.1[b7cb5000+30000]
[1353941.736395] php5[6555]: segfault at bf061f8c ip b7dd8daf sp bf061f40 error 6 in libpcre.so.3.12.1[b7dc7000+30000]
[1354001.063293] php5[6812]: segfault at bf68dea8 ip b7d04d5c sp bf68dd70 error 6 in libpcre.so.3.12.1[b7cf3000+30000]
[1354061.448489] php5[6964]: segfault at bf55cfec ip b7cd3daf sp bf55cfa0 error 6 in libpcre.so.3.12.1[b7cc2000+30000]
[1354121.639418] php5[7181]: segfault at bf53ffd8 ip b7cb7d5c sp bf53fea0 error 6 in libpcre.so.3.12.1[b7ca6000+30000]
[1354181.829360] php5[7345]: segfault at bf4a8f3c ip b7d1fdaf sp bf4a8ef0 error 6 in libpcre.so.3.12.1[b7d0e000+30000]
[1354241.019596] php5[7502]: segfault at bf439ed8 ip b7cb1d5c sp bf439da0 error 6 in libpcre.so.3.12.1[b7ca0000+30000]
[1354301.434185] php5[7761]: segfault at bf441ed8 ip b7cb9d5c sp bf441da0 error 6 in libpcre.so.3.12.1[b7ca8000+30000]
[1354361.820622] php5[7998]: segfault at bf5c4f6c ip b7d3cdaf sp bf5c4f20 error 6 in libpcre.so.3.12.1[b7d2b000+30000]
[1354421.011037] php5[8226]: segfault at bf59def8 ip b7d15d5c sp bf59ddc0 error 6 in libpcre.so.3.12.1[b7d04000+30000]
[1354481.201862] php5[8388]: segfault at bf723df8 ip b7c9ad5c sp bf723cc0 error 6 in libpcre.so.3.12.1[b7c89000+30000]
[1354541.392246] php5[8534]: segfault at bf460ef8 ip b7dd8d5c sp bf460dc0 error 6 in libpcre.so.3.12.1[b7dc7000+30000]
[1354601.739424] php5[8788]: segfault at bf12cf28 ip b7ca4d5c sp bf12cdf0 error 6 in libpcre.so.3.12.1[b7c93000+30000]
[1354661.115503] php5[8953]: segfault at bf305fd4 ip b7c7fd39 sp bf305fc0 error 6 in libpcre.so.3.12.1[b7c6c000+30000]

Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this bug as a bug in php5.
For future reference you might be interested to know that a lot of applications have bug reporting functionality built in to them. This can be accessed via the Report a Problem option in the Help menu for the application with which you are having an issue. You can learn more about this feature at https://wiki.ubuntu.com/ReportingBugs.

affects: ubuntu → php5 (Ubuntu)
Revision history for this message
Andreas Olsson (andol) wrote :

What versions of PHP5, cacti, snmpd, etc have you installed? Is there any specific php scripts which causes this segfault?

Changed in php5 (Ubuntu):
status: New → Incomplete
Revision history for this message
Villet (likeville) wrote :

Hi i checked versions cacti it´s 0.8.7b and "snmp" it´s net-snmp-version 5.4.1. There it´s some scripts what i run and their folder are /usr/share/cacti/site/scripts. But cacti it´s but i didn´t find erro messages "cacti" logs. And both installations i did binary packages like apt-get install. But i didn´t get why php show error messages after i type dmesg. And this messages "1360781.168791] php5[29990]: segfault at bf3a1cf8 ip b7e19d5c sp bf3a1bc0 error 6 in libpcre.so.3.12.1[b7e08000+30000]" i can´t find libpcre.so anywhere where i can configuring that. Scripts what i running i cheked scripts running fine manually, but i can check agen.

Revision history for this message
Villet (likeville) wrote :

And by the way my PHP version it´s PHP 5.2.6 and Zend Engine v.2.2

Revision history for this message
Andreas Olsson (andol) wrote :

Can you please be more specific regarding your version? Different release of Ubuntu may contain packages based on the same upstream version, but with different patches applied. A command giving good information is "apt-cache policy packagename"

Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Revision history for this message
Ytra (siebe) wrote :

I experienced the same problem and found the cause in my case. My system is based on Jaunty and updated every day.
In my case the error message appeared every minute in my /var/log/messages file. Therefore I traced through the cron.d. It appeared that the serverstats process was the only one starting every minute.
After commenting this out the error message disappeared.
If I have some spare time I will run through the code of /usr/share/serverstats/update.php where the segfault is caused.

Revision history for this message
Ytra (siebe) wrote :

This bug is already reported in the Debian and Ubuntu launchpad:

serverstats: update.php crashes while collecting CPU stats
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542947
https://bugs.launchpad.net/ubuntu/+source/serverstats/+bug/417327

Chuck Short (zulcss)
Changed in php5 (Ubuntu):
status: Incomplete → Confirmed
Changed in php5 (Debian):
status: Unknown → New
Revision history for this message
Paolo Mainardi (paolomainardi) wrote :

Same problem here, i can't use Drupal cron anymore with Apache solr to index site contents, there is the string below that cause libpcre to segfault.

Ubuntu 10.4 (Server edition)

ii libpcre3 7.8-3build1 Perl 5 Compatible Regular Expression Library
ii libpcre3-dbg 7.8-3build1 Perl 5 Compatible Regular Expression Library
ii libpcre3-dev 7.8-3build1 Perl 5 Compatible Regular Expression Library

root@localhost ~ # php -v
PHP 5.2.10-2ubuntu6.5 with Suhosin-Patch 0.9.7 (cli) (built: May 21 2010 06:30:21)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

GDB Debug:

(gdb) run /home/deploy/drush/drush.php -l suse core-cron
Starting program: /usr/bin/php5 /home/deploy/drush/drush.php -l suse core-cron
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff14ac710 (LWP 25263)]
[Thread 0x7ffff14ac710 (LWP 25263) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6931a52 in match (
    eptr=0x4ac9327 "                \n        Kernel driver in use: pcieport-driver    &nbs"..., ecode=0x3e5ba24 "\035[Y",
    mstart=0x4ac4c6b "[quote]:~> /sbin/lspci -v\n00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)\n        Subsystem: Acer Incorporated [ALI]"..., offset_top=4, md=0x7fffffff14c0, ims=5,
    eptrb=0x7fffff5ff370, flags=0, rdepth=18106) at pcre_exec.c:431
431 pcre_exec.c: No such file or directory.
 in pcre_exec.c

Revision history for this message
Chuck Short (zulcss) wrote :

I am unabe to reproduce this on natty.

Changed in php5 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.