Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old April 20, 2017, 01:44   #1
bron
Swordsman
 
Join Date: May 2008
Location: Saratoga, California (in the midst of Silicon Valley)
Posts: 420
bron is on a distinguished road
4.0.5 crash

With any luck I've attached a save file that makes my copy of the game reliably crash. I'm running 4.0.5. I built it myself from source on my Linux box, but didn't make any source-code changes. My executable is configured with:
./configure --with-no-install --disable-x11 --prefix=`pwd`
i.e. "curses" only; no X stuff.

I've played with this version for a long time without problems. Today, my character went down a flight of stairs, and the program crashed. The panic save worked, producing the attached save file. I can start up the game using this file, but if I immediately exit (cntrl-X) without taking any action, the game crashes again.

It appears to be catching a signal right at the very last moment; deallocating memory prior to exiting. I didn't want to dig into the problem any deeper than that until/unless someone else can confirm (or deny) that this problem is real, rather than e.g. some quirk of my particular system and my particular build.

Let me know if I can provide any additional information.
Attached Files
File Type: zip Bcnelson.crash.zip (12.1 KB, 15 views)
bron is online now   Reply With Quote
Old April 20, 2017, 12:06   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,477
Donated: $60
Nick is on a distinguished road
OK, it looks like that savefile is somehow inducing memory corruption. I found:
  • If I open it in gdb, I get exactly what you describe; memory error apparently part way through freeing the cave->squares.info arrays
  • If I open with valgrind, it gives memory errors on loading (specifically setting terrain features in the player's version of the cave), but then opens fine and gives no errors on closing

There have been crashes on current master (unless I fixed them - probably on PowerWyrm's instructions) with creating labyrinth levels. So my best guess is that whatever issue that was also caused a bad savefile to be written in the panic save.

That's not a very satisfactory answer, but I think it's about as well as I'm going to do for now.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is online now   Reply With Quote
Old April 20, 2017, 18:55   #3
bron
Swordsman
 
Join Date: May 2008
Location: Saratoga, California (in the midst of Silicon Valley)
Posts: 420
bron is on a distinguished road
Quote:
Originally Posted by Nick View Post
There have been crashes on current master (unless I fixed them - probably on PowerWyrm's instructions) with creating levels.
OK; thanks for looking. In the particular instance, the level I had just completed before descending was itself a labyrinth level, and new level that got created (and then crashed) is also a labyrinth level. Perhaps that has something to do with it ? In any event, it seems clear something bad happened since the new labyrinth level has all permanent walls, so I assume some sort of corruption.

I played through the level to see if maybe moving on would cleanse the badness, but (more or less as expected) it was the badness that spread instead and eventually I got a savefile that no longer works at all.

Unless I hear different, I'll just give up on this char and start a new one.
bron is online now   Reply With Quote
Old April 20, 2017, 19:10   #4
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,022
Donated: $40
Pete Mack is on a distinguished road
Bron--some labyrinths have permanent walls by design. But Nick is still probably right about the cause.
Pete Mack is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Repeatable Crash calris Vanilla 1 April 3, 2016 10:38
V 3.5-dev crash eMeM Development 4 May 2, 2013 16:21
v4 osx crash saarn v4 5 June 19, 2012 15:50
3.2.0 crash Londorth Vanilla 7 January 6, 2011 15:02
Crash Bug? Rizwan Vanilla 4 February 25, 2010 12:58


All times are GMT +1. The time now is 06:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.