segmentation fault with include and virtual hosts
Manlio Perillo
manlio_perillo at libero.it
Tue Apr 17 01:32:42 MSD 2007
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
Regards Manlio Perillo
More information about the nginx
mailing list