Php Segfault Error 14
Plans & Pricing Partners Support Resources Preview Forums Forums Quick Links Search Forums New Posts Search titles only Posted by Member: Separate names with a comma. Newer Than: Search this thread only Search this forum only Display results as php segfault error 4 threads More... Useful Searches Recent Posts Resources Resources Quick Links Search Resources Most Active php-fpm segfault error 4 Authors Latest Reviews Feature Requests Defects Menu Log in Sign up The Community Forums Interact with an entire community of cPanel & WHM users! cPanel Forums > cPanel & WHM® (for Linux® Servers) > General Discussion > This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More. segfault 14 for PHP extensions Discussion in 'General Discussion' started by vsl.p, Sep 2, 2014. vsl.p Registered Joined: Sep 2, 2014 Messages: 2 Likes Received: 0 Trophy Points: 1 cPanel Access Level: Root Administrator Hello, For about four months my server is experiencing issues on PHP .Previously I was using old PHP version 5.2 and when new release of cPanel had dropped PHP 5.2 in Easyapache , So I have to updated my PHP to 5.3 but after update the below mentioned error are triggered at kernel logs.I have re-installed all PHP extension once again , updated kernel , done easyapache and updated cPanel but nothing helps.When pdo_mysql is disabled in PHP the other extension will show the same error. I have checked all the hardware's every thing is just fine. cPanel version is 11.44.1.17 PHP version is 5.3.29 Apache version is 2.2 Code: Aug 30 17:03:55 jbc kernel: apache2[30073]: segfault at 7f6ebd094ace ip 00007f6ebd094ace sp 00007f6e9a82ce78 error 14 Aug 30 17:03:55 jbc kernel: apache2[30069]: segfault at 7f6ebd094ace ip 00007f6ebd094ace sp 00007f6e9c830e78 error 14 in pdo_mysql.so[7f6ebf935000+7000] Aug 30 17:03:55 jbc kernel: in pdo_mysql.so[7f6ebf935000+7000] what are the steps you need to take to reproduce the stated problem ? #1 vsl.p, Sep 2, 2014 vsl.p Registered Joined: Sep 2, 2014 Messages: 2 Likes Received: 0 Trophy Points: 1 cPanel Access Level: Root Administrator Hello, Sorry , The correct error message triggered in kernel logs are : Code: Sep 02 03:15:01 server1 kernel: php[11055]: segfault at 7fcb5c99bbc2 ip 00007fcb5c99bbc2 sp 00007fcb59e64dc8 error 14 Sep 02 03:15:01 server1 kernel: php[11057]: segfault at 7fcb5c99bbc2 ip 00007fcb5c99bbc2 sp 00007fcb58e62dc8 error 14 Sep 02 03:15:01 server1 kernel: php[11052]: segfault at 7fcb5c99bbbc ip 00007fcb5c99bbbc sp 00007fcb5b667dc8 error 14 Sep 02 03:15:01 server1 kernel: php[11053]: segfault at 7fcb5c99bbc2 ip 00007fcb5c99bbc2 sp 00007fcb5ae66dc8 error 14 Sep 02 03:15:01 se
with mysql extension. Edit Remove 26 This bug affects 5 people Affects Status Importance Assigned to Milestone php5 (Debian) Edit Incomplete Unknown debbugs #493045 php5 (Ubuntu) Edit Confirmed Medium Unassigned Edit Also affects project (?) Also affects distribution/package Nominate for series 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_s.so.1[7f2459c7a000+16000] Aug https://forums.cpanel.net/threads/segfault-14-for-php-extensions.426012/ 28 09:47:01 www kernel: [123191.280575] php[21125]: segfault at 7fd16f10ef30 ip 00007fd16f10ef30 sp 00007fd16d2160f8 error 14 in libuuid.so.1.2[7fd16fb36000+3000] 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.9.so[7f164da68000+7000] These are most likely triggered by some of my cron jobs which are php https://bugs.launchpad.net/bugs/420389 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: 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://osdir.com/ml/ubuntu-users/2009-06/msg02580.html 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.1-3ubuntu4.2 Candidate: 5.2.6.dfsg.1-3ubuntu4.2 Version table: *** 5.2.6.dfsg.1-3ubuntu4.2 0 500 http://za.archive.ubuntu.com jaunty-updates/main Packages 500 http://security.ubuntu.com jaunty-security/main Packages 100 /var/lib/dpkg/status 5.2.6.dfsg.1-3ubuntu4 0 500 http://za.archive.ubuntu.com jaunty/main Packages root@www:~# php -m: [PHP Modules] bcmath bz2 calendar ctype curl date dba dom exif filter ftp
UTC Votes:1 Avg. Score:5.0 ± 0.0 Reproduced:0 of 1 (0.0%) From: vytenis dot darulis at gmail dot com Assigned: Status: No Feedback Package: Reproducible crash PHP Version: https://bugs.php.net/bug.php?id=60935 5.3.9 OS: Debian testing (kern. 3.2.2) Private report: No CVE-ID: View Add https://bugs.php.net/bug.php?id=68413 Comment Developer Edit Have you experienced this issue? yes no don't know Rate the importance of this bug to you: high low Are you using the same PHP version? yes no Are you using the same operating system? yes no [2012-01-30 14:44 UTC] vytenis dot darulis at gmail segfault error dot com Description: ------------ Both fpm and apache2 module leak memory constantly in our application, have to set max_requests to around 100 to prevent the machine from crashing - server memory is overcommited by a factor of 1.5. Situation was normal in PHP 5.3.6, but it broke in 5.3.8-9 and 5.4 RC6/trunk (5.4 was compiled without suhosin). Currently using PHP php segfault error 5.3.9-1 packages from dotdeb.org, but can reproduce it on latest 5.4. Jan 30 16:06:55 ns214205 kernel: apache2[30073]: segfault at 7f6ebd094ace ip 00007f6ebd094ace sp 00007f6e9a82ce78 error 14 Jan 30 16:06:55 ns214205 kernel: apache2[30069]: segfault at 7f6ebd094ace ip 00007f6ebd094ace sp 00007f6e9c830e78 error 14 in pdo_mysql.so[7f6ebf935000+7000] Jan 30 16:06:55 ns214205 kernel: in pdo_mysql.so[7f6ebf935000+7000] Jan 30 16:13:22 ns214205 kernel: apache2[44953]: segfault at 7f6ebd094ace ip 00007f6ebd094ace sp 00007f6e9de75e78 error 14 Jan 30 16:13:22 ns214205 kernel: apache2[44958]: segfault at 7f6ebd094ace ip 00007f6ebd094ace sp 00007f6e9b1dfe78 error 14 in libgcc_s.so.1[7f6ec05ca000+15000] Jan 30 16:13:22 ns214205 kernel: in libgcc_s.so.1[7f6ec05ca000+15000] Jan 30 16:24:21 ns214205 kernel: apache2[3946]: segfault at 7f6ebd094ace ip 00007f6ebd094ace sp 00007f6e9ca63e78 error 14 in pdo_mysql.so[7f6ebf935000+7000] Jan 30 16:28:04 ns214205 kernel: apache2[12686]: segfault at 7f6ebd094ace ip 00007f6ebd094ace sp 00007f6e9de75e78 error 14 in libmysqlclient_r.so.16.0.0[7f6ebfd58000+1cf000] Backtrace of 16:13:22 core dump: warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Core was generated by `/usr/sbin/apache2 -k start'. Program terminated with signal 11, Segmentation fault. #0 malloc_consolidate (av=0x7f6ec6d7fe60) at malloc.c:5157 5157 malloc.c: No such file or directory. in malloc.c (gdb) bt #0 malloc_consolidate (av=0x7f6ec6d7fe60) at malloc.c:5157 #1
UTC Modified: 2014-11-14 04:45 UTC From: 26403799 at qq dot com Assigned: laruence Status: Closed Package: opcache PHP Version: 5.6.2 OS: CentOS 6.6 Private report: No CVE-ID: View Add Comment Developer Edit [2014-11-13 09:38 UTC] 26403799 at qq dot com Description: ------------ if php.ini set: disable_functions = exec, and enable opcache php-cgi run: will output: Segmentation fault (core dumped) but this is OK: Test script: --------------- Expected result: ---------------- test1 Actual result: -------------- error output: Segmentation fault (core dumped) dmesg: php-cgi[30749]: segfault at 8c ip 00007f255e03c360 sp 00007ffff85b6610 error 4 in opcache.so[7f255e020000+22000] php-cgi[30839]: segfault at 8c ip 00007f971496a360 sp 00007fff1318ca90 error 4 in opcache.so[7f971494e000+22000] php-cgi[30959]: segfault at 8c ip 00007f0169148360 sp 00007fff8904ad30 error 4 in opcache.so[7f016912c000+22000] php-cgi[31106]: segfault at 8c ip 00007f86644e5360 sp 00007fff1a5142a0 error 4 in opcache.so[7f86644c9000+22000] php-cgi[31162]: segfault at 8c ip 00007eff90f7c360 sp 00007fff03e3eca0 error 4 in opcache.so[7eff90f60000+22000] php-cgi[31341]: segfault at 8c ip 00007fc47c1e7360 sp 00007ffffb720a00 error 4 in opcache.so[7fc47c1cb000+22000] Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2014-11-13 10:35 UTC] laruence@php.net -Status: Open +Status: Closed -Assigned To: +Assigned To: laruence [2014-11-13 10:35 UTC] laruence@php.net The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. this must be fixed already... but hasn't released. [2014-11-14 02:22