PDA

View Full Version : invalid pointer starting rolauncher - both 32 & 64 bit


Thelfin
02-13-2008, 11:39 AM
Hi, I've got very similar errors trying to run rolauncher in both 32-bit and 64-bit forms. I'm running Source Mage GNU/Linux, and I use a pure 64-bit environment for the 64-bit, and a pure 32-bit environment in a chroot for 32-bit. Here is the error output for each environment, with the memory maps removed due to length. It will be seen they are remarkably similar.

64-bit

ethan!audio@vardo regnum (0) $ uname -a
Linux vardo 2.6.23.9 #5 SMP Sat Feb 2 20:50:19 GMT 2008 x86_64 GNU/Linux
ethan!audio@vardo regnum (0) $ ./rolauncher
*** glibc detected *** ./rolauncher: free(): invalid pointer: 0x0000000000b7e430 ***
======= Backtrace: =========
/lib/libc.so.6[0x2ad5480c49ea]
/lib/libc.so.6(__libc_free+0x8c)[0x2ad5480c85ac]
/usr/lib/libglib-2.0.so.0(g_free+0x23)[0x2ad5482ec573]
./rolauncher[0x530ebf]
./rolauncher[0x531404]
./rolauncher[0x431b81]
./rolauncher[0x41e1f9]
./rolauncher[0x428e22]
./rolauncher[0x4bcb16]
./rolauncher[0x4bcc57]
./rolauncher[0x41b9da]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2ad54806eb74]
./rolauncher(__gxx_personality_v0+0x3e2)[0x41b79a]


32-bit

ethan!ethan@vardo:32 regnum (0) $ uname -a
Linux vardo 2.6.23.9 #5 SMP Sat Feb 2 20:50:19 GMT 2008 i686 GNU/Linux
ethan!ethan@vardo:32 regnum (0) $ ./rolauncher
/home/ethan/.themes/Clearlooks-DarkOrange/gtk-2.0/gtkrc:58: Clearlooks configuration option "sunkenmenu" is not supported and will be ignored.
/home/ethan/.themes/Clearlooks-DarkOrange/gtk-2.0/gtkrc:59: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored.
/home/ethan/.themes/Clearlooks-DarkOrange/gtk-2.0/gtkrc:60: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored.
/home/ethan/.themes/Clearlooks-DarkOrange/gtk-2.0/gtkrc:61: Clearlooks configuration option "progressbarstyle" is not supported and will be ignored.
*** glibc detected *** ./rolauncher: munmap_chunk(): invalid pointer: 0x08587030 ***
======= Backtrace: =========
/lib/libc.so.6(cfree+0x1bb)[0xb78c340b]
/usr/lib/libglib-2.0.so.0(g_free+0x34)[0xb77bf9e4]
./rolauncher[0x817613d]
./rolauncher[0x8070b53]
./rolauncher[0x8065a7a]
./rolauncher[0x8067ed1]
./rolauncher[0x810074e]
./rolauncher[0x805c55e]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb786a390]
./rolauncher(__gxx_personality_v0+0x3d5)[0x805c391]


4 lines in the errors from the 32-bit version are from a bad Gtk theme, so I suppose Gtk is being initialised. Gtk version is 2.12.2 in 64-bit and 2.12.3 in 32-bit.

I don't suppose OpenGL has anything to do with it at that stage, but I do have OpenGL games working very well in both 32- and 64-bit environments, open source in the 64-bit and closed source (Second Life) in the 32-bit.

_dracus_
02-13-2008, 04:01 PM
This is a well known bug of the Regnum client. Lots of pointers are free() more than once (which is a bad programming way of doing things). You should try a to use the environnement variable MALLOC_CHECK_ and turn it to 1 before starting RO.

export MALLOC_CHECK_=0
./rolauncher

Thelfin
02-13-2008, 10:47 PM
Ah, thank you, that worked in both environments.

easoukenka
03-12-2008, 11:58 PM
Had to run it a couple times but it worked!