Chilkat PHP扩展细分错误

时间:2019-06-08 16:07:58

标签: php chilkat

我使用PHP Chilkat imap扩展,但遇到分段错误。我无法提供完整的代码,因为它是一个大型应用程序。但我认为您可能了解回溯的问题。我有ubuntu服务器和PHP 7.2.2 ZTS,我将其与pthreads扩展一起使用。一段时间它可以工作,但是随后应用程序崩溃了,我得到了下一个回溯:

Thread 62 "php" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff11fff700 (LWP 71020)]
0x00007ffff3ca9f2b in _int_malloc (av=av@entry=0x7ffff4000c40 <main_arena>, 
    bytes=bytes@entry=136) at malloc.c:4028
4028    malloc.c: No such file or directory.

(gdb) bt
#0  0x00007ffff3ca9f2b in _int_malloc (av=av@entry=0x7ffff4000c40 <main_arena>, bytes=bytes@entry=136)
    at malloc.c:4028
#1  0x00007ffff3cac2ed in __GI___libc_malloc (bytes=136) at malloc.c:3065
#2  0x00007ffff6fa1258 in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007fffeba9f043 in StringBuffer::createNewSB(char const*) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#4  0x00007fffebb58f4d in LogEntry2::SetMessage(char const*, char const*) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#5  0x00007fffebb53b18 in _ckErrorLog::LogData(char const*, char const*) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#6  0x00007fffeb9e58ef in _ckLogger::LogData(char const*, char const*) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#7  0x00007fffeba8e592 in SshTransport::parseKexInit(DataBuffer&, int&, LogBase&) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#8  0x00007fffeba8faba in SshTransport::sshSetupConnection(_clsTcp&, bool&, bool&, SocketParams&, LogBase&)
    () from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#9  0x00007fffeba9093c in SshTransport::sshConnect(_clsTcp&, SocketParams&, LogBase&) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#10 0x00007fffeba7835a in Socket2::sshTunnel(XString&, int, _clsTcp&, LogBase&, SocketParams&) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#11 0x00007fffeb79fd03 in ClsImap::SshOpenTunnel(XString&, int, ProgressEvent*) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#12 0x00007fffeb66b4b2 in CkImap::SshOpenTunnel(char const*, int) ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#13 0x00007fffeb3adc83 in _wrap_CkImap_SshOpenTunnel ()
   from /etc/php7/lib/php/extensions/no-debug-zts-20170718/chilkat_9_5_0.so
#14 0x0000555555c41b13 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER ()
    at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:1032
#15 execute_ex (ex=0x110) at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:59752
#16 0x00007fffeac4ba15 in pthreads_execute_ex (data=<optimized out>)
    at /var/www/interceptor.cmd.source/pthreads/php_pthreads.c:135
#17 0x0000555555c3fe0d in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER ()
    at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:1013
#18 execute_ex (ex=0x110) at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:59752
#19 0x00007fffeac4ba15 in pthreads_execute_ex (data=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at /var/www/interceptor.cmd.source/pthreads/php_pthreads.c:135
#20 0x0000555555c3fe0d in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER ()
    at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:1013
#21 execute_ex (ex=0x110) at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:59752
#22 0x00007fffeac4ba15 in pthreads_execute_ex (data=<optimized out>)
    at /var/www/interceptor.cmd.source/pthreads/php_pthreads.c:135
#23 0x0000555555c3fe0d in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER ()
    at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:1013
#24 execute_ex (ex=0x110) at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:59752
#25 0x00007fffeac4ba15 in pthreads_execute_ex (data=<optimized out>)
    at /var/www/interceptor.cmd.source/pthreads/php_pthreads.c:135
#26 0x0000555555c3fe0d in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER ()
    at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:1013
#27 execute_ex (ex=0x110) at /home/rootint/php-src-php-7.2.2/Zend/zend_vm_execute.h:59752
#28 0x00007fffeac4ba15 in pthreads_execute_ex (data=<optimized out>)
    at /var/www/interceptor.cmd.source/pthreads/php_pthreads.c:135
#29 0x0000555555b7365b in zend_call_function (fci=fci@entry=0x7fff11ffeba0, fci_cache=0x7fff0ab8a660, 
    fci_cache@entry=0x7fff11ffebd8) at /home/rootint/php-src-php-7.2.2/Zend/zend_execute_API.c:819
#30 0x00007fffeac49232 in pthreads_routine_run_function (object=object@entry=0x7fffe8e5eb00, 
    connection=0x7fff11297100, work=work@entry=0x7fff11ffed00)
    at /var/www/interceptor.cmd.source/pthreads/src/object.c:481
#31 0x00007fffeac56aec in pthreads_routine (routine=<optimized out>)
    at /var/www/interceptor.cmd.source/pthreads/src/object.c:516
#32 0x00007ffff5e9e6db in start_thread (arg=0x7fff11fff700) at pthread_create.c:463
#33 0x00007ffff3d3688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

似乎在SshOpenTunnel崩溃

0 个答案:

没有答案