segfault on fs stat

Daniele Melosi ml at melosi.it
Thu May 13 13:57:25 MSD 2010


Hi all,

i've a strange problem with an nginx conf.

>From the strace i saw:
[pid  9749] recvfrom(58, "GET /post/18563571/post-via-perl"..., 1024, 0,
NULL, NULL) = 1003
[pid  9749]
stat("/var/www/htdocs/post/18563571/post-via-perl-direttamente-da-new-york",
0x7fff13379840) = -1 ENOENT (No such file or directory)
[pid  9749] --- SIGSEGV (Segmentation fault) @ 0 (0) ---

The related nginx conf is:
if ( !-e $request_filename) {
    rewrite ^(.*)$ /blog.php?q=$1 last;
    break;
}



More information about the nginx mailing list