Go Back   Champions of Regnum > English > Technical Support > Linux

Linux Technical issues under Linux platform

Reply
 
Thread Tools Display Modes
Old 11-03-2009, 03:57 PM   #1
_jdm_
Pledge
 
Join Date: Oct 2008
Posts: 1
_jdm_ is on a distinguished road
Default [SOLVED] Another Malloc thread

Hello all,

After taking a long break from playing, I wanted to reinstall and start up again. The install was fine, but I cannot run rolauncher due to Malloc errors. Here's the error:

Code:
$ ./rolauncher 
*** glibc detected *** ./rolauncher: malloc(): memory corruption: 0xb56004a0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb703f5e1]
/lib/libc.so.6[0xb70421ba]
/lib/libc.so.6(__libc_malloc+0x5f)[0xb7043e7f]
/usr/lib/libGL.so.1[0xb72ea173]
======= Memory map: ========
08048000-08440000 r-xp 00000000 00:00 0 
08440000-084c3000 rwxp 00000000 00:00 0 
08d57000-08dc1000 rwxp 00000000 00:00 0          [heap]
ae23c000-b5600000 rwxp 00000000 00:00 0 
b5600000-b5621000 rwxp 00000000 00:00 0 
b5621000-b5700000 ---p 00000000 00:00 0 
b5744000-b57ec000 rwxp 00000000 00:00 0 
b57ec000-b596d000 r-xp 00000000 fe:00 703836     /usr/lib/locale/locale-archive
b596d000-b5970000 rwxp 00000000 00:00 0 
b5970000-b5974000 r-xp 00000000 fe:00 49279      /usr/lib/libXdmcp.so.6.0.0
b5974000-b5975000 rwxp 00003000 fe:00 49279      /usr/lib/libXdmcp.so.6.0.0
b5975000-b5977000 r-xp 00000000 fe:00 49300      /usr/lib/libXau.so.6.0.0
b5977000-b5978000 rwxp 00001000 fe:00 49300      /usr/lib/libXau.so.6.0.0
b5978000-b5988000 r-xp 00000000 fe:00 2678       /lib/libresolv-2.10.1.so
b5988000-b5989000 r-xp 00010000 fe:00 2678       /lib/libresolv-2.10.1.so
b5989000-b598a000 rwxp 00011000 fe:00 2678       /lib/libresolv-2.10.1.so
b598a000-b598c000 rwxp 00000000 00:00 0 
b598c000-b5992000 r-xp 00000000 fe:00 49404      /usr/lib/libxcb-render.so.0.0.0
b5992000-b5993000 rwxp 00005000 fe:00 49404      /usr/lib/libxcb-render.so.0.0.0
b5993000-b5994000 rwxp 00000000 00:00 0 
b5994000-b5997000 r-xp 00000000 fe:00 32791      /usr/lib/libxcb-render-util.so.0.0.0
b5997000-b5998000 rwxp 00002000 fe:00 32791      /usr/lib/libxcb-render-util.so.0.0.0
b5998000-b59ef000 r-xp 00000000 fe:00 51493      /usr/lib/libpixman-1.so.0.16.2
b59ef000-b59f1000 rwxp 00057000 fe:00 51493      /usr/lib/libpixman-1.so.0.16.2
b59f1000-b59f4000 r-xp 00000000 fe:00 14370      /lib/libuuid.so.1.3.0
b59f4000-b59f5000 rwxp 00002000 fe:00 14370      /lib/libuuid.so.1.3.0
b59f5000-b5a0d000 r-xp 00000000 fe:00 49386      /usr/lib/libxcb.so.1.1.0
b5a0d000-b5a0e000 rwxp 00017000 fe:00 49386      /usr/lib/libxcb.so.1.1.0
b5a0e000-b5a0f000 rwxp 00000000 00:00 0 
b5a0f000-b5a23000 r-xp 00000000 fe:00 53216      /usr/lib/libICE.so.6.3.0
b5a23000-b5a25000 rwxp 00013000 fe:00 53216      /usr/lib/libICE.so.6.3.0
b5a25000-b5a26000 rwxp 00000000 00:00 0 
b5a26000-b5a27000 r-xp 00000000 fe:00 149039     /usr/lib/tls/libnvidia-tls.so.185.18.29
b5a27000-b5a28000 rwxp 00000000 fe:00 149039     /usr/lib/tls/libnvidia-tls.so.185.18.29
b5a28000-b6a42000 r-xp 00000000 fe:00 703815     /usr/lib/libGLcore.so.190.42
b6a42000-b6a88000 rwxp 01019000 fe:00 703815     /usr/lib/libGLcore.so.190.42
b6a88000-b6a96000 rwxp 00000000 00:00 0 
b6a96000-b6abb000 r-xp 00000000 fe:00 51485      /usr/lib/libpng12.so.0.39.0
b6abb000-b6abc000 rwxp 00024000 fe:00 51485      /usr/lib/libpng12.so.0.39.0
b6abc000-b6abd000 rwxp 00000000 00:00 0 
b6abd000-b6abf000 r-xp 00000000 fe:00 181977     /usr/lib/libgmodule-2.0.so.0.2200.2
b6abf000-b6ac0000 rwxp 00002000 fe:00 181977     /usr/lib/libgmodule-2.0.so.0.2200.2
b6ac0000-b6aea000 r-xp 00000000 fe:00 51101      /usr/lib/libfontconfig.so.1.3.0
b6aea000-b6aeb000 rwxp 0002a000 fe:00 51101      /usr/lib/libfontconfig.so.1.3.0
b6aeb000-b6b6c000 r-xp 00000000 fe:00 50871      /usr/lib/libfreetype.so.6.3.20
b6b6c000-b6b70000 rwxp 00081000 fe:00 50871      /usr/lib/libfreetype.so.6.3.20
b6b70000-b6b93000 r-xp 00000000 fe:00 87864      /usr/lib/libpangoft2-1.0.so.0.2600.0
b6b93000-b6b94000 rwxp 00023000 fe:00 87864      /usr/lib/libpangoft2-1.0.so.0.2600.0
b6b94000-b6c22000 r-xp 00000000 fe:00 181981     /usr/lib/libgio-2.0.so.0.2200.2
b6c22000-b6c24000 rwxp 0008e000 fe:00 181981     /usr/lib/libgio-2.0.so.0.2200.2
b6c24000-b6c95000 r-xp 00000000 fe:00 51627      /usr/lib/libcairo.so.2.10800.8
b6c95000-b6c97000 rwxp 00071000 fe:00 51627      /usr/lib/libcairo.so.2.10800.8
b6c97000-b6c98000 rwxp 00000000 00:00 0 
b6c98000-b6cb0000 r-xp 00000000 fe:00 182049     /usr/lib/libatk-1.0.so.0.2809.1
b6cb0000-b6cb2000 rwxp 00017000 fe:00 182049     /usr/lib/libatk-1.0.so.0.2809.1
b6cb2000-b6cb6000 r-xp 00000000 fe:00 50763      /usr/lib/libXfixes.so.3.1.0
b6cb6000-b6cb7000 rwxp 00003000 fe:00 50763      /usr/lib/libXfixes.so.3.1.0
b6cb7000-b6cb9000 r-xp 00000000 fe:00 52340      /usr/lib/libXdamage.so.1.1.0
b6cb9000-b6cba000 rwxp 00001000 fe:00 52340      /usr/lib/libXdamage.so.1.1.0
b6cba000-b6cbc000 r-xp 00000000 fe:00 52309      /usr/lib/libXcomposite.so.1.0.0
b6cbc000-b6cbd000 rwxp 00001000 fe:00 52309      /usr/lib/libXcomposite.so.1.0.0
b6cbd000-b6cc6000 r-xp 00000000 fe:00 87862      /usr/lib/libpangocairo-1.0.so.0.2600.0
b6cc6000-b6cc7000 rwxp 00008000 fe:00 87862      /usr/lib/libpangocairo-1.0.so.0.2600.0
b6cc7000-b6cc8000 rwxp 00000000 00:00 0 
b6cc8000-b6cd0000 r-xp 00000000 fe:00 50813      /usr/lib/libXcursor.so.1.0.2
b6cd0000-b6cd1000 rwxp 00007000 fe:00 50813      /usr/lib/libXcursor.so.1.0.2
b6cd1000-b6cd7000 r-xp 00000000 fe:00 50748      /usr/lib/libXrandr.so.2.2.0
b6cd7000-b6cd8000 rwxp 00006000 fe:00 50748      /usr/lib/libXrandr.so.2.2.0
b6cd8000-b6ce4000 r-xp 00000000 fe:00 51966      /usr/lib/libXi.so.6.1.0
b6ce4000-b6ce5000 rwxp 0000b000 fe:00 51966      /usr/lib/libXi.so.6.1.0
b6ce5000-b6ced000 r-xp 00000000 fe:00 50709      /usr/lib/libXrender.so.1.3.0
b6ced000-b6cee000 rwxp 00007000 fe:00 50709      /usr/lib/libXrender.so.1.3.0
b6cee000-b6d1f000 r-xp 00000000 fe:00 10285      /lib/libpcre.so.0.0.1
b6d1f000-b6d20000 rwxp 00030000 fe:00 10285      /lib/libpcre.so.0.0.1
b6d20000-b6d21000 rwxp 00000000 00:00 0 
b6d21000-b6d45000 r-xp 00000000 fe:00 34179      /usr/lib/libexpat.so.1.5.2
b6d45000-b6d47000 rwxp 00023000 fe:00 34179      /usr/lib/libexpat.so.1.5.2
b6d47000-b6d5a000 r-xp 00000000 fe:00 8471       /usr/lib/libz.so.1.2.3.3
b6d5a000-b6d5b000 rwxp 00012000 fe:00 8471       /usr/lib/libz.so.1.2.3.3
b6d5b000-b6d62000 r-xp 00000000 fe:00 53233      /usr/lib/libSM.so.6.0.1
b6d62000-b6d63000 rwxp 00006000 fe:00 53233      /usr/lib/libSM.so.6.0.1
b6d63000-b6d65000 r-xp 00000000 fe:00 50685      /usr/lib/libXinerama.so.1.0.0
b6d65000-b6d66000 rwxp 00001000 fe:00 50685      /usr/lib/libXinerama.so.1.0.0
b6d66000-b6d68000 r-xp 00000000 fe:00 2695       /lib/libdl-2.10.1.so
b6d68000-b6d69000 r-xp 00001000 fe:00 2695       /lib/libdl-2.10.1.so
b6d69000-b6d6a000 rwxp 00002000 fe:00 2695       /lib/libdl-2.10.1.so
b6d6a000-b6da3000 r-xp 00000000 fe:00 181971     /usr/lib/libgobject-2.0.so.0.2200.2
b6da3000-b6da4000 rwxp 00039000 fe:00 181971     /usr/lib/libgobject-2.0.so.0.2200.2
b6da4000-b6da5000 rwxp 00000000 00:00 0 
b6da5000-b6ebb000 r-xp 00000000 fe:00 49482      /usr/lib/libX11.so.6.3.0
b6ebb000-b6ebf000 rwxp 00115000 fe:00 49482      /usr/lib/libX11.so.6.3.0
b6ebf000-b6efd000 r-xp 00000000 fe:00 87856      /usr/lib/libpango-1.0.so.0.2600.0
b6efd000-b6eff000 rwxp 0003e000 fe:00 87856      /usr/lib/libpango-1.0.so.0.2600.0
b6eff000-b6f18000 r-xp 00000000 fe:00 52973      /usr/lib/libgdk_pixbuf-2.0.so.0.1800.3
Aborted
I searched the forums and googled, found the MALLOC_CHECK_=0 and MALLOC_CHECK_=1 solutions, here is the output when I set 0:

Code:
$ export MALLOC_CHECK_=0 && ./rolauncher 

(process:12131): GLib-ERROR (recursed) **: gmem.c:175: failed to allocate 16 bytes
aborting...
Aborted
... and set to 1:

Code:
$ export MALLOC_CHECK_=1 && ./rolauncher 
*** glibc detected *** ./rolauncher: realloc(): invalid pointer: 0x09e5c2c0 ***
*** glibc detected *** ./rolauncher: malloc(): memory corruption: 0x09e5c248 ***

(process:12132): GLib-ERROR (recursed) **: gmem.c:175: failed to allocate 16 bytes
aborting...
Aborted
.. and when I use the G_SLICE=always-malloc:

Code:
$ export G_SLICE=always-malloc && ./rolauncher 

(process:12152): GLib-ERROR (recursed) **: gmem.c:175: failed to allocate 4 bytes
aborting...
Aborted
I have direct rendering:
Code:
$ glxinfo | grep direct
direct rendering: Yes
I am running Arch linux, 32-bit with nvidia drivers, version 190.42 (arch repos = 190.42-1). My glibc version is 2.10.1-5.

One thing I found weird was that if I check rolauncher with ldd, I get crap:

Code:
$ ldd rolauncher 
        not a dynamic executable
I can post some strace output, but I might just be missing something simple. I like to think I'm well versed with Linux. So far, I've tried installing from Arch repos and from binary download. Both installs yielded the same results.

Can anyone offer some help and possible solutions?

Thanks in advance!

=-=-= EDIT =-=-=
So... I was poking around trying to figure out what could possibly cause this problem, then I noticed the following lines from the memory map:

Code:
b5984000-b5985000 r-xp 00000000 fe:00 149039     /usr/lib/tls/libnvidia-tls.so.185.18.29
b5985000-b5986000 rwxp 00000000 fe:00 149039     /usr/lib/tls/libnvidia-tls.so.185.18.29
Yep, that's an old nvidia lib. Somehow it didn't get removed? No idea, but that's a separate issue. The point is, I removed that directory, reinstalled the current nvidia driver to make sure it didn't get recreated (it didn't, the library now lives in /usr/lib instead of /usr/lib/tls), and voila! Problem solved!

Also, I cannot find the 'Edit Thread' option to mark the title as solved, so sorry in advance for not doing that.

Last edited by _jdm_; 11-04-2009 at 06:29 AM. Reason: SOLVED!
_jdm_ no ha iniciado sesión   Reply With Quote
Reply

Tags
error, linux, malloc, support, wtf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:36 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved