*** glibc detected *** nginx: worker process: double free or corruption

Theodor Zurabishvili theodor на itdc.ge
Чт Июн 17 20:57:59 MSD 2010


Добрый день!

Имеется Fedora 12
2.6.32.9-70.fc12.i686.PAE

На ней установлен nginx со стриминг модулем h264
nginx version: nginx/0.8.39
built by gcc 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC)
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx
--sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
--with-select_module --with-poll_module --with-http_ssl_module
--with-http_realip_module --with-http_addition_module --with-http_sub_module
--with-http_dav_module --with-http_flv_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_secure_link_module
--with-http_stub_status_module --with-http_perl_module --with-debug
--add-module=/home/cloudtemple/rpmbuild/SOURCES/nginx_mod_h264_streaming-2.2.7
--with-cc-opt='-O2 -g -march=i386 -mtune=i686'

В логах появляются вот такие вот сообщения:

*** glibc detected *** nginx: worker process: double free or corruption
(!prev): 0x08632a68 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6e851)[0xd35851]
/lib/libc.so.6(fclose+0x14a)[0xd2566a]
nginx: worker process[0x80c0912]
nginx: worker process[0x80c14d4]
nginx: worker process[0x80bd8d4]
nginx: worker process(ngx_http_core_content_phase+0x28)[0x807f6b8]
nginx: worker process(ngx_http_core_run_phases+0x3b)[0x807a86b]
nginx: worker process[0x8085172]
nginx: worker process[0x8085e40]
nginx: worker process(ngx_event_process_posted+0x43)[0x80694d3]
nginx: worker process(ngx_process_events_and_timers+0xc4)[0x8069244]
nginx: worker process[0x8070645]
nginx: worker process(ngx_spawn_process+0x185)[0x806e955]
nginx: worker process(ngx_master_process_cycle+0x6f3)[0x80713b3]
nginx: worker process(main+0x7d5)[0x8054465]
/lib/libc.so.6(__libc_start_main+0xe6)[0xcddbb6]
nginx: worker process[0x8052e71]
======= Memory map: ========
00110000-00281000 r-xp 00000000 08:03 12840728 /usr/lib/libcrypto.so.1.0.0
00281000-00295000 rw-p 00170000 08:03 12840728 /usr/lib/libcrypto.so.1.0.0
00295000-00298000 rw-p 00000000 00:00 0
00298000-002af000 r-xp 00000000 08:03 180389 /lib/libnsl-2.11.2.so
002af000-002b0000 r--p 00016000 08:03 180389 /lib/libnsl-2.11.2.so
002b0000-002b1000 rw-p 00017000 08:03 180389 /lib/libnsl-2.11.2.so
002b1000-002b3000 rw-p 00000000 00:00 0
002b3000-002c9000 r-xp 00000000 08:03 180428 /lib/libpthread-2.11.2.so
002c9000-002ca000 r--p 00015000 08:03 180428 /lib/libpthread-2.11.2.so
002ca000-002cb000 rw-p 00016000 08:03 180428 /lib/libpthread-2.11.2.so
002cb000-002cd000 rw-p 00000000 00:00 0
002cd000-00312000 r-xp 00000000 08:03 180336 /lib/libfreebl3.so
00312000-00313000 rw-p 00044000 08:03 180336 /lib/libfreebl3.so
00313000-00317000 rw-p 00000000 00:00 0
00317000-00344000 r-xp 00000000 08:03 181968 /lib/libgssapi_krb5.so.2.2
00344000-00345000 rw-p 0002d000 08:03 181968 /lib/libgssapi_krb5.so.2.2
00345000-003f8000 r-xp 00000000 08:03 181974 /lib/libkrb5.so.3.3
003f8000-003fe000 rw-p 000b3000 08:03 181974 /lib/libkrb5.so.3.3
003fe000-00400000 r-xp 00000000 08:03 180410 /lib/libcom_err.so.2.1
00400000-00401000 rw-p 00002000 08:03 180410 /lib/libcom_err.so.2.1
00401000-00409000 r-xp 00000000 08:03 181976 /lib/libkrb5support.so.0.1
00409000-0040a000 rw-p 00007000 08:03 181976 /lib/libkrb5support.so.0.1
0040a000-0040c000 r-xp 00000000 08:03 180417 /lib/libkeyutils-1.2.so
0040c000-0040d000 rw-p 00001000 08:03 180417 /lib/libkeyutils-1.2.so
0040d000-00418000 r-xp 00000000 08:03 180407 /lib/libnss_files-2.11.2.so
00418000-00419000 r--p 0000a000 08:03 180407 /lib/libnss_files-2.11.2.so
00419000-0041a000 rw-p 0000b000 08:03 180407 /lib/libnss_files-2.11.2.so
0041f000-00422000 r-xp 00000000 08:03 180379 /lib/libdl-2.11.2.so
00422000-00423000 r--p 00002000 08:03 180379 /lib/libdl-2.11.2.so
00423000-00424000 rw-p 00003000 08:03 180379 /lib/libdl-2.11.2.so
00424000-0044e000 r-xp 00000000 08:03 181972 /lib/libk5crypto.so.3.1
0044e000-0044f000 rw-p 0002a000 08:03 181972 /lib/libk5crypto.so.3.1
0044f000-00463000 r-xp 00000000 08:03 12953644
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/auto/nginx/nginx.so
00463000-00464000 rw-p 00014000 08:03 12953644
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/auto/nginx/nginx.so
00464000-00481000 r-xp 00000000 08:03 181901
/lib/libgcc_s-4.4.3-20100127.so.1
00481000-00482000 rw-p 0001c000 08:03 181901
/lib/libgcc_s-4.4.3-20100127.so.1
00501000-00530000 r-xp 00000000 08:03 180459 /lib/libpcre.so.0.0.1
00530000-00531000 rw-p 0002e000 08:03 180459 /lib/libpcre.so.0.0.1
005ab000-005d3000 r-xp 00000000 08:03 180383 /lib/libm-2.11.2.so
005d3000-005d4000 r--p 00027000 08:03 180383 /lib/libm-2.11.2.so
005d4000-005d5000 rw-p 00028000 08:03 180383 /lib/libm-2.11.2.so
006ad000-006ff000 r-xp 00000000 08:03 12840730 /usr/lib/libssl.so.1.0.0
006ff000-00703000 rw-p 00051000 08:03 12840730 /usr/lib/libssl.so.1.0.0
00752000-00753000 r-xp 00000000 00:00 0 [vdso]
00769000-0077d000 r-xp 00000000 08:03 180432 /lib/libresolv-2.11.2.so
0077d000-0077e000 ---p 00014000 08:03 180432 /lib/libresolv-2.11.2.so
0077e000-0077f000 r--p 00014000 08:03 180432 /lib/libresolv-2.11.2.so
0077f000-00780000 rw-p 00015000 08:03 180432 /lib/libresolv-2.11.2.so
00780000-00782000 rw-p 00000000 00:00 0
008f2000-00910000 r-xp 00000000 08:03 180348 /lib/ld-2.11.2.so
00910000-00911000 r--p 0001d000 08:03 180348 /lib/ld-2.11.2.so
00911000-00912000 rw-p 0001e000 08:03 180348 /lib/ld-2.11.2.so
00912000-00b71000 r-xp 00000000 08:03 12910863
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so
00b71000-00b76000 rw-p 0025f000 08:03 12910863
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so
00c6c000-00c88000 r-xp 00000000 08:03 180420 /lib/libselinux.so.1
00c88000-00c89000 r--p 0001b000 08:03 180420 /lib/libselinux.so.1
00c89000-00c8a000 rw-p 0001c000 08:03 180420 /lib/libselinux.so.1
00cb4000-00cc6000 r-xp 00000000 08:03 180398 /lib/libz.so.1.2.3
00cc6000-00cc7000 rw-p 00011000 08:03 180398 /lib/libz.so.1.2.3
00cc7000-00e36000 r-xp 00000000 08:03 180367 /lib/libc-2.11.2.so
00e36000-00e37000 ---p 0016f000 08:03 180367 /lib/libc-2.11.2.so
00e37000-00e39000 r--p 0016f000 08:03 180367 /lib/libc-2.11.2.so
00e39000-00e3a000 rw-p 00171000 08:03 180367 /lib/libc-2.11.2.so
00e3a000-00e3d000 rw-p 00000000 00:00 0
00f33000-00f35000 r-xp 00000000 08:03 180387 /lib/libutil-2.11.2.so
00f35000-00f36000 r--p 00001000 08:03 180387 /lib/libutil-2.11.2.so
00f36000-00f37000 rw-p 00002000 08:03 180387 /lib/libutil-2.11.2.so
00fc1000-00fc8000 r-xp 00000000 08:03 180375 /lib/libcrypt-2.11.2.so
00fc8000-00fc9000 r--p 00007000 08:03 180375 /lib/libcrypt-2.11.2.so
00fc9000-00fca000 rw-p 00008000 08:03 180375 /lib/libcrypt-2.11.2.so
00fca000-00ff1000 rw-p 00000000 00:00 0
08048000-080d9000 r-xp 00000000 08:03 12839968 /usr/sbin/nginx
080d9000-080e2000 rw-p 00090000 08:03 12839968 /usr/sbin/nginx
080e2000-080ec000 rw-p 00000000 00:00 0
085ef000-086a9000 rw-p 00000000 00:00 0 [heap]
b78a7000-b78ad000 rw-p 00000000 00:00 0
b78b9000-b78ba000 rw-s 00000000 00:04 56173325 /dev/zero (deleted)
b78ba000-b78bb000 rw-p 00000000 00:00 0
bf93d000-bf952000 rw-p 00000000 00:00 0 [stack]
2010/06/17 20:30:51 [alert] 22980#0: worker process 23020 exited on signal 6

До этого стояла версия 0.7.65, с той же проблемой.
При включении дебага видно, что это происходит выполнения add cleanup
Подскажите, в какую сторону копать.
----------- следущая часть -----------
Вложение в формате HTML было извлечено…
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20100617/f38fafe5/attachment-0001.html>


Подробная информация о списке рассылки nginx-ru