malloc(): memory corruption at DB2 installation on CentOS or Suse Linux

I spent quite a few hours to figure out what caused this error message. This appeared when I started db2setup on either OpenSUSE or CentOS. The error refers to a memory leak when in reality it is related to the location of the installer.

  • if the installer is located on a mounted filesystem this problem occurs.
  • If I copy the installation bundle locally to the server and kick off the installation from there it works without an error.

So before you go any further try copying the installation images locally to the server and see if it solves the issue.

The error message I got is shown below:

# ./db2setup
DBI1190I  db2setup is preparing the DB2 Setup wizard which will guide
you through the program setup process. Please wait.

*** Error in `/tmp/db2.tmp.12752/db2/linuxamd64/install/../java/jre/bin/java’: malloc(): memory corruption: 0x00007fbbe0b142b0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libstdc++.so.6(_Znwm+0x1d)[0x7fbbcc7620ad]
./libdb2ure.so(_ZN7UREInfo12setMsgTokensEPK14MsgTokenHolder+0x33)[0x7fbbcc146443]
./libdb2ure.so(_ZN7UREInfo9setVitalsEiPKciliP14MsgTokenHolderji+0x85)[0x7fbbcc146375]
./libdb2ure.so(_ZN7UREInfoC1EiPKciliP14MsgTokenHolderji+0x6b)[0x7fbbcc14665b]
./libdb2ure.so(_Z11ureSendInfoiPKciiiP14MsgTokenHolderij+0x43)[0x7fbbcc10d1e3]
./libdb2ure.so(_ZN11GPFSFileset9initLevelEbPcb+0xa4e)[0x7fbbcc28305e]
./libdb2ure.so(_ZN11GPFSFileset8initSpecEb+0x204)[0x7fbbcc283ea4]
./libdb2ure.so(_ZN11GPFSFileset12setInstalledEv+0x35)[0x7fbbcc27d5e5]
./libdb2ure.so(_ZN11FilesetList18setExternInstalledEv+0x82)[0x7fbbcc274e52]
./libdb2ure.so(_ZN14FilesetUtility10scanSystemEv+0x2fb)[0x7fbbcc26104b]
./libdb2ure.so(_ZN11FilesetList4initEv+0x338)[0x7fbbcc27ac98]
./libdb2ure.so(_ZN11FilesetList11getInstanceEv+0x139)[0x7fbbcc2780e9]
./libdb2ure.so(_Z14PIResetAllOnCDv+0xb)[0x7fbbcc26d04b]
./libdb2ure.so(_ZN14FilesetUtility9scanMediaEPKc+0x544)[0x7fbbcc263474]
./libdb2ure.so(_ZN14FilesetUtility13getImgVersionEv+0x33)[0x7fbbcc265dc3]
./libdb2ure.so(Java_com_ibm_db2_install_core_DB2Copy_getInstalledDB2CopyObjsNative+0x41)[0x7fbbcc1cf651]
/tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/default/libj9vm26.so(+0x33070)[0x7fbbe480b070]
======= Memory map: ========
00010000-00011000 rw-p 00000000 00:00 0
00400000-00401000 r-xp 00000000 fd:00 67754603                           /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/bin/java
00500000-00501000 rw-p 00000000 fd:00 67754603                           /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/bin/java
021c4000-021e5000 rw-p 00000000 00:00 0                                  [heap]
7fbbac000000-7fbbac0fc000 rw-p 00000000 00:00 0
7fbbac0fc000-7fbbb0000000 —p 00000000 00:00 0
7fbbb0000000-7fbbb008f000 rw-p 00000000 00:00 0
7fbbb008f000-7fbbb4000000 —p 00000000 00:00 0
7fbbb4000000-7fbbb4021000 rw-p 00000000 00:00 0
7fbbb4021000-7fbbb8000000 —p 00000000 00:00 0
7fbbb8000000-7fbbb8021000 rw-p 00000000 00:00 0
7fbbb8021000-7fbbbc000000 —p 00000000 00:00 0
7fbbbd51b000-7fbbbd523000 r-xp 00000000 fd:00 135419944                  /usr/lib64/libnss_sss.so.2
7fbbbd523000-7fbbbd722000 —p 00008000 fd:00 135419944                  /usr/lib64/libnss_sss.so.2
7fbbbd722000-7fbbbd723000 r–p 00007000 fd:00 135419944                  /usr/lib64/libnss_sss.so.2
7fbbbd723000-7fbbbd724000 rw-p 00008000 fd:00 135419944                  /usr/lib64/libnss_sss.so.2
7fbbbd724000-7fbbbd725000 —p 00000000 00:00 0
7fbbbd725000-7fbbbd765000 rw-p 00000000 00:00 0                          [stack:18095]
7fbbbd765000-7fbbbd7bb000 r-xp 00000000 fd:00 135555513                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libsplashscreen.so
7fbbbd7bb000-7fbbbd8bb000 —p 00056000 fd:00 135555513                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libsplashscreen.so
7fbbbd8bb000-7fbbbd8bc000 rw-p 00056000 fd:00 135555513                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libsplashscreen.so
7fbbbd8bc000-7fbbbd8bf000 rw-p 00000000 00:00 0
7fbbbd8bf000-7fbbbd8f2000 r-xp 00000000 fd:00 135555509                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libjpeg.so
7fbbbd8f2000-7fbbbd9f2000 —p 00033000 fd:00 135555509                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libjpeg.so
7fbbbd9f2000-7fbbbd9f3000 rw-p 00033000 fd:00 135555509                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libjpeg.so
7fbbbd9f3000-7fbbbda09000 r-xp 00000000 fd:00 135555530                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnet.so
7fbbbda09000-7fbbbdb09000 —p 00016000 fd:00 135555530                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnet.so
7fbbbdb09000-7fbbbdb0a000 rw-p 00016000 fd:00 135555530                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnet.so
7fbbbdb0a000-7fbbbdb1a000 r-xp 00000000 fd:00 135555500                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnio.so
7fbbbdb1a000-7fbbbdc19000 —p 00010000 fd:00 135555500                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnio.so
7fbbbdc19000-7fbbbdc1a000 rw-p 0000f000 fd:00 135555500                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnio.so
7fbbbdc1a000-7fbbbdc1b000 —p 00000000 00:00 0
7fbbbdc1b000-7fbbbdc5b000 rw-p 00000000 00:00 0                          [stack:18094]
7fbbbdc5b000-7fbbbdc5c000 —p 00000000 00:00 0
7fbbbdc5c000-7fbbbdc9c000 rw-p 00000000 00:00 0                          [stack:18081]
7fbbbdc9c000-7fbbbdc9d000 —p 00000000 00:00 0
7fbbbdc9d000-7fbbbdcdd000 rw-p 00000000 00:00 0                          [stack:18080]
7fbbbdcdd000-7fbbbdcde000 —p 00000000 00:00 0
7fbbbdcde000-7fbbbdd1e000 rw-p 00000000 00:00 0                          [stack:18079]
7fbbbdd1e000-7fbbbdd23000 r-xp 00000000 fd:00 136347703                  /usr/lib64/libXfixes.so.3.1.0
7fbbbdd23000-7fbbbdf22000 —p 00005000 fd:00 136347703                  /usr/lib64/libXfixes.so.3.1.0
7fbbbdf22000-7fbbbdf23000 r–p 00004000 fd:00 136347703                  /usr/lib64/libXfixes.so.3.1.0
7fbbbdf23000-7fbbbdf24000 rw-p 00005000 fd:00 136347703                  /usr/lib64/libXfixes.so.3.1.0
7fbbbdf24000-7fbbbdf2e000 r-xp 00000000 fd:00 136347751                  /usr/lib64/libXcursor.so.1.0.2
7fbbbdf2e000-7fbbbe12d000 —p 0000a000 fd:00 136347751                  /usr/lib64/libXcursor.so.1.0.2
7fbbbe12d000-7fbbbe12e000 r–p 00009000 fd:00 136347751                  /usr/lib64/libXcursor.so.1.0.2
7fbbbe12e000-7fbbbe12f000 rw-p 0000a000 fd:00 136347751                  /usr/lib64/libXcursor.so.1.0.2
7fbbbe12f000-7fbbbe131000 r-xp 00000000 fd:00 134400335                  /usr/lib64/libfreebl3.so
7fbbbe131000-7fbbbe330000 —p 00002000 fd:00 134400335                  /usr/lib64/libfreebl3.so*** Error in `/tmp/db2.tmp.12752/db2/linuxamd64/install/../java/jre/bin/java’: malloc(): memory corruption: 0x00007fbbe0b142b0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
/lib64/libc.so.6(__vsyslog_chk+0x7a)[0x7fbbe58a717a]
/lib64/libc.so.6(+0x75d66)[0x7fbbe582cd66]
/lib64/libc.so.6(+0x7ebbc)[0x7fbbe5835bbc]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fbbe583718c]
/lib64/libc.so.6(open_memstream+0x1a)[0x7fbbe582b99a]
======= Memory map: ========
00010000-00011000 rw-p 00000000 00:00 0
00400000-00401000 r-xp 00000000 fd:00 67754603                           /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/bin/java
00500000-00501000 rw-p 00000000 fd:00 67754603                           /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/bin/java
021c4000-021e5000 rw-p 00000000 00:00 0                                  [heap]
7fbbac000000-7fbbac0fc000 rw-p 00000000 00:00 0
7fbbac0fc000-7fbbb0000000 —p 00000000 00:00 0
7fbbb0000000-7fbbb008f000 rw-p 00000000 00:00 0
7fbbb008f000-7fbbb4000000 —p 00000000 00:00 0
7fbbb4000000-7fbbb4021000 rw-p 00000000 00:00 0
7fbbb4021000-7fbbb8000000 —p 00000000 00:00 0
7fbbb8000000-7fbbb8021000 rw-p 00000000 00:00 0
7fbbb8021000-7fbbbc000000 —p 00000000 00:00 0
7fbbbd51b000-7fbbbd523000 r-xp 00000000 fd:00 135419944                  /usr/lib64/libnss_sss.so.2
7fbbbd523000-7fbbbd722000 —p 00008000 fd:00 135419944                  /usr/lib64/libnss_sss.so.2
7fbbbd722000-7fbbbd723000 r–p 00007000 fd:00 135419944                  /usr/lib64/libnss_sss.so.2
7fbbbd723000-7fbbbd724000 rw-p 00008000 fd:00 135419944                  /usr/lib64/libnss_sss.so.2
7fbbbd724000-7fbbbd725000 —p 00000000 00:00 0
7fbbbd725000-7fbbbd765000 rw-p 00000000 00:00 0                          [stack:18095]
7fbbbd765000-7fbbbd7bb000 r-xp 00000000 fd:00 135555513                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libsplashscreen.so
7fbbbd7bb000-7fbbbd8bb000 —p 00056000 fd:00 135555513                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libsplashscreen.so
7fbbbd8bb000-7fbbbd8bc000 rw-p 00056000 fd:00 135555513                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libsplashscreen.so
7fbbbd8bc000-7fbbbd8bf000 rw-p 00000000 00:00 0
7fbbbd8bf000-7fbbbd8f2000 r-xp 00000000 fd:00 135555509                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libjpeg.so
7fbbbd8f2000-7fbbbd9f2000 —p 00033000 fd:00 135555509                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libjpeg.so
7fbbbd9f2000-7fbbbd9f3000 rw-p 00033000 fd:00 135555509                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libjpeg.so
7fbbbd9f3000-7fbbbda09000 r-xp 00000000 fd:00 135555530                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnet.so
7fbbbda09000-7fbbbdb09000 —p 00016000 fd:00 135555530                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnet.so
7fbbbdb09000-7fbbbdb0a000 rw-p 00016000 fd:00 135555530                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnet.so
7fbbbdb0a000-7fbbbdb1a000 r-xp 00000000 fd:00 135555500                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnio.so
7fbbbdb1a000-7fbbbdc19000 —p 00010000 fd:00 135555500                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnio.so
7fbbbdc19000-7fbbbdc1a000 rw-p 0000f000 fd:00 135555500                  /tmp/db2.tmp.12752/db2/linuxamd64/java/jre/lib/amd64/libnio.so
7fbbbdc1a000-7fbbbdc1b000 —p 00000000 00:00 0
7fbbbdc1b000-7fbbbdc5b000 rw-p 00000000 00:00 0                          [stack:18094]
/tmp/db2.tmp.12752/db2/linuxamd64/install//db2setup_exec: line 592: 18068 Aborted                 (core dumped) ${DB2INSTALLER?} ${DB2OPTS?} 2> ${ERRFILE?}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.