![]() |
bug - crash with tons of traps detected
Using revision d1db92e30511af698cc55b284693a5f928fca67a (with a savefile that was generated along different versions), I get a crash on loading the savefile (available on request). The game first crashed on using a rod of detection near a large vault.
Backtrace: Code:
#0 0x002ef4ee in fread () from /lib/tls/i686/cmov/libc.so.6 |
Quote:
|
Yes, it segfaulted while showing the "you detect traps" message. And yes, it segfaults on start, after pressing any key on the title screen (when save loading runs). Once, on a fluke, I was 'stepi'-ing in gdb around the crash point and the game was able to load, but crashed when I used an upstair.
As for whether the vault was created in latest revision, I believe I was playing with rev 81b526d8e4 (might be a bit earlier, sorry for imprecision), went down a stair, detected and got a crash. Then I updated to see if that would fix the crash, which didn't happen. |
Hmm. Well, why don't you post the savefile here and I'll take a look.
|
1 Attachment(s)
Thanks, here it is.
|
Are you building from source? If so, can you make the following changes and recompile:
1. Add trap.txt to the Makefile in lib/edit. 2. Change line 36 of slay.c, replacing 257 with 513. With those changes, I am able to load your savefile. It seems that the slay cache was running out of room, leading (I think) to an array index out of bounds. |
Quote:
|
Thanks, Gabe.
I'm building from source, but with your changes it still crashes the same way (same backtrace on gdb). I'm using a 32bit linux (ubuntu 10.04) and, since the crash happens in libc ("fread () from /lib/tls/i686/cmov/libc", see gdb output above), it might be hard to reproduce on other platforms. |
Quote:
The only other guess I have is that it has something to do with displaying items on trap squares (though again, I haven't had problems with this on my end, using Windows 7). If you're up for a little detective work, you could try the following: 1. Do Ctrl-a, c, z, P to create a scroll of trap detection. 2. Read the scroll. 3. Drop a bunch of items (without moving). If everything is working correctly, whenever an item drops onto a known trap square, it should show up as a red &. |
Items on traps display fine. OTOH, using the debug mode to create a lvl50 character and teleporting to large-vault-depth gets crashy quick, sometimes even before detecting traps.
You say my save file works OK for you? Because I'm starting to suspect the crash could have led to an inconsistent save file 'traps' entry. |
All times are GMT +1. The time now is 12:15. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.