[Fixed] BUG: Kopano-gateway 8.4.0.415 unhandled exception in libkcutil.so.0 with process-model pthread



  • We have a current problem in kopano-gateway:
    An unhandled exception is thrown in libkcutil, if gateway ist started with option process_model = thread -
    kopano-process dies upon a first (IMAP)connection-attempt.

    Setting process_model to fork is a work around.

    kopano-gateway 8.4.0.415
    CentOS 6.9

    gateway.log/ backtrace:

    May  7 00:37:34 2017: [kopano-gateway|0x7f559511e820] [ notice] Starting kopano-gateway version 8,4,0,415 (415), pid 4108
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511e820] [notice ] Starting worker thread for IMAPs request
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] ----------------------------------------------------------------------
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] Fatal error detected. Please report all following information.
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] Application Gateway version: 8,4,0,415
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] OS: Linux, release: 2.6.32-042stab120.20, version: #1 SMP Fri Mar 10 16:52:50 MSK 2017, hardware: x86_64
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] Thread name: kopano-gateway
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] Peak RSS: 5488
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] Pid 4108 caught SIGABRT (6), out of memory or unhandled exception, traceback:
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] Backtrace:
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #0. /usr/lib64/libkcutil.so.0(+0x29ffd) [0x7f559362effd]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #1. /usr/lib64/libkcutil.so.0(+0x222cf) [0x7f55936272cf]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #2. /usr/lib64/libkcutil.so.0(_ZN2KC23generic_sigsegv_handlerEPNS_8ECLoggerEPKcS3_iPK7siginfoPKv+0x1d0) [0x7f5593627650]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #3. /lib64/libpthread.so.0(+0xf7e0) [0x7f5592a437e0]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #4. /lib64/libc.so.6(gsignal+0x35) [0x7f5590bf6495]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #5. /lib64/libc.so.6(abort+0x175) [0x7f5590bf7c75]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #6. /lib64/libc.so.6(+0x703a7) [0x7f5590c343a7]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #7. /lib64/libc.so.6(+0x75dee) [0x7f5590c39dee]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #8. /lib64/libc.so.6(+0x78c3d) [0x7f5590c3cc3d]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #9. /usr/sbin/kopano-gateway() [0x408c79]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #10. /lib64/libpthread.so.0(+0x7aa1) [0x7f5592a3baa1]
    Sun May  7 00:37:52 2017: [kopano-gateway|0x7f559511c700] [crit   ] #11. /lib64/libc.so.6(clone+0x6d) [0x7f5590cacbcd]
    

    ++umgfoin


  • Kopano

    @umgfoin said in BUG: Kopano-gateway 8.4.0.415 unhandled exception in libkcutil.so.0 with process-model pthread:

    We have a current problem in kopano-gateway:
    An unhandled exception is thrown in libkcutil, if gateway ist started with option process_model = thread -
    kopano-process dies upon a first (IMAP)connection-attempt.
    Setting process_model to fork is a work around.

    I submitted a fix for it but it has not reached master yet. If you want to compile your self you can cherry-pick https://stash.kopano.io/users/bsimonsen/repos/kopanocore/commits/76acf3f67746517ab379a9494c287f43e9e561d5

    But would expect it to be in master within this week. Corresponding JIRA ticket is here: https://jira.kopano.io/browse/KC-655

    Thanks for reporting!

    Bo



  • Hi Bo,
    just updated to 8,4,0,437:
    Pthreaded gateway is back to service again.

    Thanks for fixing.
    ++armin.


Log in to reply
 

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