Forums » Linux

Fedora Core 4 - Segmentation Fault

Apr 04, 2005 tosheeba link
Hello.

Perhaps some of you can help out.

I installed fedora core 4 test 1. this is a beta s system of the upcoming fedora core 4.

Vendetta now quits with a segmentation fault. I run the game, the updater shows up, it updates if needed and when I press play the game it quits in the shell with a seg fault error:

cd vendetta
./vendetta
Segmentation fault

The game ran well in fedora core 3 so I'm mainly interested in trying to understand what can be the cause of the problem to foreseen the compatibility between FC4 and vendetta.

Can it be some advanced libraries that the game is not compiled for?

platform environment:
Linux hostnameofmachine 2.6.11-1.1225_FC4 #1 Fri Apr 1 09:51:26 EST 2005 i686 i686 i386 GNU/Linux
gtk+-1.2.10-33
gtk2-2.6.4-2
glibc-2.3.4-18

If you need any more info just ask and I'll gladly provite it.

Moriel
IDF
Apr 04, 2005 thurisaz link
hmm... are you using an nvidia card? While nvidia makes very nice featureful drivers, I've had the occasional issue when using a certain driver against a certain kernel... it seems different people experience different results

Try upgrading/downgrading your nvidia modules (kernel module, glx module)...
Apr 04, 2005 roguelazer link
I don't think it has to do with "advanced libraries". All of mine are several versions ahead and no incompatibilities yet. How did you install the nvidia drivers? The usual binary, or some Fedora-provided RPM thing?
Apr 05, 2005 tosheeba link
The Nvidia provided drivers do not work with fedora core 4 and i can't explain cause there is not a error message so I try to use the X windows provided nvidia driver (nv module).
Apr 05, 2005 mr_spuck link
Uhm .. those dont have acelerated gl support. Vendetta will be extremely slow with them.

You can't install the nvidia provided drivers at all?
Apr 05, 2005 tosheeba link
Unfortunately no. I install the driver and reconfigure the xorg.conf just like I did in previous version of fedora.

But when I issue the startx command, it can't start the graphical display. It's odd. I can't figure out why cause X windows just exits with a connection reset error message and it does not tell me what is the cause of the error.

But even though the x windows nv module is extremely slow i can't seem to start the game with it.
Apr 05, 2005 tosheeba link
i upgraded the system and now the error message is different: [root@pjsm .vendetta]# ./vendetta
Fatal Error: Couldn't open window.

but now we have a errors.log:

[root@pjsm .vendetta]# cat errors.log
[Tue Apr 5 17:58:58 2005] Can't load driver /home/pedromadeira/.vendetta/drivers/gkgl.so: /home/pedromadeira/.vendetta/drivers/gkgl.so: cannot restore segment prot after reloc: Permission denied
[Tue Apr 5 17:58:58 2005] Can't load driver /home/pedromadeira/.vendetta/drivers/gkalsa.so: /home/pedromadeira/.vendetta/drivers/gkalsa.so: cannot restore segment prot after reloc: Permission denied
[Tue Apr 5 17:58:58 2005] Can't load driver /home/pedromadeira/.vendetta/drivers/osssound.so: /home/pedromadeira/.vendetta/drivers/osssound.so: cannot restore segment prot after reloc: Permission denied
/dev/js0: No such file or directory
/dev/input/js0: No such file or directory
/dev/js1: No such file or directory
/dev/input/js1: No such file or directory
/dev/js2: No such file or directory
/dev/input/js2: No such file or directory
/dev/js3: No such file or directory
/dev/input/js3: No such file or directory
Found 0 joystick(s)
[Tue Apr 5 17:58:58 2005] SetVideoMode failed, line 34
Fatal Error: Couldn't open window.

Now it seems something related to video.
Im gonna try install the new nvidia drivers again and post my results.
Apr 05, 2005 a1k0n link
"cannot restore segment prot after reloc"? I've never seen that before. But that's the problem - not something related to video, but something related to dynamic linking.

A quick google search reveals it has something or other to do with SELinux, but frankly I have no idea what that is.
Apr 06, 2005 tosheeba link
Hi a1k0n, nice to see a dev responding to one of my threads.

As we speak I managed to solve the problem.
I disabled SELINUX before the upgrade but it didn't solve the problem.

The original error: "segmentation fault"
was solved by upgrading the kernel, X windows and glibc.

The current versions are:
gtk+-1.2.10-33
gtk2-2.6.4-2
glibc-2.3.4-20
kernel-2.6.11-1.1226_FC4
xorg-x11-6.8.2-18

Now, after upgrading, the segmentation fault went away but a new error appeared: "Fatal Error: Couldn't open window."

At this point it seemed to me that this was related to video. It seems that vendetta doesn't like the nv module that comes with X11.

The problem was that I wasn't getting any success installing the Nvidia provided drivers but I found the solution, I had to put a flag while installing the drivers:

eg: sh NVIDIA-Linux-x86-1.0-7174-pkg1.run --opengl-headers

With the --opengl-headers, X11 now starts without a problem and vendetta starts with no problem as well.

I kinda suspect that the original problem was related to the kernel version or X11 version.

I hope that this information will be of some use to you devs and to players who wish to go to Fedora Core 4 or any other advanced linux.

Moriel
IDF
Apr 07, 2005 Beolach link
I also get "Fatal Error: Couldn't open window." when I run ~/.vendetta/vendetta directly, but when I run ~/.vendetta/update.rlb & then click the button to play, it works fine.

I'll have to see if using --opengl-headers changes that for me.
Apr 13, 2005 tosheeba link
Just to remember devs that the sound in vendetta is still cracky with ALSA.

I moved to vendetta to test that sound problem but it persists.

Perhaps some dev work on the sound system of the game would be good as soon as you have time.
Apr 13, 2005 tosheeba link
Correction to last post.

I moved to fedora core 4 to test the sound but is still cracky.