Skip to content

Instantly share code, notes, and snippets.

@md2k

md2k/Another GDB Secret

Last active February 15, 2017 15:35
Show Gist options
  • Save md2k/4e18cc10649601bb93eed6a17bffc106 to your computer and use it in GitHub Desktop.
Save md2k/4e18cc10649601bb93eed6a17bffc106 to your computer and use it in GitHub Desktop.
Nginx + ModSec Module
Here i recompiled ModSec with CFLAGS=-g -O0
-----
During Nginx restart:
Feb 15 16:32:11 modsec kernel: [ 5009.397974] nginx[14432]: segfault at 7f9a3404f000 ip 00007f6e372d49da sp 00007ffc479cc3e8 error 4 in libc-2.19.so[7f6e3724c000+1ba000]
Feb 15 16:32:11 modsec kernel: [ 5009.421217] nginx[14431]: segfault at 7f9a3404f000 ip 00007f6e372d49da sp 00007ffc479cc4d8 error 4 in libc-2.19.so[7f6e3724c000+1ba000]
GDb for Process #14431:
(gdb) backtrace full
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
No locals.
#1 0x00007f6e35c44008 in std::string::compare(char const*) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#2 0x00007f6e36d6577c in operator==<char, std::char_traits<char>, std::allocator<char> > (__rhs="/var/log/modsecurity/debug.log", __lhs=<optimized out>) at /usr/include/c++/4.8/bits/basic_string.h:2509
No locals.
#3 modsecurity::debug_log::DebugLogWriter::find_handler (this=<optimized out>, fileName="/var/log/modsecurity/debug.log") at debug_log/debug_log_writer.cc:37
current = 0x7f6e38747000
#4 0x00007f6e36d657c0 in modsecurity::debug_log::DebugLogWriter::close (this=0x7f6e37045c90 <modsecurity::debug_log::DebugLogWriter::getInstance()::instance>, fileName=<error reading variable: Cannot access memory at address 0x7f9a3404f000>)
at debug_log/debug_log_writer.cc:176
a = 0x1df2a10
#5 0x00007f6e36d6528e in modsecurity::debug_log::DebugLog::~DebugLog (this=0x1df2a10, __in_chrg=<optimized out>) at debug_log/debug_log.cc:31
No locals.
#6 0x00007f6e36d65329 in modsecurity::debug_log::DebugLog::~DebugLog (this=0x1df2a10, __in_chrg=<optimized out>) at debug_log/debug_log.cc:32
No locals.
#7 0x00007f6e36d6162b in ~RulesProperties (this=0x1dfec20, __in_chrg=<optimized out>) at ../headers/modsecurity/rules_properties.h:105
No locals.
#8 modsecurity::Rules::~Rules (this=0x1dfec20, __in_chrg=<optimized out>) at rules.cc:80
No locals.
#9 0x00007f6e36d6197e in modsecurity::msc_rules_cleanup (rules=0x1dfec20) at rules.cc:335
No locals.
#10 0x00007f6e37048cb0 in ngx_http_modsecurity_config_cleanup (data=0x1e05358) at ../ModSecurity-nginx//src/ngx_http_modsecurity_module.c:653
old_pool = 0x0
t = 0x1e05358
#11 0x000000000041603f in ngx_destroy_pool (pool=0x1dc9af0) at src/core/ngx_palloc.c:57
p = 0x0
n = 0x1dc9b58
l = 0x1dcb820
c = 0x1e053b8
#12 0x00000000004526b2 in ngx_master_process_exit (cycle=0x1dc9b40) at src/os/unix/ngx_process_cycle.c:720
i = 85
#13 0x0000000000450e62 in ngx_master_process_cycle (cycle=0x1dc9b40) at src/os/unix/ngx_process_cycle.c:178
title = 0x25d0395 "master process /usr/sbin/nginx -c /etc/nginx/nginx.conf"
p = 0x25d03cc ""
size = 56
i = 3
n = 0
sigio = 3
set = {__val = {0 <repeats 16 times>}}
itv = {it_interval = {tv_sec = 0, tv_usec = 0}, it_value = {tv_sec = 0, tv_usec = 50000}}
live = 0
delay = 50
ls = 0x0
ccf = 0x1dcb820
#14 0x0000000000412364 in main (argc=3, argv=0x7ffc479ccb38) at src/core/nginx.c:367
b = 0x7f6e3724fd30
log = 0x7831a0 <ngx_log>
i = 140111372177536
cycle = 0x1dc9b40
init_cycle = {conf_ctx = 0x0, pool = 0x1dc8f80, log = 0x7831a0 <ngx_log>, new_log = {log_level = 0, file = 0x0, connection = 0, disk_full_time = 0, handler = 0x0, data = 0x0, writer = 0x0, wdata = 0x0, action = 0x0, next = 0x0}, log_use_stderr = 0, files = 0x0,
free_connections = 0x0, free_connection_n = 0, modules = 0x0, modules_n = 0, modules_used = 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 = 0x7ffc479cd90e "ss /usr/sbin/nginx -c /etc/nginx/nginx.conf"}, conf_param = {
len = 0, data = 0x0}, conf_prefix = {len = 11, data = 0x7ffc479cd90e "ss /usr/sbin/nginx -c /etc/nginx/nginx.conf"}, prefix = {len = 11, data = 0x532fe0 "/etc/nginx/"}, lock_file = {len = 0, data = 0x0}, hostname = {len = 0, data = 0x0}}
cd = 0x7ffc479cc840
ccf = 0x1dcb820
GDB For process 14432:
(gdb) backtrace full
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
No locals.
#1 0x00007f6e35c44008 in std::string::compare(char const*) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#2 0x00007f6e36d6577c in operator==<char, std::char_traits<char>, std::allocator<char> > (__rhs="/var/log/modsecurity/debug.log", __lhs=<optimized out>) at /usr/include/c++/4.8/bits/basic_string.h:2509
No locals.
#3 modsecurity::debug_log::DebugLogWriter::find_handler (this=<optimized out>, fileName="/var/log/modsecurity/debug.log") at debug_log/debug_log_writer.cc:37
current = 0x7f6e38747000
#4 0x00007f6e36d657c0 in modsecurity::debug_log::DebugLogWriter::close (this=0x7f6e37045c90 <modsecurity::debug_log::DebugLogWriter::getInstance()::instance>, fileName=<error reading variable: Cannot access memory at address 0x7f9a3404f000>)
at debug_log/debug_log_writer.cc:176
a = 0x1df2a10
#5 0x00007f6e36d6528e in modsecurity::debug_log::DebugLog::~DebugLog (this=0x1df2a10, __in_chrg=<optimized out>) at debug_log/debug_log.cc:31
No locals.
#6 0x00007f6e36d65329 in modsecurity::debug_log::DebugLog::~DebugLog (this=0x1df2a10, __in_chrg=<optimized out>) at debug_log/debug_log.cc:32
No locals.
#7 0x00007f6e36d6162b in ~RulesProperties (this=0x1dfec20, __in_chrg=<optimized out>) at ../headers/modsecurity/rules_properties.h:105
No locals.
#8 modsecurity::Rules::~Rules (this=0x1dfec20, __in_chrg=<optimized out>) at rules.cc:80
No locals.
#9 0x00007f6e36d6197e in modsecurity::msc_rules_cleanup (rules=0x1dfec20) at rules.cc:335
No locals.
#10 0x00007f6e37048cb0 in ngx_http_modsecurity_config_cleanup (data=0x1e05358) at ../ModSecurity-nginx//src/ngx_http_modsecurity_module.c:653
old_pool = 0x0
t = 0x1e05358
#11 0x000000000041603f in ngx_destroy_pool (pool=0x1dc9af0) at src/core/ngx_palloc.c:57
p = 0x0
n = 0x1dc9b58
l = 0x1dcb9d0
c = 0x1e053b8
#12 0x00000000004533d8 in ngx_worker_process_exit (cycle=0x1dc9b40) at src/os/unix/ngx_process_cycle.c:999
i = 85
c = 0x54ae
#13 0x00000000004527fc in ngx_worker_process_cycle (cycle=0x1dc9b40, data=0x0) at src/os/unix/ngx_process_cycle.c:758
worker = 0
#14 0x000000000044f000 in ngx_spawn_process (cycle=0x1dc9b40, proc=0x4526bc <ngx_worker_process_cycle>, data=0x0, name=0x537a2b "worker process", respawn=-3) at src/os/unix/ngx_process.c:198
on = 1
pid = 0
s = 0
#15 0x00000000004515ed in ngx_start_worker_processes (cycle=0x1dc9b40, n=1, type=-3) at src/os/unix/ngx_process_cycle.c:358
i = 0
ch = {command = 1, pid = 0, slot = 0, fd = 0}
#16 0x0000000000450ba0 in ngx_master_process_cycle (cycle=0x1dc9b40) at src/os/unix/ngx_process_cycle.c:130
title = 0x25d0395 "master process /usr/sbin/nginx -c /etc/nginx/nginx.conf"
p = 0x25d03cc ""
size = 56
i = 3
n = 0
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 = 0
delay = 0
ls = 0x0
ccf = 0x1dcb820
#17 0x0000000000412364 in main (argc=3, argv=0x7ffc479ccb38) at src/core/nginx.c:367
b = 0x7f6e3724fd30
log = 0x7831a0 <ngx_log>
i = 140111372177536
cycle = 0x1dc9b40
init_cycle = {conf_ctx = 0x0, pool = 0x1dc8f80, log = 0x7831a0 <ngx_log>, new_log = {log_level = 0, file = 0x0, connection = 0, disk_full_time = 0, handler = 0x0, data = 0x0, writer = 0x0, wdata = 0x0, action = 0x0, next = 0x0}, log_use_stderr = 0, files = 0x0,
free_connections = 0x0, free_connection_n = 0, modules = 0x0, modules_n = 0, modules_used = 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 = 0x7ffc479cd90e "ss"}, conf_param = {len = 0, data = 0x0}, conf_prefix = {
len = 11, data = 0x7ffc479cd90e "ss"}, prefix = {len = 11, data = 0x532fe0 "/etc/nginx/"}, lock_file = {len = 0, data = 0x0}, hostname = {len = 0, data = 0x0}}
cd = 0x7ffc479cc840
ccf = 0x1dcb820
This is for:
Feb 15 16:12:08 modsec kernel: [ 3805.982858] nginx[31156]: segfault at 7f0dc190e000 ip 00007fb737c7a9da sp 00007ffeb15b7ed8 error 4 in libc-2.19.so[7fb737bf2000+1ba000]
Feb 15 16:12:08 modsec kernel: [ 3806.006776] nginx[31155]: segfault at 7f0dc190e000 ip 00007fb737c7a9da sp 00007ffeb15b7fc8 error 4 in libc-2.19.so[7fb737bf2000+1ba000]
--------------------
# gdb /usr/sbin/nginx /tmp/cores/core.nginx.31156
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/nginx...done.
[New LWP 31156]
[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 SIGSEGV, Segmentation fault.
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) backtrace full
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
No locals.
#1 0x00007fb7365ee008 in std::string::compare(char const*) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#2 0x00007fb73770f6dc in operator==<char, std::char_traits<char>, std::allocator<char> > (__rhs="/var/log/modsecurity/debug.log", __lhs=<optimized out>) at /usr/include/c++/4.8/bits/basic_string.h:2509
No locals.
#3 modsecurity::debug_log::DebugLogWriter::find_handler (this=<optimized out>, fileName="/var/log/modsecurity/debug.log") at debug_log/debug_log_writer.cc:37
current = 0x7fb7390ed000
#4 0x00007fb73770f720 in modsecurity::debug_log::DebugLogWriter::close (this=0x7fb7379ebc70 <modsecurity::debug_log::DebugLogWriter::getInstance()::instance>, fileName=<error reading variable: Cannot access memory at address 0x7f0dc190e000>)
at debug_log/debug_log_writer.cc:176
a = 0x1227a00
#5 0x00007fb73770f1ee in modsecurity::debug_log::DebugLog::~DebugLog (this=0x1227a00, __in_chrg=<optimized out>) at debug_log/debug_log.cc:31
No locals.
#6 0x00007fb73770f289 in modsecurity::debug_log::DebugLog::~DebugLog (this=0x1227a00, __in_chrg=<optimized out>) at debug_log/debug_log.cc:32
No locals.
#7 0x00007fb73770b58b in ~RulesProperties (this=0x1233c10, __in_chrg=<optimized out>) at ../headers/modsecurity/rules_properties.h:105
No locals.
#8 modsecurity::Rules::~Rules (this=0x1233c10, __in_chrg=<optimized out>) at rules.cc:80
No locals.
#9 0x00007fb73770b8de in modsecurity::msc_rules_cleanup (rules=0x1233c10) at rules.cc:335
No locals.
#10 0x00007fb7379eecb0 in ngx_http_modsecurity_config_cleanup (data=0x123a348) at ../ModSecurity-nginx//src/ngx_http_modsecurity_module.c:653
old_pool = 0x0
t = 0x123a348
#11 0x0000000000416049 in ngx_destroy_pool (pool=0x11feae0) at src/core/ngx_palloc.c:57
p = 0x0
n = 0x11feb48
l = 0x12009c0
c = 0x123a3a8
#12 0x000000000045340f in ngx_worker_process_exit (cycle=0x11feb30) at src/os/unix/ngx_process_cycle.c:999
i = 85
c = 0x11c45
#13 0x0000000000452833 in ngx_worker_process_cycle (cycle=0x11feb30, data=0x0) at src/os/unix/ngx_process_cycle.c:758
worker = 0
#14 0x000000000044f00a in ngx_spawn_process (cycle=0x11feb30, proc=0x4526f3 <ngx_worker_process_cycle>, data=0x0, name=0x537ab3 "worker process", respawn=-3) at src/os/unix/ngx_process.c:198
on = 1
pid = 0
s = 0
#15 0x0000000000451624 in ngx_start_worker_processes (cycle=0x11feb30, n=1, type=-3) at src/os/unix/ngx_process_cycle.c:358
i = 0
ch = {command = 1, pid = 0, slot = 0, fd = 0}
#16 0x0000000000450bd7 in ngx_master_process_cycle (cycle=0x11feb30) at src/os/unix/ngx_process_cycle.c:130
title = 0x1a051d5 "master process /usr/sbin/nginx -c /etc/nginx/nginx.conf"
p = 0x1a0520c ""
size = 56
i = 3
n = 0
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 = 0
delay = 0
ls = 0x0
ccf = 0x1200810
#17 0x0000000000412364 in main (argc=3, argv=0x7ffeb15b8628) at src/core/nginx.c:367
b = 0x7fb737bf5d30
log = 0x7831a0 <ngx_log>
i = 140424914907264
cycle = 0x11feb30
init_cycle = {conf_ctx = 0x0, pool = 0x11fdf80, log = 0x7831a0 <ngx_log>, new_log = {log_level = 0, file = 0x0, connection = 0, disk_full_time = 0, handler = 0x0, data = 0x0, writer = 0x0, wdata = 0x0, action = 0x0, next = 0x0}, log_use_stderr = 0, files = 0x0,
free_connections = 0x0, free_connection_n = 0, modules = 0x0, modules_n = 0, modules_used = 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 = 0x7ffeb15b991b "ss"}, conf_param = {len = 0, data = 0x0}, conf_prefix = {
len = 11, data = 0x7ffeb15b991b "ss"}, prefix = {len = 11, data = 0x533030 "/etc/nginx/"}, lock_file = {len = 0, data = 0x0}, hostname = {len = 0, data = 0x0}}
cd = 0x7ffeb15b8330
ccf = 0x1200810
(gdb)
nginx -T
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
# configuration file /etc/nginx/nginx.conf:
load_module modules/ngx_http_modsecurity_module.so;
user www-data www-data;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
working_directory /tmp/cores/;
worker_rlimit_core 500M;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#charset koi8-r;
error_log /var/log/nginx/error.log debug;
access_log /var/log/nginx/host.access.log main;
location / {
root html;
index index.html index.htm;
}
### ModSecurity
modsecurity on;
modsecurity_rules_file /etc/nginx/modsec/www.domain.conf;
# modsecurity_rules '
# SecRuleEngine On
# SecDebugLog /tmp/modsec_debug.log
# SecDebugLogLevel 9
# SecRule ARGS "@streq test" "id:1,phase:1,deny,msg:\'test rule\'"
# ';
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
# configuration file /etc/nginx/mime.types:
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
image/svg+xml svg svgz;
image/webp webp;
application/font-woff woff;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.apple.mpegurl m3u8;
application/vnd.ms-excel xls;
application/vnd.ms-fontobject eot;
application/vnd.ms-powerpoint ppt;
application/vnd.wap.wmlc wmlc;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/xspf+xml xspf;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}
Log been truncated before Nginx started, it is only what was inside after start and later restart to get coredump, not very informative.
root@modsec:/var/log/nginx# cat error.log
2017/02/15 16:10:55 [debug] 31156#31156: epoll add event: fd:20 op:1 ev:00002001
2017/02/15 16:12:08 [alert] 31155#31155: worker process 31156 exited on signal 11 (core dumped)
2017/02/15 16:12:08 [debug] 31182#31182: epoll add event: fd:20 op:1 ev:00002001

OS:

Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty
nginx version: nginx/1.10.3
built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
built with OpenSSL 1.0.1f 6 Jan 2014
TLS SNI support enabled
configure arguments: --with-debug --add-dynamic-module=../ModSecurity-nginx/ --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-file-aio --with-threads --with-ipv6 --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-cc-opt=' -O0 -g' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment