5 messages in ru.sysoev.nginxRe: Nginx 0.4.9 crashes using /dev/po...
FromSent OnAttachments
Per JonssonOct 20, 2006 6:36 am 
Igor SysoevOct 20, 2006 7:12 am 
Per JonssonOct 20, 2006 9:23 am 
Igor SysoevOct 21, 2006 11:13 am 
Igor SysoevOct 21, 2006 11:27 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: Nginx 0.4.9 crashes using /dev/poll on Solaris 10 on SparcActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Oct 21, 2006 11:13:05 am
List:ru.sysoev.nginx

On Fri, 20 Oct 2006, Per Jonsson wrote:

On Fri, Oct 20, 2006 at 06:12:53PM +0400, Igor Sysoev wrote:

When you get segfault ? Just when run nginx or some conditions are needed ? Could you use gdb ?

We're getting it during what we believe is normal operation, but not all the time. I haven't been able to find any certain conditions that give us the segfault. The nice thing though is that nginx recovers in a good way, but it's hard to transfer bigger files from the backend webservers running behind nginx.

Some times when can run for a couple of minutes without segfaults, but then get segfaults perhaps once a minute or more often.

I've managed to wrangle up a gdb, and the error is happening as per my earlier diagnosis.

The problem seems to be that ngx_cycle->files seems to contain null-pointers, and that the check for c->fd == -1 is not preceeded with a check for c == 0.

Please tell me if you need more info.

What does gdb show after segfault:

p event_list[i] p ngx_cycle->files[event_list[i].fd]