openresty / openresty/set-misc-nginx-module

compile with openssl4 successfully,but with error worker process 80894 exited on signal 11 (core dumped)

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
401
Forks
100
Avg merge
1h 28m
Merged PRs (30d)
2

Description

compile with openssl4 successfully,but with error(nginx error log file): worker process 80894 exited on signal 11 (core dumped)

##nginx-1.30.4 complile parms:

./configure --prefix=/usr/local/nginx
--user=www
--group=www
--pid-path=/var/run/nginx.pid
--lock-path=/var/run/nginx.lock
--with-compat
--with-stream
--with-threads
--with-file-aio
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_mp4_module
--with-pcre=../pcre2-10.47
--with-openssl=../openssl-4.0.1
--with-http_ssl_module
--with-http_v2_module
--with-http_v3_module
--add-module=../ngx_devel_kit-master
--add-module=../set-misc-nginx-module-master
--add-module=../redis2-nginx-module-master
--add-module=../ngx_http_redis-0.4.1
--add-module=../srcache-nginx-module-master
--add-module=../nginx-http-concat-master/
--with-zlib=../zlib-1.3.2
--add-module=../headers-more-nginx-module-master
--add-module=../echo-nginx-module-master
make ;make install

virtual host configuration:

location /redis-fetch {
internal ;
#set $redis_key $args;
set_md5 $redis_key $args;
redis_pass redis;
}

location /redis-store {
    internal;
    set_unescape_uri $exptime $arg_exptime;
    set_unescape_uri $key $arg_key;
    set_md5 $key;
    redis2_query set $key $echo_request_body;
    redis2_query expire $key $exptime;
    redis2_pass redis;
} 

linux /var/log/message file:

systemd-coredump[80950]: Process 80931 (nginx) of user 1000 dumped core.#012#012Stack trace of thread 80931:#012#0 0x00000000004a6085 ngx_md5_body (nginx + 0xa6085)#012#1 0x00000000004a676a ngx_md5_update (nginx + 0xa676a)#012#2 0x00000000005790ca ngx_http_set_misc_set_md5 (nginx + 0x1790ca)#012#3 0x0000000000577281 ndk_set_var_value_code (nginx + 0x177281)#012#4 0x0000000000536034 ngx_http_rewrite_handler (nginx + 0x136034)#012#5 0x00000000004ebada ngx_http_core_rewrite_phase (nginx + 0xebada)#012#6 0x00000000004e719f ngx_http_core_run_phases (nginx + 0xe719f)#012#7 0x00000000004e7235 ngx_http_handler (nginx + 0xe7235)#012#8 0x00000000004ed9b7 ngx_http_internal_redirect (nginx + 0xed9b7)#012#9 0x000000000052e4d6 ngx_http_index_handler (nginx + 0x12e4d6)#012#10 0x00000000004ecafe ngx_http_core_content_phase (nginx + 0xecafe)#012#11 0x00000000004e719f ngx_http_core_run_phases (nginx + 0xe719f)#012#12 0x00000000004e7235 ngx_http_handler (nginx + 0xe7235)#012#13 0x00000000004f1b0c ngx_http_process_request (nginx + 0xf1b0c)#012#14 0x000000000052294a ngx_http_v2_run_request (nginx + 0x12294a)#012#15 0x0000000000523409 ngx_http_v2_state_process_header (nginx + 0x123409)#012#16 0x00000000005236b2 ngx_http_v2_state_field_huff (nginx + 0x1236b2)#012#17 0x00000000005238fe ngx_http_v2_state_field_len (nginx + 0x1238fe)#012#18 0x0000000000522af2 ngx_http_v2_state_process_header (nginx + 0x122af2)#012#19 0x00000000005236b2 ngx_http_v2_state_field_huff (nginx + 0x1236b2)#012#20 0x00000000005238fe ngx_http_v2_state_field_len (nginx + 0x1238fe)#012#21 0x0000000000523b3c ngx_http_v2_state_header_block (nginx + 0x123b3c)#012#22 0x00000000005212c0 ngx_http_v2_read_handler (nginx + 0x1212c0)#012#23 0x00000000005218c3 ngx_http_v2_idle_handler (nginx + 0x1218c3)#012#24 0x00000000004c39c8 ngx_epoll_process_events (nginx + 0xc39c8)#012#25 0x00000000004ba8a7 ngx_process_events_and_timers (nginx + 0xba8a7)#012#26 0x00000000004c2198 ngx_worker_process_cycle (nginx + 0xc2198)#012#27 0x00000000004c09d9 ngx_spawn_process (nginx + 0xc09d9)#012#28 0x00000000004c2a5a ngx_reap_children (nginx + 0xc2a5a)#012#29 0x000000000049b86c main (nginx + 0x9b86c)#012#30 0x00007f149b22a610 __libc_start_call_main (libc.so.6 + 0x2a610)#012#31 0x00007f149b22a6c0 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a6c0)#012#32 0x000000000049a0a5 _start (nginx + 0x9a0a5)#012ELF object binary architecture: AMD x86-64
Aug 24 17:57:59 systemd[1]: systemd-coredump@33-80949-0.service: Deactivated successfully.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Reproduce the crash with the posted nginx build and virtual-host configuration, then begin at ngx_md5_body and ngx_http_set_misc_set_md5 in the core-dump stack. The payload does not define the expected fix or completion criteria, so those must be established before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, nginx
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.