Welcome! Log In Create A New Profile

Advanced

Re: segfault on fs stat

Maxim Dounin
May 13, 2010 06:36AM
Hello!

On Thu, May 13, 2010 at 11:57:25AM +0200, Daniele Melosi wrote:

> 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;
> }

Igor already provided correct method to do what you want, but it
would be helpfull to debug SIGSEGV as well. Please obtain
coredump and show backtrace, i.e. output of

gdb /path/to/nginx /path/to/nginx.core
bt

Also please show output of nginx -V and full config.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

segfault on fs stat

Daniele Melosi May 13, 2010 06:00AM

Re: segfault on fs stat

Igor Sysoev May 13, 2010 06:08AM

Re: segfault on fs stat

Maxim Dounin May 13, 2010 06:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready