Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在worker进程的WorkerStart后,发生了段错误,gdb信息如下 #583

Closed
koolob opened this issue Mar 18, 2016 · 2 comments
Closed

Comments

@koolob
Copy link

koolob commented Mar 18, 2016

Program terminated with signal 11, Segmentation fault.
#0 swWorker_send2worker (dst_worker=0x7f6045f086d8, buf=0x7fff75b7b470, n=87, flag=3) at /root/swoole/swoole-1.8.2/src/network/Worker.c:536

536 if (dst_worker->pool->use_msgqueue)
Missing separate debuginfos, use: debuginfo-install php56w-cli-5.6.18-1.w6.x86_64
(gdb) bt
#0 swWorker_send2worker (dst_worker=0x7f6045f086d8, buf=0x7fff75b7b470, n=87, flag=3) at /root/swoole/swoole-1.8.2/src/network/Worker.c:536
#1 0x00007f604ce827f2 in swProcessPool_dispatch (pool=, data=, dst_worker_id=0x7fff75b7d488) at /root/swoole/swoole-1.8.2/src/network/ProcessPool.c:152
#2 0x00007f604ce53b92 in zim_swoole_server_task (ht=, return_value=0x7f6045c47180, return_value_ptr=, this_ptr=, return_value_used=)

at /root/swoole/swoole-1.8.2/swoole_server.c:2306

#3 0x00000000005d5359 in dtrace_execute_internal ()
#4 0x00000000006642a5 in ?? ()
#5 0x0000000000653d78 in execute_ex ()
#6 0x00000000005d548e in dtrace_execute_ex ()
#7 0x00000000005d7ef3 in zend_call_function ()
#8 0x00000000005d8b80 in call_user_function_ex ()
#9 0x00007f604ce57005 in php_swoole_onReceive (serv=, req=) at /root/swoole/swoole-1.8.2/swoole_server.c:599
#10 0x00007f604ce883ec in swWorker_onTask (factory=, task=0x7fff75b7d980) at /root/swoole/swoole-1.8.2/src/network/Worker.c:163
#11 0x00007f604ce884ab in swWorker_onPipeReceive (reactor=, event=0x7fff75b7f9f0) at /root/swoole/swoole-1.8.2/src/network/Worker.c:499
#12 0x00007f604ce7b491 in swReactorEpoll_wait (reactor=0x1575580, timeo=) at /root/swoole/swoole-1.8.2/src/reactor/ReactorEpoll.c:263
#13 0x00007f604ce88e79 in swWorker_loop (factory=, worker_id=) at /root/swoole/swoole-1.8.2/src/network/Worker.c:446
#14 0x00007f604ce86bc0 in swManager_spawn_worker (factory=0x1573980, worker_id=3) at /root/swoole/swoole-1.8.2/src/network/Manager.c:440
#15 0x00007f604ce86eb1 in swManager_start (factory=0x1573980) at /root/swoole/swoole-1.8.2/src/network/Manager.c:134
#16 0x00007f604ce78702 in swFactoryProcess_start (factory=0x1573980) at /root/swoole/swoole-1.8.2/src/factory/FactoryProcess.c:86
#17 0x00007f604ce7e1cd in swServer_start (serv=0x1573550) at /root/swoole/swoole-1.8.2/src/network/Server.c:568
#18 0x00007f604ce57b17 in zim_swoole_server_start (ht=, return_value=0x7f6045c40050, return_value_ptr=, this_ptr=0x7f6045c2e0a8, return_value_used=)

at /root/swoole/swoole-1.8.2/swoole_server.c:1771

#19 0x00000000005d5359 in dtrace_execute_internal ()

@matyhtf
Copy link
Member

matyhtf commented Mar 18, 2016

请用github上的1.8.3版本测试一下,另外请贴出你的PHP代码。

@matyhtf matyhtf closed this as completed Mar 23, 2016
@chenyangguang
Copy link

这个swoole作者是国人开发的呀, niubility!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants