Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   Oh no, I've caused an intermittent bug (http://angband.oook.cz/forum/showthread.php?t=4784)

Therem Harth August 11, 2011 20:27

Oh no, I've caused an intermittent bug
 
So I'm trying to bring stat restore potions back to Angband 3.3.0. The code is all there, so I just put the potion entries in object.txt... And now Angband quits on start with this message:

Code:

Unable to (re-)stock store 4. Please report this bug
It looks like store 4 is the Alchemist. Do some Googling... Hey, maybe the presence of stat restore potions there is hard coded, and there are too many entries? So I try removing some items from the Alchemist's store.

And it works... Once. Then Angband continues to crash on start.

What's going on? Have I found some lower level problem in the code, or did I do something dumb?

Edit: dang it this is in the wrong forum. Can someone move this to Development?

myshkin August 13, 2011 05:26

Quote:

Originally Posted by Therem Harth (Post 58565)
So I'm trying to bring stat restore potions back to Angband 3.3.0. The code is all there, so I just put the potion entries in object.txt... And now Angband quits on start with this message:

What N: and I: lines did you use for the potions?

Therem Harth August 13, 2011 16:13

326 to 331 and 75:17 to 75:22, respectively.

Therem Harth August 14, 2011 22:07

... Bizarre. I've deleted everything and checked out the git repo again, and now everything works fine. Darned if I can explain it.

Tobias August 15, 2011 00:25

Quote:

Originally Posted by Therem Harth (Post 58751)
... Bizarre. I've deleted everything and checked out the git repo again, and now everything works fine. Darned if I can explain it.

maybe you just had to make distclean. That happens sometimes.

Therem Harth October 17, 2011 04:22

Uh oh, here we go again...

I removed stat restore potions from the Alchemist's in 3.2.0, and changed the number of slots from 32 to 26, as appropriate... And now, nine times out of ten, the SDL interface freezes on character generation, with no console output. I tried inducing the crash under GDB and got nothing at all - as far as GDB can tell, Angband continues to run normally while its interface is completely unresponsive.

Help?

Edit: and this is with a completely clean compile FWIW.

Therem Harth October 17, 2011 04:28

Okay, I managed to get a backtrace with the X11 frontend. Can't C&P it, too big for the xterm, but it said something about a "double free or corruption" near the top.

GDB unfortunately still produces no output..

takkaria October 17, 2011 12:32

Quote:

Originally Posted by Therem Harth (Post 62106)
Uh oh, here we go again...

I removed stat restore potions from the Alchemist's in 3.2.0, and changed the number of slots from 32 to 26, as appropriate... And now, nine times out of ten, the SDL interface freezes on character generation, with no console output. I tried inducing the crash under GDB and got nothing at all - as far as GDB can tell, Angband continues to run normally while its interface is completely unresponsive.

Help?

Edit: and this is with a completely clean compile FWIW.

The store stocking logic is fiendish and not very good - you've just run into one of its limitations. Don't reduce the number of slots, increase how many slots other items get to compensate and you should be fine.

Therem Harth October 17, 2011 16:10

Ah, thanks. I'll see how that works.

Edit: nope, still crashes with the "double free or corruption (!prev)" error.

Therem Harth October 17, 2011 22:24

Hah, this gets even better. It turns out that, if it crashes and you close it, Angband sticks around until you kill -9 it. I'm guessing GDB isn't telling me anything because the game is actually in an infinite loop; and the backtrace I got (with "double free or corrupion") isn't worth anything.

Perhaps I should switch to the 3.3 codebase?


All times are GMT +1. The time now is 04:53.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.