PDA

View Full Version : Segmentation fault (core dumped) - issue solved (I think!).


Praadur
01-01-2008, 11:03 AM
I was one of those unfortunate souls who had the problem with rolauncher segfaulting and basically just crashing out before it had chance to do anything at all. I'm rarely ever beat by a challenge of this sort however, so I kept hammering away at it until I found a solution. I've searched and it doesn't seem as though this solution is mentioned elsewhere, so I thought I'd post about it as it might be worthy of note.

First of all, I read that setting MALLOC_CHECK_ to 0 might do something helpful, for me it didn't. However... setting MALLOC_CHECK_ to 1 does, in fact it allows the launcher to work flawlessly (which is very strange, but I'm not complaining). So for those who're having segfaults with the current rolauncher that's in the downloadable tar.gz file, try this in a terminal...


cd /home/your-regnum-path-and-directory
nano runlauncher.sh

[We're now in the nano text editor, we'll need to enter these lines here...]

#!/bin/sh
export MALLOC_CHECK_=1
./rolauncher
export MALLOC_CHECK_=0

[Press Ctrl+O, then Enter, then Ctrl+X and now we're back at the CLI...]

chmod +x runlauncher.sh
sh runlauncher.sh

Once the launcher has updated itself to the latest version (the latest isn't in that tar.gz), you won't need that file anymore because the latest works without the need of that flag being set to enabled.

If it's nessescary to keep the older rolauncher in that tar.gz, it might be worthwhile including a script like this, too (named something like crashfix.sh so folks will know to try it if they get an errorless and logless segfault, like I did).

xtemplarx
01-04-2008, 03:02 PM
I was one of those unfortunate souls who had the problem with rolauncher segfaulting and basically just crashing out before it had chance to do anything at all. I'm rarely ever beat by a challenge of this sort however, so I kept hammering away at it until I found a solution. I've searched and it doesn't seem as though this solution is mentioned elsewhere, so I thought I'd post about it as it might be worthy of note.

First of all, I read that setting MALLOC_CHECK_ to 0 might do something helpful, for me it didn't. However... setting MALLOC_CHECK_ to 1 does, in fact it allows the launcher to work flawlessly (which is very strange, but I'm not complaining). So for those who're having segfaults with the current rolauncher that's in the downloadable tar.gz file, try this in a terminal...


cd /home/your-regnum-path-and-directory
nano runlauncher.sh

[We're now in the nano text editor, we'll need to enter these lines here...]

#!/bin/sh
export MALLOC_CHECK_=1
./rolauncher
export MALLOC_CHECK_=0

[Press Ctrl+O, then Enter, then Ctrl+X and now we're back at the CLI...]

chmod +x runlauncher.sh
sh runlauncher.sh

Once the launcher has updated itself to the latest version (the latest isn't in that tar.gz), you won't need that file anymore because the latest works without the need of that flag being set to enabled.

If it's nessescary to keep the older rolauncher in that tar.gz, it might be worthwhile including a script like this, too (named something like crashfix.sh so folks will know to try it if they get an errorless and logless segfault, like I did).

Good call! Thanks for the info. This worked for me.

Vadi
02-13-2008, 06:23 PM
Thank you, that worked (the installer was refusing to start).

It did complain though:

vadi@ubuntu:~/Games/Regnum$ sh runlauncher.sh
malloc: using debugging hooks
*** glibc detected *** ./rolauncher: free(): invalid pointer: 0x0866efb0 ***

(rolauncher:7199): Gtk-WARNING **: Error loading theme icon 'gtk-cancel' for stock: Unable to load image-loading module: /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so: /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so: cannot open shared object file: No such file or directory
*** glibc detected *** ./rolauncher: free(): invalid pointer: 0x0868e3a0 ***

(rolauncher:7199): Gtk-WARNING **: Error loading theme icon 'gtk-cancel' for stock: Unable to load image-loading module: /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so: /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so: cannot open shared object file: No such file or directory
malloc: using debugging hooks
malloc: using debugging hooks
malloc: using debugging hooks
malloc: using debugging hooks
malloc: using debugging hooks
malloc: using debugging hooks
vadi@ubuntu:~/Games/Regnum$ malloc: using debugging hooks



But that's better than nothing. Thanks again :wiggle14:

inquieto
03-19-2008, 03:49 PM
Thank you very much!
Seems to work!
Even if..


chunfy@aspire:~/ro$ sh runlauncher.sh
malloc: using debugging hooks
*** glibc detected *** ./rolauncher: free(): invalid pointer: 0x08664220 ***

naadde
04-02-2008, 01:21 PM
Praduur, Thanks alot!
You are my HERO here!!!!

- Thank you by all means

Naadde :beerchug: :beerchug: :razz: