9 messages in ru.sysoev.nginxRe: segmentation fault with include a...
FromSent OnAttachments
Manlio PerilloApr 16, 2007 11:30 am 
Cliff WellsApr 16, 2007 12:49 pm 
Igor SysoevApr 16, 2007 1:03 pm 
Igor SysoevApr 16, 2007 1:17 pm 
Manlio PerilloApr 16, 2007 1:31 pm 
Manlio PerilloApr 16, 2007 1:36 pm 
Igor SysoevApr 16, 2007 1:42 pm 
Manlio PerilloApr 16, 2007 2:32 pm 
Manlio PerilloApr 19, 2007 6:15 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: segmentation fault with include and virtual hostsActions...
From:Manlio Perillo (manl@public.gmane.org)
Date:Apr 16, 2007 2:32:19 pm
List:ru.sysoev.nginx

Igor Sysoev ha scritto:

[...]

Starting nginx: /etc/init.d/nginx: line 27: 22905 Segmentation fault start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS

I could not reproduce the bug. Could you make sure that nginx has debug info, save coredump, and run gdb:

gdb -c /path/to/core /path/to/nginx bt q

Sorry, I do not know how to obtain a core dump. Here is the configuration file I'm using.

user www-data; worker_processes 1;

error_log /var/log/nginx/error.log; pid /var/run/nginx.pid;

events { use epoll; worker_connections 1024; }

debug_points abort; working_directory /etc/nginx; error_log /var/log/nginx/debug.log debug_core;

http { include /etc/nginx/mime.types; default_type application/octet-stream;

access_log /var/log/nginx/access.log;

sendfile on; #tcp_nopush on;

#keepalive_timeout 0; keepalive_timeout 65; tcp_nodelay on;

gzip on; }

http { server { listen 80; server_name localhost;

access_log /var/log/nginx/localhost.access.log;

location / { root /var/www/nginx-default; index index.html index.htm; } } }

http { server { listen 80; server_name doc.localhost;

location / { root /usr/share/doc; autoindex on; access_log off;

default_type text/plain; } } }

In debug.log I just obtain: 2007/04/16 23:26:40 [debug] 8629#0: bind() 0.0.0.0:80 #6 2007/04/16 23:26:40 [debug] 8629#0: bind() 0.0.0.0:80 #7