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

Update ngx_http_upsync_module.c #248

Merged
merged 1 commit into from
Nov 15, 2019
Merged

Conversation

kuaikuai
Copy link
Contributor

通过队列指针获取原始数据结构,ngx_queue_data参数错误。

通过队列指针获取原始数据结构,ngx_queue_data参数错误。
@datastream
Copy link

I think this segfault is related to this patch.
#0 0x0000558bb35f9c32 in ngx_write_fd (n=77, buf=0x7ffffe2a7560, fd=<error reading variable: Cannot access memory at address 0x10>)
at src/os/unix/ngx_files.h:147
147 src/os/unix/ngx_files.h: No such file or directory.
(gdb) bt
#0 0x0000558bb35f9c32 in ngx_write_fd (n=77, buf=0x7ffffe2a7560, fd=<error reading variable: Cannot access memory at address 0x10>)
at src/os/unix/ngx_files.h:147
#1 ngx_log_error_core (level=level@entry=8, log=0x558bb4cec3d0, err=err@entry=0, fmt=fmt@entry=0x558bb3704e9d "event timer del: %d: %M")
at src/core/ngx_log.c:183
#2 0x0000558bb36b1acc in ngx_event_del_timer (ev=0x558bb4ad5280) at src/event/ngx_event_timer.h:34
#3 ngx_http_upsync_clear_all_events (cycle=) at ./debian/modules/nginx-upsync-module/src/ngx_http_upsync_module.c:3617
#4 0x0000558bb36b1c4d in ngx_http_upsync_need_exit () at ./debian/modules/nginx-upsync-module/src/ngx_http_upsync_module.c:3562
#5 0x0000558bb36b3fa8 in ngx_http_upsync_recv_handler (event=0x7f21f5886610) at ./debian/modules/nginx-upsync-module/src/ngx_http_upsync_module.c:2777
#6 0x0000558bb360a505 in ngx_close_idle_connections (cycle=cycle@entry=0x558bb4cda790) at src/core/ngx_connection.c:1274
#7 0x0000558bb3623200 in ngx_worker_process_cycle (cycle=cycle@entry=0x558bb4cda790, data=data@entry=0x0) at src/os/unix/ngx_process_cycle.c:767
#8 0x0000558bb362154f in ngx_spawn_process (cycle=cycle@entry=0x558bb4cda790, proc=proc@entry=0x558bb36230e0 <ngx_worker_process_cycle>,
data=data@entry=0x0, name=name@entry=0x558bb3707903 "worker process", respawn=respawn@entry=-4) at src/os/unix/ngx_process.c:199
#9 0x0000558bb36227e0 in ngx_start_worker_processes (cycle=cycle@entry=0x558bb4cda790, n=4, type=type@entry=-4) at src/os/unix/ngx_process_cycle.c:359
#10 0x0000558bb3624132 in ngx_master_process_cycle (cycle=0x558bb4cda790) at src/os/unix/ngx_process_cycle.c:244
#11 0x0000558bb35f8148 in main (argc=, argv=) at src/core/nginx.c:382

@xiaokai-wang xiaokai-wang merged commit 6b75f7a into weibocom:master Nov 15, 2019
@xiaokai-wang
Copy link
Member

Thanks @kuaikuai .

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

Successfully merging this pull request may close these issues.

3 participants