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

Fixed nginx worker segmentation fault if http context is not defined. #718

Closed
wants to merge 1 commit into from

Conversation

defanator
Copy link
Contributor

This commit fixes segmentation fault in case when there is no http context defined in nginx configuration:

(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00000000004b43be in ngx_http_modsecurity_init_process (cycle=)

at /home/defan/src/modsecurity-2.8.0/nginx/modsecurity/ngx_http_modsecurity.c:943

#2 0x000000000042b9db in ngx_worker_process_init (cycle=0x14b4980, worker=) at src/os/unix/ngx_process_cycle.c:979
#3 0x000000000042bf92 in ngx_worker_process_cycle (cycle=0x14b4980, data=) at src/os/unix/ngx_process_cycle.c:744
#4 0x000000000042a721 in ngx_spawn_process (cycle=0x14b4980, proc=0x42bf6a <ngx_worker_process_cycle>, data=0x0, name=0x4ff403 "worker process", respawn=0)

at src/os/unix/ngx_process.c:198

#5 0x000000000042cae8 in ngx_reap_children (cycle=0x14b4980) at src/os/unix/ngx_process_cycle.c:628
#6 ngx_master_process_cycle (cycle=0x14b4980) at src/os/unix/ngx_process_cycle.c:181
#7 0x000000000040d02b in main (argc=, argv=) at src/core/nginx.c:407

(gdb)

@defanator defanator changed the title Fixed segmentation fault if http context is not defined. Fixed nginx worker segmentation fault if http context is not defined. May 12, 2014
@zimmerle
Copy link
Contributor

Closed as of #721.

@zimmerle zimmerle closed this May 16, 2014
@defanator defanator deleted the defanator branch July 26, 2016 11:42
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.

None yet

2 participants