Skip to content

[4.4.4] Segmentation fault (core dumped) #2801

@NHZEX

Description

@NHZEX

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a simple script for reproducing the error.
    不能稳定复现,无法定位问题,暂时无法提供

  2. What did you see instead?
    Segmentation fault (core dumped)

  3. What version of Swoole are you using (show your php --ri swoole)?

Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.4.4
Built => Aug 19 2019 03:19:00
coroutine => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.1.1c  28 May 2019
http2 => enabled
pcre => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
  1. What is your machine environment used (including version of kernel & php & gcc) ?
    PHP 7.2.20-2+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jul 25 2019 11:42:36) ( NTS )

  2. gdb php core

Core was generated by `php ops-manager    '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  sw_zend_call_function_ex (retval=0x0, params=0x7fabb2f03e40, param_count=1, 
    fci_cache=0x7fabb2f03e78, function_name=0x0)
    at /home/vagrant/code/install/swoole-4.4.4/php_swoole.h:1049
1049	        ZVAL_COPY_VALUE(&fci.function_name, function_name);
(gdb) bt
#0  sw_zend_call_function_ex (retval=0x0, params=0x7fabb2f03e40, param_count=1, 
    fci_cache=0x7fabb2f03e78, function_name=0x0)
    at /home/vagrant/code/install/swoole-4.4.4/php_swoole.h:1049
#1  sw_zend_call_function_ex2 (retval=0x0, params=0x7fabb2f03e40, param_count=1, 
    fci_cache=0x7fabb2f03e78, function_name=0x0)
    at /home/vagrant/code/install/swoole-4.4.4/php_swoole.h:1072
#2  php_swoole_event_onWrite (reactor=0x55a3c523a390, event=0x7ffed2535c40)
    at /home/vagrant/code/install/swoole-4.4.4/swoole_event.cc:159
#3  0x00007fabb37740f4 in swReactorEpoll_wait (reactor=0x55a3c523a390, timeo=<optimized out>)
    at /home/vagrant/code/install/swoole-4.4.4/src/reactor/epoll.c:267
#4  0x00007fabb37a6657 in php_swoole_event_wait ()
    at /home/vagrant/code/install/swoole-4.4.4/swoole_event.cc:297
#5  0x00007fabb37a6718 in zif_swoole_event_wait (return_value=<optimized out>, 
    execute_data=<optimized out>) at /home/vagrant/code/install/swoole-4.4.4/swoole_event.cc:784
#6  zif_swoole_event_rshutdown (execute_data=<optimized out>, return_value=<optimized out>)
    at /home/vagrant/code/install/swoole-4.4.4/swoole_event.cc:792
#7  0x000055a3c45c8731 in zend_call_function ()
#8  0x000055a3c45c8c75 in _call_user_function_ex ()
#9  0x000055a3c4504ff5 in ?? ()
#10 0x000055a3c45eb46c in zend_hash_apply ()
#11 0x000055a3c4508f56 in php_call_shutdown_functions ()
#12 0x000055a3c45729c5 in php_request_shutdown ()
#13 0x000055a3c468c29c in ?? ()
#14 0x000055a3c4427f8c in ?? ()
#15 0x00007fabc7f63830 in __libc_start_main (main=0x55a3c4427b10, argc=3, argv=0x7ffed2537fa8, 
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
    stack_end=0x7ffed2537f98) at ../csu/libc-start.c:291
#16 0x000055a3c44280a9 in _start **()**

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions