Segfault after the run wesnoth

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Khiraly
Posts: 114
Joined: October 22nd, 2003, 7:13 pm
Location: Hungary

Segfault after the run wesnoth

Post by Khiraly »

Hi!

I had no problem with starting Wesnoth for a couple of days, but this morning it quit, due to segmentation fault.
Outputs of 'gdb ./wesnoth' and 'run -v wesnoth':
(gdb) run -v wesnoth
Starting program: /home/lama/wesnoth/wesnoth -v wesnoth
Initialized true type fonts

Program received signal SIG32, Real-time event 32.
0x400a5fc4 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb)
compiled with gcc-3.2 :
gcc version 3.2.3 (Debian)

Cheers,
Khiraly
miyo
Posts: 2201
Joined: August 19th, 2003, 4:28 pm
Location: Finland

Post by miyo »

What version of wesnoth are you running? 0.5.1? CVS? If CVS what is the time of checkout?

Have you updated anything in your Debian? Any library changes?

- Miyo
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

If you're using CVS, did you run 'make clean' after updating? Can you run 'make clean' and then 'make' and see if the problem still occurs?

If the problem still occurs, can you use GDB to find a backtrace? (I think 'bt' is the GDB command for this).

David
Khiraly
Posts: 114
Joined: October 22nd, 2003, 7:13 pm
Location: Hungary

Post by Khiraly »

Dave wrote:If you're using CVS, did you run 'make clean' after updating? Can you run 'make clean' and then 'make' and see if the problem still occurs?

If the problem still occurs, can you use GDB to find a backtrace? (I think 'bt' is the GDB command for this).

David
The CVS version is:
Fri Nov 28 00:49:17 2003
(as far as i know i haven't made any changes on my system)
I have made 'make clean', after 'make', and trying to run wesnoth,
the same problem.

Here is the 'bt' log:
(gdb) run -v ./wesnoth
Starting program: /home/lama/wesnoth/wesnoth -v ./wesnoth
Initialized true type fonts

Program received signal SIG32, Real-time event 32.
0x400a5fc4 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) bt
#0 0x400a5fc4 in pthread_getconcurrency () from /lib/libpthread.so.0
#1 0x400a5e08 in pthread_getconcurrency () from /lib/libpthread.so.0
#2 0x400a53f2 in pthread_create () from /lib/libpthread.so.0
#3 0x400a54eb in pthread_create () from /lib/libpthread.so.0
#4 0x4007b1f9 in SDL_SYS_CreateThread () from /usr/lib/libSDL-1.2.so.0
#5 0x4007b024 in SDL_CreateThread () from /usr/lib/libSDL-1.2.so.0
#6 0x40035655 in SDL_OpenAudio () from /usr/lib/libSDL-1.2.so.0
#7 0x40172c4e in Mix_OpenAudio () from /usr/lib/libSDL_mixer-1.2.so.0
Segmentation fault
lama@khiraly:~/wesnoth$

Cheers,
Khiraly
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

I'm not sure, but this doesn't look like BfW's fault.

Can you try another app that uses SDL_Mixer, perhaps the sample app that comes with SDL_Mixer, and see if that works?

Does anyone else have the same problem?

David
Khiraly
Posts: 114
Joined: October 22nd, 2003, 7:13 pm
Location: Hungary

Post by Khiraly »

Dave wrote:I'm not sure, but this doesn't look like BfW's fault.

Can you try another app that uses SDL_Mixer, perhaps the sample app that comes with SDL_Mixer, and see if that works?

Does anyone else have the same problem?

David
I don't know any other app ...
Can You give me an exemple?
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

Khiraly wrote: I don't know any other app ...
Can You give me an exemple?
If you download the source to SDL_mixer, it will come with a sample app, playwave I think. Try running that on your system and see if it works.
BrassJ
Posts: 60
Joined: October 9th, 2003, 6:19 am
Location: USA
Contact:

Post by BrassJ »

Dave wrote:Does anyone else have the same problem?

David
I don't have a problem running bfw, but I do have a problem with sound. I hear everything just fine, but about once every half hour, the sound turns into really loud static for about 3-6 seconds, and then normal sound comes back. Personally, I was thinking it was something else, but I figured I'll mention it.
With it being at the end of school, and finals are next week, I am just ignoring it for the moment.

P.S. I am running 0.50 and cvs 11-29-03. (I currently don't know which one has the sound problem.)
-BrassJ
Khiraly
Posts: 114
Joined: October 22nd, 2003, 7:13 pm
Location: Hungary

Post by Khiraly »

Dave wrote:
If you download the source to SDL_mixer, it will come with a sample app, playwave I think. Try running that on your system and see if it works.
lama@khiraly:~/libsdlMixer/SDL_mixer-1.2.5$ ./playwave /usr/share/games/wing/sound/die.wav
Opened audio at 22050 Hz 16 bit stereo
lama@khiraly:~/libsdlMixer/SDL_mixer-1.2.5$


It works fine.
Khiraly
Posts: 114
Joined: October 22nd, 2003, 7:13 pm
Location: Hungary

Post by Khiraly »

Where can I found the latest CVS version?
(I don't find in the forum)
Khiraly
Posts: 114
Joined: October 22nd, 2003, 7:13 pm
Location: Hungary

Post by Khiraly »

[quote="Dave"
[/quote]

I have found the source of the problem! The hungarian translation file(hungarian.cfg) have overwritten with some ,,trash''.
Fortunatly, I always have some copy (at least 3 exemples) of my work.

Cheers,
Khiraly

P.s.: It would be good, if the program(wesnoth) would check the config files at startup
Post Reply