Re: NginX крошится с libperl-5.30

Vadim A. Misbakh-Soloviov nginx на mva.name
Сб Июн 29 17:00:59 UTC 2019


Поправка: оно не падает в таком положении (даже на той машине) ТОЛЬКО если 
цепляться по -p (без дебага, замечу, падает. Так что странно).

Попробовал запустить напрямую под gdb, получил такое:

```
#0  0x00007ffff492d0c7 in raise () from /lib64/libc.so.6
#1  0x00007ffff492eaf9 in abort () from /lib64/libc.so.6
#2  0x00007ffff49242a9 in ?? () from /lib64/libc.so.6
#3  0x00007ffff4924331 in __assert_fail () from /lib64/libc.so.6
#4  0x00007ffff4e1d28f in S__invlist_len (invlist=0x555555ea8078) at 
invlist_inline.h:49
#5  0x00007ffff4e48074 in Perl__invlist_intersection_maybe_complement_2nd 
(my_perl=0x555555dd5c60, a=0x555555ba4470, b=0x555555ea8078, 
complement_b=true, i=0x7fffffff7c50) at regcomp.c:9752
#6  0x00007ffff4e71842 in S_populate_ANYOF_from_invlist 
(my_perl=0x555555dd5c60, node=0x5555558ee2c8, invlist_ptr=0x7fffffff7c50) at 
regcomp.c:14827
#7  0x00007ffff4e8a3cb in S_regclass (my_perl=0x555555dd5c60, 
pRExC_state=0x7fffffff8da0, flagp=0x7fffffff8454, depth=5, stop_at_1=false, 
allow_mutiple_chars=false, silence_non_portable=false, strict=false, 
optimizable=true, ret_invlist=0x0) at regcomp.c:19069
#8  0x00007ffff4e672b7 in S_regatom (my_perl=0x555555dd5c60, 
pRExC_state=0x7fffffff8da0, flagp=0x7fffffff8454, depth=4) at regcomp.c:13332
#9  0x00007ffff4e604a0 in S_regpiece (my_perl=0x555555dd5c60, 
pRExC_state=0x7fffffff8da0, flagp=0x7fffffff8570, depth=3) at regcomp.c:12457
#10 0x00007ffff4e5fcd8 in S_regbranch (my_perl=0x555555dd5c60, 
pRExC_state=0x7fffffff8da0, flagp=0x7fffffff8618, first=1, depth=2) at 
regcomp.c:12377
#11 0x00007ffff4e5d0d2 in S_reg (my_perl=0x555555dd5c60, 
pRExC_state=0x7fffffff8da0, paren=0, flagp=0x7fffffff8ad8, depth=1) at 
regcomp.c:12088
#12 0x00007ffff4e3ebf7 in Perl_re_op_compile (my_perl=0x555555dd5c60, 
patternp=0x0, pat_count=1, expr=0x555555dee908, eng=0x7ffff532b9a0 
<PL_core_reg_engine>, old_re=0x0, is_bare_re=0x0, orig_rx_flags=0, 
pm_flags=1073741824) at regcomp.c:7705
#13 0x00007ffff4d43d43 in Perl_pmruntime (my_perl=0x555555dd5c60, 
o=0x555555dee948, expr=0x555555dee908, repl=0x0, flags=1, floor=0) at op.c:
7130
#14 0x00007ffff4e0e38f in Perl_yyparse (my_perl=0x555555dd5c60, gramtype=258) 
at perly.y:1234
#15 0x00007ffff50080ed in S_doeval_compile (my_perl=0x555555dd5c60, gimme=2 
'\002', outside=0x0, seq=183, hh=0x0) at pp_ctl.c:3502
#16 0x00007ffff500f64e in S_require_file (my_perl=0x555555dd5c60, 
sv=0x555555b9ce10) at pp_ctl.c:4322
#17 0x00007ffff500f7aa in Perl_pp_require (my_perl=0x555555dd5c60) at 
pp_ctl.c:4346
#18 0x00007ffff4eb6c4a in Perl_runops_debug (my_perl=0x555555dd5c60) at 
dump.c:2537
#19 0x00007ffff4d7e142 in Perl_call_sv (my_perl=0x555555dd5c60, 
sv=0x555555b9cde0, flags=13) at perl.c:3043
#20 0x00007ffff4d89318 in Perl_call_list (my_perl=0x555555dd5c60, oldscope=6, 
paramList=0x555555f9e480) at perl.c:5088
#21 0x00007ffff4d586c0 in S_process_special_blocks (my_perl=0x555555dd5c60, 
floor=171, fullname=0x555555f70cd8 "BEGIN", gv=0x555555f9e558, 
cv=0x555555b9cde0) at op.c:10471
#22 0x00007ffff4d57cac in Perl_newATTRSUB_x (my_perl=0x555555dd5c60, 
floor=171, o=0x555555ec8150, proto=0x0, attrs=0x0, block=0x555555ec8110, 
o_is_gv=false) at op.c:10397
#23 0x00007ffff4d458c2 in Perl_utilize (my_perl=0x555555dd5c60, aver=1, 
floor=171, version=0x0, idop=0x555555fac968, arg=0x5555558d5b08) at op.c:7592
#24 0x00007ffff4e0a061 in Perl_yyparse (my_perl=0x555555dd5c60, gramtype=258) 
at perly.y:335
#25 0x00007ffff50080ed in S_doeval_compile (my_perl=0x555555dd5c60, gimme=2 
'\002', outside=0x0, seq=4294967246, hh=0x0) at pp_ctl.c:3502
#26 0x00007ffff500f64e in S_require_file (my_perl=0x555555dd5c60, 
sv=0x555555e35038) at pp_ctl.c:4322
#27 0x00007ffff500f7aa in Perl_pp_require (my_perl=0x555555dd5c60) at 
pp_ctl.c:4346
#28 0x00007ffff4eb6c4a in Perl_runops_debug (my_perl=0x555555dd5c60) at 
dump.c:2537
#29 0x00007ffff4d7e142 in Perl_call_sv (my_perl=0x555555dd5c60, 
sv=0x555555f77f28, flags=13) at perl.c:3043
#30 0x00007ffff4d89318 in Perl_call_list (my_perl=0x555555dd5c60, oldscope=2, 
paramList=0x555555f77fa0) at perl.c:5088
#31 0x00007ffff4d586c0 in S_process_special_blocks (my_perl=0x555555dd5c60, 
floor=45, fullname=0x555555f70cd8 "BEGIN", gv=0x555555f77fb8, 
cv=0x555555f77f28) at op.c:10471
#32 0x00007ffff4d57cac in Perl_newATTRSUB_x (my_perl=0x555555dd5c60, floor=45, 
o=0x555555f73970, proto=0x0, attrs=0x0, block=0x555555f73930, o_is_gv=false) 
at op.c:10397
#33 0x00007ffff4d458c2 in Perl_utilize (my_perl=0x555555dd5c60, aver=1, 
floor=45, version=0x0, idop=0x555555f9c978, arg=0x0) at op.c:7592
#34 0x00007ffff4e0a061 in Perl_yyparse (my_perl=0x555555dd5c60, gramtype=258) 
at perly.y:335
#35 0x00007ffff4d7b4a3 in S_parse_body (my_perl=0x555555dd5c60, env=0x0, 
xsinit=0x5555556a3ab6 <ngx_http_perl_xs_init>) at perl.c:2531
#36 0x00007ffff4d791f8 in perl_parse (my_perl=0x555555dd5c60, 
xsinit=0x5555556a3ab6 <ngx_http_perl_xs_init>, argc=4, argv=0x555555acf8c8, 
env=0x0) at perl.c:1822
#37 0x00005555556a4988 in ngx_http_perl_create_interpreter (cf=0x7fffffffca70, 
pmcf=0x5555560b2c68) at src/http/modules/perl/ngx_http_perl_module.c:605
#38 0x00005555556a465c in ngx_http_perl_init_interpreter (cf=0x7fffffffca70, 
pmcf=0x5555560b2c68) at src/http/modules/perl/ngx_http_perl_module.c:524
#39 0x00005555556acc9a in ngx_http_perl_init_main_conf (cf=0x7fffffffca70, 
conf=0x5555560b2c68) at src/http/modules/perl/ngx_http_perl_module.c:819
#40 0x00005555555f7356 in ngx_http_block (cf=0x7fffffffca70, 
cmd=0x555555843380 <ngx_http_commands>, conf=0x555556431d10) at src/http/
ngx_http.c:262
#41 0x00005555555bfca7 in ngx_conf_handler (cf=0x7fffffffca70, last=1) at src/
core/ngx_conf_file.c:463
#42 0x00005555555bf7b0 in ngx_conf_parse (cf=0x7fffffffca70, 
filename=0x7fffffffc700) at src/core/ngx_conf_file.c:319
#43 0x00005555555c0b2c in ngx_conf_include (cf=0x7fffffffca70, 
cmd=0x5555558421c0 <ngx_conf_commands>, conf=0x555556431cd8) at src/core/
ngx_conf_file.c:873
#44 0x00005555555bfca7 in ngx_conf_handler (cf=0x7fffffffca70, last=0) at src/
core/ngx_conf_file.c:463
#45 0x00005555555bf7b0 in ngx_conf_parse (cf=0x7fffffffca70, 
filename=0x5555564309f0) at src/core/ngx_conf_file.c:319
#46 0x00005555555bae23 in ngx_init_cycle (old_cycle=0x5555558ca020) at src/
core/ngx_cycle.c:275
#47 0x00005555555e270f in ngx_master_process_cycle (cycle=0x5555558ca020) at 
src/os/unix/ngx_process_cycle.c:235
#48 0x0000555555599e26 in main (argc=3, argv=0x7fffffffd0d8) at src/core/
nginx.c:382
```




Подробная информация о списке рассылки nginx-ru