segfault at 0 ip 000000000042d9ae sp 00007ffdc4fe6e70 error 4 in nginx[400000+d4000]

Андрей Василишин a.vasilishin на kpi.ua
Ср Авг 12 10:34:38 UTC 2015


11.08.2015 16:01, Maxim Dounin пишет:
> Hello!
>
> On Mon, Aug 10, 2015 at 10:02:10PM +0300, Андрей Василишин wrote:
>
>> Есть такая проблема, в логах смотрю каждый день по 2 -3 сабжевых ошибки, как
>> следствие график по stub_status постоянно растет вверх и не отображает
>> реальность. Кто виноват и что делать?
>
> Для начала - получить core dump и посмотреть на backtrace,
> подробнее тут:
>
> http://wiki.nginx.org/Debugging#Core_dump
>



root на CSRH005:~# gdb /usr/sbin/nginx /var/www/s13.igru-film.net/core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/nginx...Reading symbols from 
/usr/lib/debug/usr/sbin/nginx...done.
done.
[New LWP 32226]

warning: Can't read pathname for load map: Ошибка ввода/вывода.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nginx: worker process                   '.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000044c11f in ngx_http_copy_aio_event_handler (ev=0x3e68bb8) 
at src/http/ngx_http_copy_filter_module.c:198
198     src/http/ngx_http_copy_filter_module.c: Нет такого файла или 
каталога.
(gdb) backtrace full
#0  0x000000000044c11f in ngx_http_copy_aio_event_handler (ev=0x3e68bb8) 
at src/http/ngx_http_copy_filter_module.c:198
         aio = 0x3e68b50
         r = 0x3052910
#1  0x0000000000424743 in ngx_event_process_posted 
(cycle=cycle на entry=0x14c9c40, posted=0x6ec170) at 
src/event/ngx_event_posted.c:33
         q = 0x3e68c08
         ev = 0x3e68bb8
#2  0x00000000004241e1 in ngx_process_events_and_timers 
(cycle=cycle на entry=0x14c9c40) at src/event/ngx_event.c:259
         flags = <optimized out>
         timer = <optimized out>
         delta = <optimized out>
#3  0x000000000042b29f in ngx_worker_process_cycle 
(cycle=cycle на entry=0x14c9c40, data=data на entry=0x9) at 
src/os/unix/ngx_process_cycle.c:769
         worker = 9
         i = <optimized out>
         c = <optimized out>
#4  0x0000000000429cc7 in ngx_spawn_process 
(cycle=cycle на entry=0x14c9c40, proc=proc на entry=0x42b1e0 
<ngx_worker_process_cycle>, data=data на entry=0x9, 
name=name на entry=0x4ae4f1 "worker process",
     respawn=respawn на entry=-4) at src/os/unix/ngx_process.c:198
         on = 1
         pid = 0
         s = <optimized out>
#5  0x000000000042b554 in ngx_start_worker_processes 
(cycle=cycle на entry=0x14c9c40, n=12, type=type на entry=-4) at 
src/os/unix/ngx_process_cycle.c:358
         i = <optimized out>
         ch = {command = 1, pid = 32225, slot = 20, fd = 54}
#6  0x000000000042c45c in ngx_master_process_cycle (cycle=0x14c9c40, 
cycle на entry=0x13ee570) at src/os/unix/ngx_process_cycle.c:243
         title = <optimized out>
         p = <optimized out>
         size = <optimized out>
         i = <optimized out>
         n = <optimized out>
         sigio = 0
         set = {__val = {0 <repeats 16 times>}}
         itv = {it_interval = {tv_sec = 0, tv_usec = 0}, it_value = 
{tv_sec = 0, tv_usec = 0}}
         live = <optimized out>
         delay = 0
         ls = <optimized out>
         ccf = 0x14ca3c0
#7  0x0000000000408801 in main (argc=<optimized out>, argv=<optimized 
out>) at src/core/nginx.c:415
         b = <optimized out>
         log = 0x6e8ea0
         i = <optimized out>
         cycle = 0x13ee570
         init_cycle = {conf_ctx = 0x0, pool = 0x13ede70, log = 0x6e8ea0, 
new_log = {log_level = 0, file = 0x0, connection = 0, disk_full_time = 
0, handler = 0, data = 0x0, writer = 0, wdata = 0x0,
             action = 0x0, next = 0x0}, log_use_stderr = 0, files = 0x0, 
free_connections = 0x0, free_connection_n = 0, 
reusable_connections_queue = {prev = 0x0, next = 0x0}, listening = {
             elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool = 0x0}, 
paths = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool = 0x0}, 
config_dump = {elts = 0x0, nelts = 0, size = 0,
             nalloc = 0, pool = 0x0}, open_files = {last = 0x0, part = 
{elts = 0x0, nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 0x0}, 
shared_memory = {last = 0x0, part = {elts = 0x0,
               nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 
0x0}, connection_n = 0, files_n = 0, connections = 0x0, read_events = 
0x0, write_events = 0x0, old_cycle = 0x0, conf_file = {
             len = 21, data = 0x7ffdc4fe9dcb "ss"}, conf_param = {len = 
0, data = 0x0}, conf_prefix = {len = 11, data = 0x7ffdc4fe9dcb "ss"}, 
prefix = {len = 11, data = 0x4aa3e2 "/etc/nginx/"},
           lock_file = {len = 0, data = 0x0}, hostname = {len = 0, data 
= 0x0}}
         cd = <optimized out>
         ccf = <optimized out>
(gdb) quit



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