php segfault

Discussion in 'General' started by gzero, Jul 1, 2009.

  1. gzero

    gzero New Member


    After a crash of my previous ispconfig install i decided to go the ispconfig3 path. After install the server and some hickups I managed to get my server going smoothly. But now after 2 weeks my server is experiencing issues. All of a sudden my php sites cannot connect to the mysql database anymore and the following is displayed in the log files. I have to restart mysql to get it working again. I guess this means there is something wrong with my mysql but why do i receive php messages? because it cannot connect to mysql anymore? i guess it shouldn't segfault because of that right?

    I also looked for mysql errors but could not find any. Could this be a tuning issue, where php is requesting to many connections?

    [17546.670984] php[23330]: segfault at 7fff69c21dc0 ip 000000000062844d sp 00007fff69c21da0 error 6 in php5[400000+519000]
    [17606.986485] php[23404]: segfault at 7ffffd34bdc0 ip 000000000062844d sp 00007ffffd34bda0 error 6 in php5[400000+519000]
    [17666.397216] php[23507]: segfault at 7fff71a33bd0 ip 000000000062844d sp 00007fff71a33bb0 error 6 in php5[400000+519000]
    [17726.683409] php[23542]: segfault at 7fff1510db80 ip 000000000062844d sp 00007fff1510db60 error 6 in php5[400000+519000]
    [17786.976288] php[23579]: segfault at 7fffc6f0dfc0 ip 00007fbabc648798 sp 00007fffc6f0df80 error 6 in[7fbabc5ce000+168000]
    [17847.269009] php[23617]: segfault at 7fff71433eb0 ip 000000000062844d sp 00007fff71433e90 error 6 in php5[400000+519000]
    [17906.571567] php[23665]: segfault at 7fffe9fb2150 ip 000000000062844d sp 00007fffe9fb2130 error 6 in php5[400000+519000]
    [17966.860766] php[23706]: segfault at 7fff9ccd1e60 ip 000000000062844d sp 00007fff9ccd1e40 error 6 in php5[400000+519000]
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, php does normally not segfault on connection problems.

    In most cases, segfaults are caused by hardware problems. You should check your server with e.g. memcheck.
  3. marciliomcm

    marciliomcm New Member

    same my..

    [ 48.371022] lp0: using parport0 (interrupt-driven).
    [ 48.387023] ppdev: user-space parallel port driver
    [ 50.562891] warning: `pure-ftpd-mysql' uses 32-bit capabilities (legacy support in use)
    [ 1407.341122] php[5492]: segfault at 7f02ab471ed0 ip 7f02ab471ed0 sp 427d1128 error 14 in[7f02b0baf000+2000]
    [63952.120462] php[7626]: segfault at 7f4555476ed0 ip 7f4555476ed0 sp 41add128 error 14 in[7f455abb4000+2000]
    [83375.543714] php[27941]: segfault at 7f83e3daaed0 ip 7f83e3daaed0 sp 41ba1128 error 14 in[7f83e94e8000+2000]
    [91271.377232] php[8165]: segfault at 7f5aa1e5dedb ip 7f5aa73941af sp 41869c90 error 4 in[7f5aa7384000+16000]
    [135370.614981] php[7124]: segfault at 7fde541a7ed0 ip 7fde541a7ed0 sp 415ef128 error 14 in[7fde579bd000+5000]

    Linux norris 2.6.26-2-amd64 #1 SMP Sun Jun 21 04:47:08 UTC 2009 x86_64 GNU/Linux

    PHP 5.2.6-1+lenny3 with Suhosin-Patch (cli) (built: Apr 26 2009 20:09:03)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
  4. gzero

    gzero New Member

    I thought segfaults are caused by bad programming? Maybe there is a bug in the mysql module in php?

    After thinking about it again and searching the forum I have set the following:

    max_connections = 500
    max_user_connections = 500

    This seems to fix the issues and it runs now without problems. Mysql only allows 151 connections by default which is to limited for my implementation (it seems).



Share This Page