It is currently Mon Dec 18, 2017 9:24 pm


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: (Linux 4.1.0) Segmentation fault
PostPosted: Sat Sep 04, 2010 9:26 am 

Joined: Sat Sep 04, 2010 9:07 am
Posts: 3
Unfortunately the topic name pretty much says it all. It's happened to me three times so far and I can't tell what is triggering it. I don't remember what I was doing the first time. The second time one mob had just ambushed me, I tried to cast a spell quickly and then the seg fault. The third time 4 rats were ambushing me, only one made it up, then a seg fault.

The term output of the second seg fault:
Code:
stranger@xxxx:~/Games/lab/laby_4.1.0$ ./laby
ALSA lib pcm.c:7245:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7245:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7245:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7245:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7245:(snd_pcm_recover) underrun occured
Segmentation fault


The third time:
Code:
stranger@xxxx:~/Games/lab/laby_4.1.0$ ./laby
draw_skills: skills(-1,1) out of range
draw_skills: skills(-1,1) out of range
draw_skills: skills(-1,1) out of range
Segmentation fault


I tried turning all the audio off after the second time, but it still seg faulted the third time with the audio off.

I think the second and third time both happened on the down stairs after having come back up and casting one/a few spells.

On a side note, if this does happen, the game will continue to seg fault if you try to load, or make a new character. This seems to be caused by:
Code:
stranger@xxxx:~/Games/lab/laby_4.1.0$ du -h ~/.lostlaby/templates.dat
0       /home/stranger/.lostlaby/templates.dat

Deleting the file fixes the problem, but wipes out custom classes.

System specs:
Slackware64 13.1
Linux xxxx 2.6.33.4 #3 SMP Sun Aug 22 05:08:00 EDT 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz GenuineIntel GNU/Linux
01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3650
4gb ram


Top
 OfflineProfile  
 Post subject: Re: (Linux 4.1.0) Segmentation fault
PostPosted: Sat Sep 04, 2010 7:05 pm 
User avatar

Joined: Tue Oct 13, 2009 12:06 am
Posts: 270
As far as I see it those are 4 different issues.
1. some sound problem
did see this one some time ago too (different hardware) but that did not
cause a crash then. Could not hear anything wrong either.

2. Draw_skills trying to read negative indices.
That is a bug of course, but still ought not cause a crash.
Especially under Linux ,as elice does check array boundaries.

3. A corrupt (zero length) templates file, which should not happen, unless your disk is full. I will have a look at how this might have happened.
If it is corrupt, game will crash when trying to load the templates, which happens at character creation and inside templates screen itself.
But file is not touched when loading a game.

4. The segmentation fault that happens if you climb back into cleared areas and new monsters spawn there.
This I encountered today too and I'm pretty sure Is is cause by a wrong pointer initialisation in the game loading procedure.
If empty levels are between ones with monsters on them,then pointer for empty level is not set anew at all. :oops:
That was causing the crash I encountered.
( This one is fixed now ).
So problem is caused while loading but crash only happens once game spawns monsters on those empty levels with corrupt pointers.


Top
 OfflineProfile  
 Post subject: Re: (Linux 4.1.0) Segmentation fault
PostPosted: Sun Sep 05, 2010 12:20 pm 

Joined: Sat Sep 04, 2010 9:07 am
Posts: 3
Grunz wrote:
As far as I see it those are 4 different issues.
1. some sound problem
2. Draw_skills trying to read negative indices.


I didn't notice anything behave strangely, so I had ignored these.
Grunz wrote:
3. A corrupt (zero length) templates file, which should not happen, unless your disk is full.


Unfortunately the disk still has ~4.3gb free. I'm pretty sure the seg fault corrupts the templates file *and* breaks something else. Incidentally I think the code that re-creates the templates file fixes the other broken part, because deleting templates.dat does cause the game to load correctly afterwards. It appears a corrupted templates.dat by itself is not enough to prevent loading (as you said), I deleted/touched it and loading still worked fine


Top
 OfflineProfile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
GuildWarsAlliance Style by Daniel St. Jules of Gamexe.net
Guild Wars™ is a trademark of NCsoft Corporation. All rights reserved.