<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4969" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: Bug: char_check( )</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4969</link>
  <description>The largest Smaug community resource site. - Potential crash bug... </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>Bug: char_check( )</title>
   <link>https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24207#p24207</link>
   <description>To be clear, it wasn&#039;t the fall that killed them and they didn&#039;t drown in a room from which falling was possible either. In this instance, ch was not an NPC, and this is where the trace pointed. Am guessing after get_exit( ) complained in the log about a null room, whoever tried to access pexit after this is what caused this particular issue.   For context, was testing out a PC drowning after their mount drowned and left them in the drink. Mount died just fine, but when the PC drowned, that w</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24207#p24207</guid>
   <pubDate>Sat, 31 Aug 2024 00:27:14 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>Bug: char_check( )</title>
   <link>https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24206#p24206</link>
   <description>The problem is that will_fall() itself may not even be the issue. It could be one of the subsequent calls to other things it makes, the most obvious of which would be the extract_char() function. If ch happens to be an NPC, that could easily trigger a problem that&#039;s not easy to solve even with char_died() calls since char_died() requires a valid ch value.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24206#p24206</guid>
   <pubDate>Fri, 30 Aug 2024 22:53:01 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>Bug: char_check( )</title>
   <link>https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24205#p24205</link>
   <description>In my case, I believe the issue was the character in question drowned. Subsequently, the char_check( ) call to will_fall( ) was trying to determine a down exit the the room ch was in, but of course that seg faulted since there wasn&#039;t any room and will_fall( ) was written assuming one would always exist for the caller, apparently.  :shrug:  My base is older and while patched up with every bug fix I ever found published, and then some, the trvch_wnext( ) thing is still on my to-do list. This ma</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24205#p24205</guid>
   <pubDate>Fri, 30 Aug 2024 20:22:36 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>Bug: char_check( )</title>
   <link>https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24204#p24204</link>
   <description>That portion of the function isn&#039;t the same as what&#039;s currently in the SmaugFUSS code: [code]   lc1 = trworld_create( TR_CHAR_WORLD_FORW ); for( ch = first_char; ch; ch = trvch_wnext( lc1 ) ) { set_cur_char( ch ); will_fall( ch, 0 ); if( char_died( ch ) ) continue;[/code] Normally problems with this kind of loop stem from the fact that it isn&#039;t protecting against something being removed from a list during processing. I don&#039;t remember exactly where</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24204#p24204</guid>
   <pubDate>Fri, 30 Aug 2024 13:27:51 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>Bug: char_check( )</title>
   <link>https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24203#p24203</link>
   <description>Interesting thought. I did quite a bit of fall testing but hadn&#039;t been able to crash it. Can&#039;t hurt though!  :imp: </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24203#p24203</guid>
   <pubDate>Fri, 30 Aug 2024 12:57:22 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>Bug: char_check( )</title>
   <link>https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24202#p24202</link>
   <description>You might want another check for char_died after will_fall as well since it could cause them to die. Haven&#039;t tested it or anything but it might be possible that would cause a crash as well or at least some undesired results.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24202#p24202</guid>
   <pubDate>Fri, 30 Aug 2024 04:59:27 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Remcon)</author>
  </item>
  <item>
   <title>Bug: char_check( )</title>
   <link>https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24200#p24200</link>
   <description>Came across this by chance while tinkering with something new. Managed to produce a crash pretty readily and traced it back to here: In update.c, function char_check( ): [code] for ( ch = first_char; ch; ch = ch_next ) { set_cur_char(ch); ch_next = ch-&amp;gt;next; [color=red]will_fall(ch, 0);[/color] if ( char_died( ch ) ) continue; [/code] That seems kinda... not smart.  Change to this:  [code] for ( ch = first_char; ch; ch = ch_next ) { set_cur_cha</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/bug-charcheck--4969/&amp;p=24200#p24200</guid>
   <pubDate>Fri, 30 Aug 2024 03:42:47 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
 </channel>
</rss>
