Welcome! Log In Create A New Profile

Advanced

Re: Worker dies with a segfault error

Maxim Dounin
March 04, 2014 11:12AM
Hello!

On Tue, Mar 04, 2014 at 10:07:28AM -0500, greekduke wrote:

> Hello
>
> Below is the backtrace. I have seen the behaviour without eval and Postgres
> and I will try to take a trace tomorrow. In the debug log actually there is
> no error. Since I have only one worker the PID just changes to the new
> worker without any info. Since I am using nginx as proxy only I am
> suspecting that the error has to do with the proxy functionality.

Your config uses eval{} block in "location /", and postgres module
is used inside of the eval{}. That is, two 3rd party modules are
used for each request, and bugs in these modules can easily cause
problems.

[...]

> #0 ngx_pnalloc (pool=0x0, size=950) at src/core/ngx_palloc.c:155
> #1 0x0000000000437b20 in ngx_http_log_handler (r=0x1bfb540) at
> #2 0x000000000042d9dd in ngx_http_log_request (r=0x1bfb540) at
> #3 0x000000000042e04e in ngx_http_free_request (r=0x1bfb540, rc=0) at
> #4 0x000000000042fe5b in ngx_http_set_keepalive (r=0x1bfb540) at
> #5 ngx_http_finalize_connection (r=0x1bfb540) at
> #6 0x0000000000430724 in ngx_http_finalize_request (r=0x1bfb540, rc=-4) at
> #7 0x000000000042be5d in ngx_http_core_content_phase (r=0x1bfb540,
> #8 0x0000000000426873 in ngx_http_core_run_phases (r=0x1bfb540) at
> #9 0x000000000042db58 in ngx_http_run_posted_requests (c=0x7fc3cd0a74d0) at
> #10 0x0000000000440cfb in ngx_http_upstream_handler (ev=0x7fc3cce9e438) at
> #11 0x0000000000423257 in ngx_epoll_process_events (cycle=0x19bdde0,

[...]

Trace suggests most likely there is a problem with r->count
reference counting somewhere. As a next step, I would recommend
you to try to reproduce the problem without 3rd party modules.

--
Maxim Dounin
http://nginx.org/

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

Worker dies with a segfault error

greekduke February 24, 2014 06:34AM

Re: Worker dies with a segfault error

Maxim Dounin February 24, 2014 07:46AM

Re: Worker dies with a segfault error

greekduke February 24, 2014 07:59AM

Re: Worker dies with a segfault error

greekduke March 04, 2014 09:33AM

Re: Worker dies with a segfault error

Maxim Dounin March 04, 2014 09:56AM

Re: Worker dies with a segfault error

greekduke March 04, 2014 10:07AM

Re: Worker dies with a segfault error

Maxim Dounin March 04, 2014 11:12AM

Re: Worker dies with a segfault error

greekduke March 05, 2014 09:56AM

Re: Worker dies with a segfault error

Maxim Dounin March 05, 2014 11:04AM

Re: Worker dies with a segfault error

Yichun Zhang (agentzh) March 05, 2014 03:08PM

Re: Worker dies with a segfault error

greekduke March 13, 2014 11:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
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