nginx 1.0.4 crashes
David Yu
david.yu.ftw at gmail.com
Tue Jul 19 04:21:47 MSD 2011
On Tue, Jul 19, 2011 at 2:01 AM, Q & A <t.i.t.i.y.t.u.o at gmail.com> wrote:
> >> Could you reproduce the crash without third-pary modules which are built
> >> using --add-module ?
> >>
> >
> >
> > I don't know. I'll give it a try and report back if it still crashes.
>
>
>
> Hi again,
>
> Looks like it's still happening. I had several crashes that didn't
> block the server, and some that required it to be restarted.
> My current config is:
> nginx: nginx version: nginx/1.0.4
> nginx: TLS SNI support enabled
> nginx: configure arguments: --prefix=/etc/nginx
> --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error.log
> --http-client-body-temp-path=/var/lib/nginx/body
> --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
> --http-log-path=/var/log/nginx/access.log
> --http-proxy-temp-path=/var/lib/nginx/proxy
> --http-scgi-temp-path=/var/lib/nginx/scgi
> --http-uwsgi-temp-path=/var/lib/nginx/uwsgi
> --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
> --with-debug --with-http_addition_module --with-http_dav_module
> --with-http_flv_module --with-http_geoip_module
> --with-http_gzip_static_module --with-http_image_filter_module
> --with-http_perl_module --with-http_random_index_module
> --with-http_realip_module --with-http_secure_link_module
> --with-http_stub_status_module --with-http_ssl_module
> --with-http_sub_module --with-http_xslt_module --with-file-aio
> --with-ipv6 --with-sha1=/usr/include/openssl
> --with-md5=/usr/include/openssl
>
> (most of the extra options aren't used in my configs)
>
>
> Backtrace gives:
> Program terminated with signal 6, Aborted.
> #0 0x00007fb3895c7a75 in raise () from /lib/libc.so.6
> (gdb) bt
> #0 0x00007fb3895c7a75 in raise () from /lib/libc.so.6
> #1 0x00007fb3895cb5c0 in abort () from /lib/libc.so.6
> #2 0x00007fb3896014fb in ?? () from /lib/libc.so.6
> #3 0x00007fb38960b5b6 in ?? () from /lib/libc.so.6
> #4 0x00007fb38960f6d8 in ?? () from /lib/libc.so.6
> #5 0x00007fb38961058e in malloc () from /lib/libc.so.6
> #6 0x00007fb3896118f9 in posix_memalign () from /lib/libc.so.6
> #7 0x000000000042b39c in ngx_memalign ()
> #8 0x0000000000412b7c in ngx_create_pool ()
> #9 0x0000000000429150 in ngx_event_accept ()
> #10 0x00000000004285e4 in ngx_event_process_posted ()
> #11 0x0000000000427ddc in ngx_process_events_and_timers ()
> #12 0x000000000042f335 in ?? ()
> #13 0x000000000042d644 in ngx_spawn_process ()
> #14 0x000000000042e772 in ?? ()
> #15 0x000000000042f894 in ngx_master_process_cycle ()
> #16 0x0000000000411d17 in main ()
>
>
> Log output is:
> 2011/07/18 15:19:45 [alert] 26671#0: worker process 10016 exited on
> signal 6 (core dumped)
> 2011/07/18 15:19:52 [alert] 26671#0: worker process 11105 exited on
> signal 11 (core dumped)
> *** glibc detected *** nginx: worker process: malloc(): memory
> corruption: 0x0000000000cb02c0 ***
> ======= Backtrace: =========
> /lib/libc.so.6(+0x775b6)[0x7fb38960b5b6]
> /lib/libc.so.6(+0x7b6d8)[0x7fb38960f6d8]
> /lib/libc.so.6(__libc_malloc+0x6e)[0x7fb38961058e]
> /lib/libc.so.6(posix_memalign+0x39)[0x7fb3896118f9]
> nginx: worker process(ngx_memalign+0x2c)[0x42b39c]
> nginx: worker process(ngx_create_pool+0x1c)[0x412b7c]
> nginx: worker process(ngx_event_accept+0x1e0)[0x429150]
> nginx: worker process(ngx_event_process_posted+0x44)[0x4285e4]
> nginx: worker process(ngx_process_events_and_timers+0x8c)[0x427ddc]
> nginx: worker process[0x42f335]
> nginx: worker process(ngx_spawn_process+0x194)[0x42d644]
> nginx: worker process[0x42e772]
> nginx: worker process(ngx_master_process_cycle+0x1b4)[0x42f894]
> nginx: worker process(main+0x947)[0x411d17]
> /lib/libc.so.6(__libc_start_main+0xfd)[0x7fb3895b2c4d]
> nginx: worker process[0x410509]
> ======= Memory map: ========
> 00400000-004a1000 r-xp 00000000 09:01 6082
> /usr/sbin/nginx
> 006a0000-006a1000 r--p 000a0000 09:01 6082
> /usr/sbin/nginx
> 006a1000-006b2000 rw-p 000a1000 09:01 6082
> /usr/sbin/nginx
> 006b2000-00d3e000 rw-p 00000000 00:00 0
> [heap]
> [...]
>
>
> I'll try to downgrade to the latest 8.x version and see if it works.
> What else would you suggest to do?
>
Its gonna be hard to figure out the culprit since you've lots of 3rd party
modules :-)
>
>
> Regards,
> meris
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
--
When the cat is away, the mouse is alone.
- David Yu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110719/496d1429/attachment.html>
More information about the nginx
mailing list