AnsweredAssumed Answered

alfresco 4.2.c glibc detected gs double free or corruption

Question asked by sharifu on Jan 14, 2014
I have just noticed the following problem

<bash>
[root@hector alfresco]# *** glibc detected *** gs: double free or corruption (!prev): 0x0000000001300ea0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x76126)[0x7f588c3a8126]
/lib64/libc.so.6(+0x78c53)[0x7f588c3aac53]
gs[0x519afb]
gs[0x512865]
gs[0x512104]
gs[0x48b56a]
gs[0x48b6d7]
gs[0x4a414d]
gs[0x481374]
gs[0x477b0e]
gs[0x478977]
gs[0x478af3]
gs[0x478c9f]
gs[0x4798b5]
gs[0x47a86e]
gs(strcat+0x151)[0x4105b9]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f588c350cdd]
gs(fmod+0x52)[0x4104da]
======= Memory map: ========
00400000-006e3000 r-xp 00000000 08:04 130943091                          /opt/alfresco-4.2.c/common/bin/gs
007e3000-00c3c000 rw-p 002e3000 08:04 130943091                          /opt/alfresco-4.2.c/common/bin/gs
00c3c000-00c44000 rw-p 00000000 00:00 0
00f87000-0147c000 rw-p 00000000 00:00 0                                  [heap]
7f588bd1a000-7f588bd30000 r-xp 00000000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f588bd30000-7f588bf2f000 —p 00016000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f588bf2f000-7f588bf30000 rw-p 00015000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f588bf30000-7f588c11c000 rw-p 00000000 00:00 0
7f588c11c000-7f588c131000 r-xp 00000000 08:02 4980800                    /lib64/libz.so.1.2.3
7f588c131000-7f588c330000 —p 00015000 08:02 4980800                    /lib64/libz.so.1.2.3
7f588c330000-7f588c331000 r–p 00014000 08:02 4980800                    /lib64/libz.so.1.2.3
7f588c331000-7f588c332000 rw-p 00015000 08:02 4980800                    /lib64/libz.so.1.2.3
7f588c332000-7f588c4bc000 r-xp 00000000 08:02 4980749                    /lib64/libc-2.12.so
7f588c4bc000-7f588c6bb000 —p 0018a000 08:02 4980749                    /lib64/libc-2.12.so
7f588c6bb000-7f588c6bf000 r–p 00189000 08:02 4980749                    /lib64/libc-2.12.so
7f588c6bf000-7f588c6c0000 rw-p 0018d000 08:02 4980749                    /lib64/libc-2.12.so
7f588c6c0000-7f588c6c5000 rw-p 00000000 00:00 0
7f588c6c5000-7f588c748000 r-xp 00000000 08:02 4980757                    /lib64/libm-2.12.so
7f588c748000-7f588c947000 —p 00083000 08:02 4980757                    /lib64/libm-2.12.so
7f588c947000-7f588c948000 r–p 00082000 08:02 4980757                    /lib64/libm-2.12.so
7f588c948000-7f588c949000 rw-p 00083000 08:02 4980757                    /lib64/libm-2.12.so
7f588c949000-7f588c96e000 r-xp 00000000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f588c96e000-7f588cb6e000 —p 00025000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f588cb6e000-7f588cb6f000 rw-p 00025000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f588cb6f000-7f588cb8f000 r-xp 00000000 08:02 4981139                    /lib64/ld-2.12.so
7f588cd80000-7f588cd84000 rw-p 00000000 00:00 0
7f588cd8b000-7f588cd8e000 rw-p 00000000 00:00 0
7f588cd8e000-7f588cd8f000 r–p 0001f000 08:02 4981139                    /lib64/ld-2.12.so
7f588cd8f000-7f588cd90000 rw-p 00020000 08:02 4981139                    /lib64/ld-2.12.so
7f588cd90000-7f588cd91000 rw-p 00000000 00:00 0
7fffe4ead000-7fffe4ec2000 rw-p 00000000 00:00 0                          [stack]
7fffe4fff000-7fffe5000000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
*** glibc detected *** gs: double free or corruption (!prev): 0x00000000025a1ea0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x76126)[0x7f0a10b0e126]
/lib64/libc.so.6(+0x78c53)[0x7f0a10b10c53]
gs[0x519afb]
gs[0x512865]
gs[0x512104]
gs[0x48b56a]
gs[0x48b6d7]
gs[0x4a414d]
gs[0x481374]
gs[0x477b0e]
gs[0x478977]
gs[0x478af3]
gs[0x478c9f]
gs[0x4798b5]
gs[0x47a86e]
gs(strcat+0x151)[0x4105b9]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f0a10ab6cdd]
gs(fmod+0x52)[0x4104da]
======= Memory map: ========
00400000-006e3000 r-xp 00000000 08:04 130943091                          /opt/alfresco-4.2.c/common/bin/gs
007e3000-00c3c000 rw-p 002e3000 08:04 130943091                          /opt/alfresco-4.2.c/common/bin/gs
00c3c000-00c44000 rw-p 00000000 00:00 0
02228000-0271d000 rw-p 00000000 00:00 0                                  [heap]
7f0a10480000-7f0a10496000 r-xp 00000000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f0a10496000-7f0a10695000 —p 00016000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f0a10695000-7f0a10696000 rw-p 00015000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f0a10696000-7f0a10882000 rw-p 00000000 00:00 0
7f0a10882000-7f0a10897000 r-xp 00000000 08:02 4980800                    /lib64/libz.so.1.2.3
7f0a10897000-7f0a10a96000 —p 00015000 08:02 4980800                    /lib64/libz.so.1.2.3
7f0a10a96000-7f0a10a97000 r–p 00014000 08:02 4980800                    /lib64/libz.so.1.2.3
7f0a10a97000-7f0a10a98000 rw-p 00015000 08:02 4980800                    /lib64/libz.so.1.2.3
7f0a10a98000-7f0a10c22000 r-xp 00000000 08:02 4980749                    /lib64/libc-2.12.so
7f0a10c22000-7f0a10e21000 —p 0018a000 08:02 4980749                    /lib64/libc-2.12.so
7f0a10e21000-7f0a10e25000 r–p 00189000 08:02 4980749                    /lib64/libc-2.12.so
7f0a10e25000-7f0a10e26000 rw-p 0018d000 08:02 4980749                    /lib64/libc-2.12.so
7f0a10e26000-7f0a10e2b000 rw-p 00000000 00:00 0
7f0a10e2b000-7f0a10eae000 r-xp 00000000 08:02 4980757                    /lib64/libm-2.12.so
7f0a10eae000-7f0a110ad000 —p 00083000 08:02 4980757                    /lib64/libm-2.12.so
7f0a110ad000-7f0a110ae000 r–p 00082000 08:02 4980757                    /lib64/libm-2.12.so
7f0a110ae000-7f0a110af000 rw-p 00083000 08:02 4980757                    /lib64/libm-2.12.so
7f0a110af000-7f0a110d4000 r-xp 00000000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f0a110d4000-7f0a112d4000 —p 00025000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f0a112d4000-7f0a112d5000 rw-p 00025000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f0a112d5000-7f0a112f5000 r-xp 00000000 08:02 4981139                    /lib64/ld-2.12.so
7f0a114e6000-7f0a114ea000 rw-p 00000000 00:00 0
7f0a114f1000-7f0a114f4000 rw-p 00000000 00:00 0
7f0a114f4000-7f0a114f5000 r–p 0001f000 08:02 4981139                    /lib64/ld-2.12.so
7f0a114f5000-7f0a114f6000 rw-p 00020000 08:02 4981139                    /lib64/ld-2.12.so
7f0a114f6000-7f0a114f7000 rw-p 00000000 00:00 0
7ffff7893000-7ffff78a8000 rw-p 00000000 00:00 0                          [stack]
7ffff79ff000-7ffff7a00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
*** glibc detected *** gs: free(): invalid next size (normal): 0x00000000027b5920 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x76126)[0x7f71b2997126]
/lib64/libc.so.6(+0x78c53)[0x7f71b2999c53]
gs[0x5154a0]
gs[0x519766]
gs[0x512865]
gs[0x512104]
gs[0x48b56a]
gs[0x48b6d7]
gs[0x4a414d]
gs[0x481374]
gs[0x477b0e]
gs[0x478977]
gs[0x478af3]
gs[0x478c9f]
gs[0x4798b5]
gs[0x47a86e]
gs(strcat+0x151)[0x4105b9]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f71b293fcdd]
gs(fmod+0x52)[0x4104da]
======= Memory map: ========
00400000-006e3000 r-xp 00000000 08:04 130943091                          /opt/alfresco-4.2.c/common/bin/gs
007e3000-00c3c000 rw-p 002e3000 08:04 130943091                          /opt/alfresco-4.2.c/common/bin/gs
00c3c000-00c44000 rw-p 00000000 00:00 0
02752000-02d35000 rw-p 00000000 00:00 0                                  [heap]
7f71b2309000-7f71b231f000 r-xp 00000000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f71b231f000-7f71b251e000 —p 00016000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f71b251e000-7f71b251f000 rw-p 00015000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7f71b251f000-7f71b270b000 rw-p 00000000 00:00 0
7f71b270b000-7f71b2720000 r-xp 00000000 08:02 4980800                    /lib64/libz.so.1.2.3
7f71b2720000-7f71b291f000 —p 00015000 08:02 4980800                    /lib64/libz.so.1.2.3
7f71b291f000-7f71b2920000 r–p 00014000 08:02 4980800                    /lib64/libz.so.1.2.3
7f71b2920000-7f71b2921000 rw-p 00015000 08:02 4980800                    /lib64/libz.so.1.2.3
7f71b2921000-7f71b2aab000 r-xp 00000000 08:02 4980749                    /lib64/libc-2.12.so
7f71b2aab000-7f71b2caa000 —p 0018a000 08:02 4980749                    /lib64/libc-2.12.so
7f71b2caa000-7f71b2cae000 r–p 00189000 08:02 4980749                    /lib64/libc-2.12.so
7f71b2cae000-7f71b2caf000 rw-p 0018d000 08:02 4980749                    /lib64/libc-2.12.so
7f71b2caf000-7f71b2cb4000 rw-p 00000000 00:00 0
7f71b2cb4000-7f71b2d37000 r-xp 00000000 08:02 4980757                    /lib64/libm-2.12.so
7f71b2d37000-7f71b2f36000 —p 00083000 08:02 4980757                    /lib64/libm-2.12.so
7f71b2f36000-7f71b2f37000 r–p 00082000 08:02 4980757                    /lib64/libm-2.12.so
7f71b2f37000-7f71b2f38000 rw-p 00083000 08:02 4980757                    /lib64/libm-2.12.so
7f71b2f38000-7f71b2f5d000 r-xp 00000000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f71b2f5d000-7f71b315d000 —p 00025000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f71b315d000-7f71b315e000 rw-p 00025000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7f71b315e000-7f71b317e000 r-xp 00000000 08:02 4981139                    /lib64/ld-2.12.so
7f71b336f000-7f71b3373000 rw-p 00000000 00:00 0
7f71b337a000-7f71b337d000 rw-p 00000000 00:00 0
7f71b337d000-7f71b337e000 r–p 0001f000 08:02 4981139                    /lib64/ld-2.12.so
7f71b337e000-7f71b337f000 rw-p 00020000 08:02 4981139                    /lib64/ld-2.12.so
7f71b337f000-7f71b3380000 rw-p 00000000 00:00 0
7fffd5644000-7fffd5659000 rw-p 00000000 00:00 0                          [stack]
7fffd56a5000-7fffd56a6000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
*** glibc detected *** gs: free(): invalid next size (normal): 0x0000000002194920 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x76126)[0x7fa22e73c126]
/lib64/libc.so.6(+0x78c53)[0x7fa22e73ec53]
gs[0x5154a0]
gs[0x519766]
gs[0x512865]
gs[0x512104]
gs[0x48b56a]
gs[0x48b6d7]
gs[0x4a414d]
gs[0x481374]
gs[0x477b0e]
gs[0x478977]
gs[0x478af3]
gs[0x478c9f]
gs[0x4798b5]
gs[0x47a86e]
gs(strcat+0x151)[0x4105b9]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7fa22e6e4cdd]
gs(fmod+0x52)[0x4104da]
======= Memory map: ========
00400000-006e3000 r-xp 00000000 08:04 130943091                          /opt/alfresco-4.2.c/common/bin/gs
007e3000-00c3c000 rw-p 002e3000 08:04 130943091                          /opt/alfresco-4.2.c/common/bin/gs
00c3c000-00c44000 rw-p 00000000 00:00 0
02131000-02714000 rw-p 00000000 00:00 0                                  [heap]
7fa22e0ae000-7fa22e0c4000 r-xp 00000000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7fa22e0c4000-7fa22e2c3000 —p 00016000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7fa22e2c3000-7fa22e2c4000 rw-p 00015000 08:02 4980738                    /lib64/libgcc_s-4.4.7-20120601.so.1
7fa22e2c4000-7fa22e4b0000 rw-p 00000000 00:00 0
7fa22e4b0000-7fa22e4c5000 r-xp 00000000 08:02 4980800                    /lib64/libz.so.1.2.3
7fa22e4c5000-7fa22e6c4000 —p 00015000 08:02 4980800                    /lib64/libz.so.1.2.3
7fa22e6c4000-7fa22e6c5000 r–p 00014000 08:02 4980800                    /lib64/libz.so.1.2.3
7fa22e6c5000-7fa22e6c6000 rw-p 00015000 08:02 4980800                    /lib64/libz.so.1.2.3
7fa22e6c6000-7fa22e850000 r-xp 00000000 08:02 4980749                    /lib64/libc-2.12.so
7fa22e850000-7fa22ea4f000 —p 0018a000 08:02 4980749                    /lib64/libc-2.12.so
7fa22ea4f000-7fa22ea53000 r–p 00189000 08:02 4980749                    /lib64/libc-2.12.so
7fa22ea53000-7fa22ea54000 rw-p 0018d000 08:02 4980749                    /lib64/libc-2.12.so
7fa22ea54000-7fa22ea59000 rw-p 00000000 00:00 0
7fa22ea59000-7fa22eadc000 r-xp 00000000 08:02 4980757                    /lib64/libm-2.12.so
7fa22eadc000-7fa22ecdb000 —p 00083000 08:02 4980757                    /lib64/libm-2.12.so
7fa22ecdb000-7fa22ecdc000 r–p 00082000 08:02 4980757                    /lib64/libm-2.12.so
7fa22ecdc000-7fa22ecdd000 rw-p 00083000 08:02 4980757                    /lib64/libm-2.12.so
7fa22ecdd000-7fa22ed02000 r-xp 00000000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7fa22ed02000-7fa22ef02000 —p 00025000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7fa22ef02000-7fa22ef03000 rw-p 00025000 08:02 1183257                    /usr/lib64/libpng12.so.0.49.0
7fa22ef03000-7fa22ef23000 r-xp 00000000 08:02 4981139                    /lib64/ld-2.12.so
7fa22f114000-7fa22f118000 rw-p 00000000 00:00 0
7fa22f11f000-7fa22f122000 rw-p 00000000 00:00 0
7fa22f122000-7fa22f123000 r–p 0001f000 08:02 4981139                    /lib64/ld-2.12.so
7fa22f123000-7fa22f124000 rw-p 00020000 08:02 4981139                    /lib64/ld-2.12.so
7fa22f124000-7fa22f125000 rw-p 00000000 00:00 0
7fff56f07000-7fff56f1c000 rw-p 00000000 00:00 0                          [stack]
7fff56fe5000-7fff56fe6000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

</bash>

my java settings are


export JAVA_OPTS="-server -Xms8G -Xmx12G -XX:MaxPermSize=2048M -Xss4096k -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -XX:NewSize=4G -Dalfresco.home=/opt/alfresco-4.2.c -Dcom.sun.management.jmxremote=true -Djava.rmi.server.hostname=172.16.0.21 -Dsun.security.ssl.allowUnsafeRenegotiation=true"


I have 48GB RAM in total on server, please advise

Outcomes