[Fixed] Periodical SIGSEGV in php-fpm while using webapp with KC 8.4.0~596 (utf-16.so)



  • Hello community,
    current KC 8.4.0~596 breaks webapp-functionality with php-fpm:
    When accessing an email-item in webapp (e.g. loading preview-pane) php-fpm asserts after mmapping utf-16.so .
    Downgrading core to 8.4.0-553 resolves the issue.

    CentOS 6.9
    PHP-FPM: PHP 5.6.30
    WebApp: 3.4.0.659-465.1

    strace:

    stat("/etc/krb5.conf", {st_mode=S_IFREG|0644, st_size=449, ...}) = 0
    open("/etc/krb5.conf", O_RDONLY)        = 8
    fcntl(8, F_SETFD, FD_CLOEXEC)           = 0
    fstat(8, {st_mode=S_IFREG|0644, st_size=449, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8f89464000
    read(8, "[logging]\n default = FILE:/var/l"..., 4096) = 449
    read(8, "", 4096)                       = 0
    close(8)                                = 0
    munmap(0x7f8f89464000, 4096)            = 0
    open("/dev/urandom", O_RDONLY)          = 8
    fcntl(8, F_SETFD, FD_CLOEXEC)           = 0
    fstat(8, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
    read(8, "\331ip\245\254\275\20\345M\346\243\366\2006' X\374B\fZ\367h\252V\243z\16\262D\4U"..., 64) = 64
    close(8)                                = 0
    socket(PF_LOCAL, SOCK_STREAM, 0)        = 8
    connect(8, {sa_family=AF_LOCAL, sun_path="/var/run/kopano/server.sock"}, 110) = 0
    sendto(8, "POST /var/run/kopano/server.sock"..., 1274, 0, NULL, 0) = 1274
    recvfrom(8, "HTTP/1.1 200 OK\r\nServer: gSOAP/2"..., 65536, 0, NULL, NULL) = 124
    recvfrom(8, "306\r\n<?xml version=\"1.0\" encodin"..., 65536, 0, NULL, NULL) = 786
    shutdown(8, SHUT_RDWR)                  = 0
    close(8)                                = 0
    open("/usr/lib64/gconv/UTF-16.so", O_RDONLY) = 8
    read(8, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\5\0\0\0\0\0\0"..., 832) = 832
    fstat(8, {st_mode=S_IFREG|0755, st_size=17112, ...}) = 0
    mmap(NULL, 2109496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0) = 0x7f8f89261000
    mprotect(0x7f8f89263000, 2097152, PROT_NONE) = 0
    mmap(0x7f8f89463000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0x2000) = 0x7f8f89463000
    close(8)                                = 0
    mprotect(0x7f8f89463000, 4096, PROT_READ) = 0
    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
    +++ killed by SIGSEGV +++
    

    ++umgfoin.



  • Looks like my error, but with php 7 and is also extended to z-push
    I published the error in WebApp

    Thanks

    Ihon




  • Kopano

    @jengelh could you have a look at this?



  • Same problem with package core-8.4.0~636_135.1-RHEL_6_PHP_56-x86_64

    ++umgfoin.


  • Kopano

    Hello community,

    Thank you for reporting the issue.

    We were also able to reproduce it on our test systems and have created a fix in version 8.4.0-644.

    Please upgrade your systems to this version (it’s just been published to the community) and let us know if the problem has been resolved.

    Kind regards,

    Joost



  • Hi Joost,

    thank you!
    It is working again :-)

    Thank you all

    Ihon



  • @Joost said in [Bugreport] Periodical SIGSEGV in php-fpm while using webapp with KC 8.4.0~596 (utf-16.so):

    Please upgrade your systems to this version (it’s just been published to the community) and let us know if the problem has been resolved.

    Hi Joost,
    thanks - build 8.4.0-644 fixes above issues on CentOS 6.9.

    I ran into one problem while applying the update (yum update *.rpm):

    php-xapian-1.2.21-5.1.x86_64.rpm postulates dependencies on php5 although it should depend on php56 (for the RHEL6 packages).
    rpm -U php-xapian-1.2.21-5.1.x86_64.rpm --nodeps was a workaround, but I think this package still needs fine-tuning.

    ++umgfoin.



Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.