Segmentation fault with /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.

Discussion in 'Installation/Configuration' started by AlecWeb, Jul 23, 2006.

  1. AlecWeb

    AlecWeb New Member

    Hi!

    I get a segmentation fault while running /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php on a brand new dell-rackserver with CentOS 4.3. I did a memtest during 9hours, with no errors.

    So I think there is something wrong with ISPConfig deamon. When rebooting/restarting the ISPConfig doesn't give an error on the screen. Please help me, I just don't want to install VHCS because of a stupid segmentation fault. ISPConfig is just great ;-) Thanks for the hard job guys :D

    Running:
    Code:
    [root@toucan ~]# /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
    start
    Segmentation fault
    I did an
    Code:
    strace /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
    , and this is what I get:
    Code:
    read(5, "################################"..., 8192) = 298
    close(5)                                = 0
    time(NULL)                              = 1153637428
    lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
    lstat64("/etc/postfix", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/etc/postfix/virtusertable", {st_mode=S_IFREG|0644, st_size=473, ...}) = 0
    open("/etc/postfix/virtusertable", O_RDONLY) = 5
    fstat64(5, {st_mode=S_IFREG|0644, st_size=473, ...}) = 0
    lseek(5, 0, SEEK_CUR)                   = 0
    stat64("/etc/postfix/virtusertable", {st_mode=S_IFREG|0644, st_size=473, ...}) = 0
    read(5, "################################"..., 8192) = 473
    close(5)                                = 0
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    read(4, 0x86f7520, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
    fcntl64(4, F_SETFL, O_RDWR)             = 0
    write(4, "\r\0\0\0\2db_ispconfig", 17)  = 17
    read(4, "\7\0\0\1", 4)                  = 4
    read(4, "\0\0\0\2\0\0\0", 7)            = 7
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    read(4, 0x86f7520, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
    fcntl64(4, F_SETFL, O_RDWR)             = 0
    write(4, "\312\0\0\0\3SELECT * from isp_isp_web, "..., 206) = 206
    read(4, "\1\0\0\1", 4)                  = 4
    read(4, "I", 1)                         = 1
    read(4, "D\0\0\2", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 68) = 68
    read(4, "L\0\0\3", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 76) = 76
    read(4, "H\0\0\4", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 72) = 72
    read(4, "L\0\0\5", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 76) = 76
    <.....>
    read(4, ">\0\0J", 4)                    = 4
    read(4, "\3def\fdb_ispconfig\tisp_nodes\tisp_"..., 62) = 62
    read(4, "\1\0\0K", 4)                   = 4
    read(4, "\376", 1)                      = 1
    read(4, "\5\0\0L", 4)                   = 4
    read(4, "\376\0\0\"\0", 5)              = 5
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    read(4, 0x86f7520, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
    fcntl64(4, F_SETFL, O_RDWR)             = 0
    write(4, "\r\0\0\0\2db_ispconfig", 17)  = 17
    read(4, "\7\0\0\1", 4)                  = 4
    read(4, "\0\0\0\2\0\0\0", 7)            = 7
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    read(4, 0x86f7520, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
    fcntl64(4, F_SETFL, O_RDWR)             = 0
    write(4, "\313\0\0\0\3SELECT * from isp_isp_web, "..., 207) = 207
    read(4, "\1\0\0\1", 4)                  = 4
    read(4, "I", 1)                         = 1
    read(4, "D\0\0\2", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 68) = 68
    read(4, "L\0\0\3", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 76) = 76
    read(4, "H\0\0\4", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 72) = 72
    read(4, "L\0\0\5", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 76) = 76
    read(4, "P\0\0\6", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 80) = 80
    read(4, "N\0\0\7", 4)                   = 4
    read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 78) = 78
    read(4, "F\0\0\10", 4)                  = 4
    <...>
    read(4, "\3def\fdb_ispconfig\tisp_nodes\tisp_"..., 62) = 62
    read(4, "@\0\0I", 4)                    = 4
    read(4, "\3def\fdb_ispconfig\tisp_nodes\tisp_"..., 64) = 64
    read(4, ">\0\0J", 4)                    = 4
    read(4, "\3def\fdb_ispconfig\tisp_nodes\tisp_"..., 62) = 62
    read(4, "\1\0\0K", 4)                   = 4
    read(4, "\376", 1)                      = 1
    read(4, "9\1\0L", 4)                    = 4
    read(4, "\0014\0041013\3www\ralexdomain.be\00210\003100"..., 313) = 313
    read(4, "\5\0\0M", 4)                   = 4
    read(4, "\376\0\0\"\0", 5)              = 5
    brk(0x887e000)                          = 0x887e000
    <...>
    brk(0x898d000)                          = 0x898d000
    brk(0x89ae000)                          = 0x89ae000
    mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d31000
    brk(0x89cf000)                          = 0x89cf000
    brk(0x89f0000)                          = 0x89f0000
    brk(0x8a11000)                          = 0x8a11000
    mmap2(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ce4000
    brk(0x8a32000)                          = 0x8a32000
    <...>
    brk(0x8ad7000)                          = 0x8ad7000
    mremap(0xb7d31000, 135168, 270336, MREMAP_MAYMOVE) = 0xb7ca2000
    brk(0x8af8000)                          = 0x8af8000
    <...>
    brk(0x8bbe000)                          = 0x8bbe000
    brk(0x8bdf000)                          = 0x8bdf000
    mremap(0xb7ce4000, 139264, 278528, MREMAP_MAYMOVE) = 0xb7c5e000
    brk(0x8c00000)                          = 0x8c00000
    <....>
    brk(0x8d8c000)                          = 0x8d8c000
    brk(0x8dad000)                          = 0x8dad000
    mremap(0xb7ca2000, 270336, 536576, MREMAP_MAYMOVE) = 0xb7bdb000
    brk(0x8dce000)                          = 0x8dce000
    brk(0x8def000)                          = 0x8def000
    brk(0x8e10000)                          = 0x8e10000
    <...>
    brk(0x8f9c000)                          = 0x8f9c000
    mremap(0xb7c5e000, 278528, 552960, MREMAP_MAYMOVE) = 0xb7c5e000
    brk(0x8fbd000)                          = 0x8fbd000
    brk(0x8fde000)                          = 0x8fde000
    brk(0x8fff000)                          = 0x8fff000
    brk(0x9020000)                          = 0x9020000
    brk(0x9041000)                          = 0x9041000
    brk(0x9062000)                          = 0x9062000
    --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    +++ killed by SIGSEGV +++
    Process 3707 detached
    
     
  2. AlecWeb

    AlecWeb New Member

    Just an extra thought:

    1) I edited the prefix to [DOMAIN]_ instead of web[WEBID]_
    2) I disabled SELinux
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    This is a problem with PHP 5.1 that occurs on some servers, if you check the PHP bugtracker you will find lots of errors that result in segfaults.

    Please have a look here:

    http://www.howtoforge.com/forums/showthread.php?t=3695

    The hotfix (PHP downgrade) works also with the latest ISPConfig release.
     
  4. AlecWeb

    AlecWeb New Member

    still got an error after downgrading.

    Could another operating system solve the problem?
     
  5. falko

    falko Super Moderator Howtoforge Staff

    A clean reinstall or another distribution could solve the problem.
     
  6. twarnick

    twarnick New Member

Share This Page