Mantis - Resin
Viewing Issue Advanced Details
3449 crash random 04-16-09 07:21 07-22-11 16:15
jkronz  
ferg  
normal  
closed 3.1.8  
no change required  
none    
none 3.1.11  
0003449: Random Crash with *** glibc detected *** double free or corruption (fasttop) in jvm.log
Summary pretty much says it all. Resin will run fine for up to two weeks (average) and then crash. Nothing in any log except a line like:

*** glibc detected *** double free or corruption (fasttop)

in the jvm log.


We are using Sun's jdk1.6.0_06. This app has been running fine on previous versions of Resin/jdk for years.

Also we are binding multiple IP addresses (Resin hosts multiple sites) to one ethernet port through linux IP_ALIASing. I only mention this as the only other even close google match is something to do with JBoss and networking with multiple IP's on one port.

Running Debian, all up to date.

Crashes always seem to be while the site is under normal load (ie during business hours). Never even close to running out of memory (Note: 0000700MB of 2G used) and the cpu stays below 10% even under our heaviest load.

See people suggest using "export MALLOC_CHECK_=0" inside the shell start script to suppress these errors. But obviously, a double free is *not* a good thing to let keep happening and just ignore the error...

Notes
(0005131)
alex   
03-15-11 10:02   
*** glibc detected *** /opt/sun-jdk-1.6.0.24/bin/java: double free or corruption (fasttop): 0x00007f553825a580 *** ======= Backtrace: ========= /lib/libc.so.6[0x7f554fe25808] /lib/libc.so.6(cfree+0x6c)[0x7f554fe2a24c]
/usr/lib/libcrypto.so.0.9.8(CRYPTO_free+0x1d)[0x7f554407d15d]
/usr/lib/libcrypto.so.0.9.8(OBJ_NAME_add+0x94)[0x7f554407fbf4]
/usr/lib/libssl.so.0.9.8(SSL_library_init+0x5f)[0x7f55443dbf1f]
/usr/lib/libcups.so.2(httpInitialize+0x5d)[0x7f5522b13bcd]
/usr/lib/libcups.so.2(httpConnectEncrypt+0x95)[0x7f5522b13cc5]
/opt/sun-jdk-1.6.0.24/jre/lib/amd64/headless/libmawt.so(Java_sun_print_CUPSPrinter_canConnect+0x46)[0x7f5522d37c36]
[0x7f554b097cc8]
(0005394)
ferg   
07-22-11 16:15   
The reopened note is a openssl bug. Both Resin and the awt library are initializing openssl (which is normal). More recent openssl versions allow this case.