<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//DE"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><TITLE>Message</TITLE></HEAD><BODY>Can you make sure this is not a hardware memory error by running an extensive memory test on the machine&gt;<br>
<br>
----- original message --------<br>
<br>
<b>Subject:</b> Re: nginx 1.0.4 crashes<br><b>Sent:</b> Tue, 19 Jul 2011<br><b>From:</b> David Yu<david.yu.ftw@gmail.com><br><br><br><br><div class="gmail_quote">On Tue, Jul 19, 2011 at 2:01 AM, Q &amp; A <span dir="ltr">&lt;<a href="mailto:t.i.t.i.y.t.u.o@gmail.com">t.i.t.i.y.t.u.o@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">&gt;&gt; Could you reproduce the crash without third-pary modules which are built<br>
&gt;&gt; using --add-module ?<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; I don't know. I'll give it a try and report back if it still crashes.<br>
<br>
<br>
<br>
</div>Hi again,<br>
<br>
Looks like it's still happening. I had several crashes that didn't<br>
block the server, and some that required it to be restarted.<br>
My current config is:<br>
<div class="im">nginx: nginx version: nginx/1.0.4<br>
nginx: TLS SNI support enabled<br>
nginx: configure arguments: --prefix=/etc/nginx<br>
--conf-path=/etc/nginx/nginx.conf<br>
--error-log-path=/var/log/nginx/error.log<br>
--http-client-body-temp-path=/var/lib/nginx/body<br>
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi<br>
--http-log-path=/var/log/nginx/access.log<br>
--http-proxy-temp-path=/var/lib/nginx/proxy<br>
--http-scgi-temp-path=/var/lib/nginx/scgi<br>
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi<br>
--lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid<br>
--with-debug --with-http_addition_module --with-http_dav_module<br>
--with-http_flv_module --with-http_geoip_module<br>
--with-http_gzip_static_module --with-http_image_filter_module<br>
--with-http_perl_module --with-http_random_index_module<br>
--with-http_realip_module --with-http_secure_link_module<br>
--with-http_stub_status_module --with-http_ssl_module<br>
</div>--with-http_sub_module --with-http_xslt_module --with-file-aio<br>
<div class="im">--with-ipv6 --with-sha1=/usr/include/openssl<br>
--with-md5=/usr/include/openssl<br>
<br>
</div>(most of the extra options aren't used in my configs)<br>
<br>
<br>
Backtrace gives:<br>
Program terminated with signal 6, Aborted.<br>
#0 &nbsp;0x00007fb3895c7a75 in raise () from /lib/libc.so.6<br>
(gdb) bt<br>
#0 &nbsp;0x00007fb3895c7a75 in raise () from /lib/libc.so.6<br>
#1 &nbsp;0x00007fb3895cb5c0 in abort () from /lib/libc.so.6<br>
#2 &nbsp;0x00007fb3896014fb in ?? () from /lib/libc.so.6<br>
#3 &nbsp;0x00007fb38960b5b6 in ?? () from /lib/libc.so.6<br>
#4 &nbsp;0x00007fb38960f6d8 in ?? () from /lib/libc.so.6<br>
#5 &nbsp;0x00007fb38961058e in malloc () from /lib/libc.so.6<br>
#6 &nbsp;0x00007fb3896118f9 in posix_memalign () from /lib/libc.so.6<br>
#7 &nbsp;0x000000000042b39c in ngx_memalign ()<br>
#8 &nbsp;0x0000000000412b7c in ngx_create_pool ()<br>
#9 &nbsp;0x0000000000429150 in ngx_event_accept ()<br>
#10 0x00000000004285e4 in ngx_event_process_posted ()<br>
#11 0x0000000000427ddc in ngx_process_events_and_timers ()<br>
#12 0x000000000042f335 in ?? ()<br>
#13 0x000000000042d644 in ngx_spawn_process ()<br>
#14 0x000000000042e772 in ?? ()<br>
#15 0x000000000042f894 in ngx_master_process_cycle ()<br>
#16 0x0000000000411d17 in main ()<br>
<br>
<br>
Log output is:<br>
2011/07/18 15:19:45 [alert] 26671#0: worker process 10016 exited on<br>
signal 6 (core dumped)<br>
2011/07/18 15:19:52 [alert] 26671#0: worker process 11105 exited on<br>
signal 11 (core dumped)<br>
<div class="im">*** glibc detected *** nginx: worker process: malloc(): memory<br>
</div>corruption: 0x0000000000cb02c0 ***<br>
======= Backtrace: =========<br>
/lib/libc.so.6(+0x775b6)[0x7fb38960b5b6]<br>
/lib/libc.so.6(+0x7b6d8)[0x7fb38960f6d8]<br>
/lib/libc.so.6(__libc_malloc+0x6e)[0x7fb38961058e]<br>
/lib/libc.so.6(posix_memalign+0x39)[0x7fb3896118f9]<br>
nginx: worker process(ngx_memalign+0x2c)[0x42b39c]<br>
nginx: worker process(ngx_create_pool+0x1c)[0x412b7c]<br>
nginx: worker process(ngx_event_accept+0x1e0)[0x429150]<br>
nginx: worker process(ngx_event_process_posted+0x44)[0x4285e4]<br>
nginx: worker process(ngx_process_events_and_timers+0x8c)[0x427ddc]<br>
nginx: worker process[0x42f335]<br>
nginx: worker process(ngx_spawn_process+0x194)[0x42d644]<br>
nginx: worker process[0x42e772]<br>
nginx: worker process(ngx_master_process_cycle+0x1b4)[0x42f894]<br>
nginx: worker process(main+0x947)[0x411d17]<br>
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fb3895b2c4d]<br>
nginx: worker process[0x410509]<br>
======= Memory map: ========<br>
00400000-004a1000 r-xp 00000000 09:01 6082<br>
 &nbsp;/usr/sbin/nginx<br>
006a0000-006a1000 r--p 000a0000 09:01 6082<br>
 &nbsp;/usr/sbin/nginx<br>
006a1000-006b2000 rw-p 000a1000 09:01 6082<br>
 &nbsp;/usr/sbin/nginx<br>
006b2000-00d3e000 rw-p 00000000 00:00 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[heap]<br>
[...]<br>
<br>
<br>
I'll try to downgrade to the latest 8.x version and see if it works.<br>
What else would you suggest to do?<br></blockquote><div>Its gonna be hard to figure out the culprit since you've lots of 3rd party modules :-)</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
<br>
Regards,<br>
meris<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>When the cat is away, the mouse is alone.<br>- David Yu<br>
<br>
<br>
--- original message end ----<br>
</david.yu.ftw@gmail.com></BODY></HTML>