Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1022 closed bug (fixed (in master))

sdl version sometimes crashes when lighting rooms

Reported by: Tobias Owned by:
Milestone: 3.1.2 beta Keywords: sdl


I am running the svn version from one or two weeks back. ( I don't know how to find out the exact revision).

Sometimes (ca. 10% Chance) angband crashes when I cast light.
Some red words apear on screen but it closes to fast to read them.
When I rerun angband, it restores to the turn after light has been cast. Huzzah for autosafe.

gdb says:

[New Thread 0xb7026b90 (LWP 20125)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb79c76f0 (LWP 20124)]
lite_room (y1=17, x1=159) at spells2.c:2423
2423				if (r_ptr->flags[1] & (RF1_STUPID)) chance = 10;

I can't check any other versions because sdl is the only one running ok on my system.

Attachments (1)

1001.Tobias (52.0 KB) - added by Tobias 9 years ago.
Here is the savefile (I can play on normally with this)

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Tobias

Here is the savefile (I can play on normally with this)

comment:1 Changed 9 years ago by anonymous

Ah, I forgot:
It say:
<blah>/bin/angband/angband : software bug

on the commandline after crashing.

comment:2 Changed 9 years ago by Tobias

I looked into this some more and it seems that there is an access to an out of bounds value in mon_list. I have no idea how to go from here, haven't done any C in years and never with something as big as angband.

(gdb) print mon_list[cave_m_idx[y][x]]
Cannot access memory at address 0x851a318
(gdb) print mon_list[100]
$14 = {r_idx = 230, fy = 17 '\021', fx = 131 '\203', hp = 404, maxhp = 404, csleep = 130, mspeed = 109 'm', energy = 63 '?', stunned = 0 '\0', confused = 0 '\0', monfear = 0 '\0', cdis = 21 '\025', mflag = 0 '\0', ml = false, hold_o_idx = 0, smart = 0}
(gdb) print cave_m_idx[y][x]
$15 = 19763

btw. I recompiled with todays revision and -O0 and it didn't help.

comment:3 Changed 9 years ago by magnate

  • Resolution set to fixed
  • Status changed from new to closed

[f163806] (SVN r1809)

comment:4 Changed 9 years ago by magnate

  • Keywords crash removed
  • Milestone changed from Triage to 3.1.2 beta
Note: See TracTickets for help on using tickets.