nginx worker segfault, NULL pool
Bruno Prémont
bruno.premont at restena.lu
Fri Jun 8 21:40:46 UTC 2012
Hello Maxim,
> On Fri, 08 June 2012 Maxim Dounin <mdounin at mdounin.ru> wrote:
> > On Fri, Jun 08, 2012 at 02:40:52PM +0200, Bruno Prémont wrote:
> > > Running nginx on ARM I'm having it segfault at about any request (those
> > > known not to crash are /status/nginx and /status/php-fpm).
> > > Attaching it with GDB I get the following trace:
> >
> > [...]
> >
> > > geoip_country /usr/share/GeoIP/GeoIPv6.dat;
> >
> > Is it works for you if you don't use GeoIP?
>
> Just disabling it config side makes no difference.
>
> I will try disabling it at configure time and see if it changes
> anything, though I doubt it will.
Exact same result when geoip support is not built at all.
Looking more exactly at the URLs I tested, static file like images
don't crash the worker, just those that get handled by php-fpm upstream
do (e.g. /collectd/ which implies /collectd/index.php).
For the static files the result browser side looks the same, connection
closed before getting any content but that time around nginx logs something
to error log:
2012/06/08 23:30:42 [alert] 20638#0: *2 pread() read only 400 of 32768 from "/home/www/htdocs/collectd/add.png" while sending response to client, client: 123.123.123.123, server: arm.tld, request: "GET /collectd/add.png HTTP/1.1", host: "arm.tld"
Tough stat on that file returns:
File: `/home/www/htdocs/collectd/add.png'
Size: 400 Blocks: 8 IO Block: 4096 regular file
Device: b302h/45826d Inode: 33 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2010-02-26 17:31:32.899120476 +0100
Modify: 2010-02-26 17:31:32.899120476 +0100
Change: 2011-05-07 01:19:21.440005750 +0200
Birth: -
Toogling SendFile back to "on" seems to get file access to work again
(a few days ago with 1.2.0 turning it of made it work for a day or so)???
Bruno
More information about the nginx
mailing list