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

Linux Technical issues under Linux platform

Reply
 
Thread Tools Display Modes
Old 11-13-2007, 05:31 AM   #11
Inkpot
Pledge
 
Join Date: Aug 2007
Posts: 2
Inkpot is on a distinguished road
Default

Quote:
Originally Posted by arlick
First are u using kde or gnome?

I suppose gnome.

alt+f2 (or search the program named xterm) and type this:

cd route_to_ro_launcher_folder

route_to_ro_launcher_folder means: /home/your_user_name/Regnum/

if u named the folder Regnum and it is in the home folder.

Then type:

MALLOC_CHECK_=0 ./rolauncher

Ofcourse the program named rolauncher must be in the directory

Thanks so much! This did the trick!! Now if I could just get it to download the resources faster than 30kb/sec.....

Inkpot
Inkpot no ha iniciado sesión   Reply With Quote
Old 11-14-2007, 12:31 AM   #12
saxtro
Pledge
 
Join Date: May 2007
Posts: 13
saxtro is on a distinguished road
Default

*** glibc detected *** corrupted double-linked list

*** glibc detected *** free(): invalid pointer

this error messages are ignored with the export of malloc check = 0

i found the fix on a forum of neverwinter night

" The newer glibc ebuilds added sanity checks that cause the above 'error'... For example, any application that calls free() two times on the same pointer will automatically crash with these versions of glibc. True that a "double free" is bad practice, but up to now, no implementation of glibc would crash when this happens, the 2nd free would simply do nothing, so a lot of programs are 'crashing' with these new versions of glibc.
This check and its behavior can be modified through an environment variable "MALLOC_CHECK_"... edit the nwn script and add the following before calling nwmain:
export MALLOC_CHECK_=0"

Its value should be one of

* 0 to ignore corruptions
* 1 to print to stderr(3)
* 2 to abort immediately
saxtro no ha iniciado sesión   Reply With Quote
Old 11-24-2007, 02:05 PM   #13
EmyrB
Pledge
 
Join Date: Nov 2007
Posts: 2
EmyrB is on a distinguished road
Default

I followed you guide here and got the game working by issuing the command : -
MALLOC_CHECK_=0 ./rolauncher

How do I create an entry to it so I can lauch the game from my gnome menu. I am using 32bit Gutsy?

Cheers

EmyrB
EmyrB no ha iniciado sesión   Reply With Quote
Old 11-24-2007, 02:56 PM   #14
magnet
Count
 
magnet's Avatar
 
Join Date: Jul 2007
Location: France
Posts: 1,416
magnet is on a distinguished road
Default

Quote:
Originally Posted by EmyrB
I followed you guide here and got the game working by issuing the command : -
MALLOC_CHECK_=0 ./rolauncher

How do I create an entry to it so I can lauch the game from my gnome menu. I am using 32bit Gutsy?

Cheers

EmyrB
1) Create a script containing (where PATH_TO_REGNUM is the path to your game):

Code:
#!/bin/bash
export PATH_TO_REGNUM="/somewhere/regnum/is/"

cd $PATH_TO_REGNUM
export MALLOC_CHECK_=0
./rolauncher
And call it "play_regnum.sh" (for instance).

2) Put the script in a location you will remember (and that you won't delete, Regnum folder is an idea, or your local bin directory) and cast the execute spell:

chmod u+x play_regnum.sh

3) Follow this tutorial http://www.ubuntugeek.com/howto-add-...nome-menu.html

and use the script as your command. Find a pretty icon and you're all set.

As usual, understanding what you are doing helps. A lot

Good luck
__________________
magnet no ha iniciado sesión   Reply With Quote
Old 11-25-2007, 08:46 AM   #15
sathilda
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Myxir
What exactly is the effect of malloc_check?
I heard that it should prevent checking some libs......
MALLOC_CHECK_ is a debugging environment variable that allows programmers to define how memory allocation behaves, especially in case of error (gcc has a -lmcheck flag that does the same job).

By default, its value is 1, memory structure is dumped in stderr then abort.
  Reply With Quote
Old 11-25-2007, 02:46 PM   #16
EmyrB
Pledge
 
Join Date: Nov 2007
Posts: 2
EmyrB is on a distinguished road
Default

Hey Magnet

Many thanks for the helpful pointer
EmyrB no ha iniciado sesión   Reply With Quote
Old 12-14-2007, 06:32 PM   #17
NightTwix
Count
 
NightTwix's Avatar
 
Join Date: Dec 2006
Location: Germany
Posts: 1,655
NightTwix is on a distinguished road
Default

Hello Surak or which admin read this

please make this thread sticky until the glibc problem is fixed!

Code:
MALLOC_CHECK_=0 ./rolauncher
this helps in almost all cases, but this thread keeps getting buried

STICKY plzzzzzz
NightTwix no ha iniciado sesión   Reply With Quote
Reply

Thread Tools
Display Modes

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 02:32 AM.


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