-
Notifications
You must be signed in to change notification settings - Fork 391
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
segmentfault #258
Comments
@wooddeep 是master 分支?场景能描述一下吗 |
I saw the same problem, with the latest master. I think it is related to @xiaokai-wang last commit 75b4a12 @xiaokai-wang can you take a look?
|
Thanks @gfrankliu . |
Correct
… On Aug 15, 2019, at 3:47 AM, xiaokai ***@***.***> wrote:
Thanks @gfrankliu .
Only happens when reloading/stoping?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Were you able to reproduce? If you reload, most of time, you should see the worker process crashing, something like below in your nginx error log: 2019/08/19 03:39:23 [alert] 23219#23219: worker process 23222 exited on signal 11 BTW, It's not 100% always crashing. In case not crashing and you won't see those error logs, you will see a different problem: old worker process will stay in the "nginx: worker process is shutting down" for 30 minutes until going away. It doesn't matter what "upsync_timeout" value you set. |
BTW, if I revert commit 75b4a12 , the segfault will go away, but the other issue of "nginx: worker process is shutting down" hanging for 30 minutes still there. |
@gfrankliu Thanks for your infos, it's greate. I'll have a look. |
Hi, Any news regarding this issue? |
我看了下,应该是从queue上拿数据的时候,指针指错了。#267 @xiaokai-wang |
@tcp9 thanks great. Do you have a test? |
@tcp9 thanks! |
yes, I tested it in local env, use http://tengine.taobao.org/download/tengine-2.3.2.tar.gz with
seem to be sloved, any more test could i do? |
@gfrankliu yeah, I think it's necessary. |
Cannot access memory at address 0x8
(gdb) bt
#0 0x00000000004583f3 in ngx_rbtree_min (sentinel=, node=0x0) at src/core/ngx_rbtree.h:74
#1 ngx_rbtree_delete (tree=0xdacce0 <ngx_event_timer_rbtree>, node=node@entry=0x7f1eedbd05e8) at src/core/ngx_rbtree.c:176
#2 0x00000000005220ed in ngx_event_del_timer (ev=0x7f1eedbd05c0) at src/event/ngx_event_timer.h:49
#3 ngx_http_upsync_clear_all_events (cycle=) at /home/lee/share/test/mgsgw/openresty-1.11.2.2/nginx-upsync-module/src/ngx_http_upsync_module.c:3612
#4 0x00000000005221e4 in ngx_http_upsync_need_exit () at /home/lee/share/test/mgsgw/openresty-1.11.2.2/nginx-upsync-module/src/ngx_http_upsync_module.c:3557
#5 0x0000000000527366 in ngx_http_upsync_begin_handler (event=0x7f1ef6ebda30) at /home/lee/share/test/mgsgw/openresty-1.11.2.2/nginx-upsync-module/src/ngx_http_upsync_module.c:2577
#6 0x0000000000469162 in ngx_event_expire_timers () at src/event/ngx_event_timer.c:97
#7 0x0000000000468dbb in ngx_process_events_and_timers (cycle=cycle@entry=0x7f1ef6ba22f0) at src/event/ngx_event.c:256
#8 0x000000000046f0d1 in ngx_worker_process_cycle (cycle=0x7f1ef6ba22f0, data=) at src/os/unix/ngx_process_cycle.c:753
#9 0x000000000046dae0 in ngx_spawn_process (cycle=cycle@entry=0x7f1ef6ba22f0, proc=proc@entry=0x46f050 <ngx_worker_process_cycle>, data=data@entry=0x0,
name=name@entry=0x69a985 "worker process", respawn=respawn@entry=-4) at src/os/unix/ngx_process.c:198
#10 0x000000000046f2a4 in ngx_start_worker_processes (cycle=cycle@entry=0x7f1ef6ba22f0, n=1, type=type@entry=-4) at src/os/unix/ngx_process_cycle.c:358
#11 0x000000000046fe3a in ngx_master_process_cycle (cycle=0x7f1ef6ba22f0, cycle@entry=0x7f1ef834f290) at src/os/unix/ngx_process_cycle.c:243
#12 0x000000000044bef4 in main (argc=, argv=) at src/core/nginx.c:367
(gdb) l
The text was updated successfully, but these errors were encountered: