Difference between revisions of "C343-23"

From NetHackWiki
Jump to navigation Jump to search
(link to bugfix commit on github)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''C343-23''' is a [[core bug]]. It is [http://nethack.org/v343/bugs.html#C listed] as:
+
'''C343-23''' was a [[core bug]]. It was [http://nethack.org/v360/bugs.html#C listed] as:
  
Dungeon collapses after vault guard fails to lead you out.
+
  Dungeon collapses after vault guard fails to lead you out.
  
It is currently listed as "Help" on the official bugs list, as was unknown what caused this scenario for a long time; however, [[User:SGrunt|Grunt]] was recently able to [https://groups.google.com/forum/?fromgroups#!topic/rec.games.roguelike.nethack/BjI7Kr5LRCA reproduce it]:
+
In 2012, [[User:SGrunt|Grunt]] was able to [https://bilious.alt.org/rgrn/?125385 reproduce it]:
  
 
  The straightforward way to reproduce this is as follows:  
 
  The straightforward way to reproduce this is as follows:  
 
   
 
   
  1) Teleport into a vault.  
+
  1) Teleport into a vault.
 
  2) Wait for the guard to start leading you out, so that you can observe
 
  2) Wait for the guard to start leading you out, so that you can observe
 
     the path he takes. (The bug isn't necessarily reproduced if the guard
 
     the path he takes. (The bug isn't necessarily reproduced if the guard
Line 24: Line 24:
 
  buffer is reached, causing a panic().
 
  buffer is reached, causing a panic().
  
A [[ttyrec]] of the bug in action is available here: http://dl.dropbox.com/u/5494313/c343-23.ttyrec
+
Nethack 3.6.2 [https://github.com/NetHack/NetHack/commit/b32c93cacdc68997882f295bbf5ea2c5a9a7faec closed this bug].
 +
 
 +
apply fix from grunthack to prevent panic "fakecorr overflow" when vault guard
 +
couldn't figure out how to lead the hero from vault to civilization;
 +
fixes longstanding bug C343-23
  
 
[[Category:Bugs]]
 
[[Category:Bugs]]
{{nethack-343}}
 

Latest revision as of 03:39, 12 January 2020

C343-23 was a core bug. It was listed as:

 Dungeon collapses after vault guard fails to lead you out.

In 2012, Grunt was able to reproduce it:

The straightforward way to reproduce this is as follows: 

1) Teleport into a vault.
2) Wait for the guard to start leading you out, so that you can observe
   the path he takes. (The bug isn't necessarily reproduced if the guard
   doesn't take a straight path for the first two steps, as this yields
   more than one accessible tile from his stopping point.)
3) After the guard disappears (once he starts leading you out, you can
   just teleport elsewhere and he'll disappear), teleport back into the
   vault.
4) Dig out the first two steps of the guard's path after the vault wall
   (such that there are two corridor tiles).
5) Return to the vault and wait for the guard to lead you out again. 

Result: the guard gets stuck on the last tile dug out. The code that
extends the corridor believes he's still moving, however, and eventually
results in an overflow once the length of the internal fake corridor
buffer is reached, causing a panic().

Nethack 3.6.2 closed this bug.

apply fix from grunthack to prevent panic "fakecorr overflow" when vault guard
couldn't figure out how to lead the hero from vault to civilization;
fixes longstanding bug C343-23