<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=4860" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: STRFREE on strdup fight. C</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4860</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23778#p23778</link>
   <description>Yes and it was what u thought.  I brought an old class back that had an old coded skill we haven&#039;t used in years.  I foolishly assumed it was fine but eliminating all other possibilities looked at and found it making incomplete corpse objects which when fixed solved that.  Thanks. </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23778#p23778</guid>
   <pubDate>Tue, 13 Mar 2018 11:38:11 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Vladaar)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23762#p23762</link>
   <description>[quote=Vladaar]Ok, thanks for clarifying.  You might be right there, well seems only likely explanation.[/quote] Were you able to figure out if anything else was going on with this, or confirm what was causing the crash? </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23762#p23762</guid>
   <pubDate>Tue, 13 Mar 2018 01:26:56 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23759#p23759</link>
   <description>Ok, thanks for clarifying.  You might be right there, well seems only likely explanation.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23759#p23759</guid>
   <pubDate>Fri, 9 Mar 2018 16:55:41 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Vladaar)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23758#p23758</link>
   <description>[quote=Vladaar]I&#039;m not lying, I have no reason too.  I&#039;m not the best coder, and will not pretend to be.  I posted cause I thought it was a legit bug or at least an issue with my code.[/quote] Nobody is saying you&#039;re lying. What I&#039;m asking is why GDB&#039;s log is showing a different version of that block of code from what you posted initially. Notice the if ( ch ) check and redundant if( victim-&amp;gt;hating ) checks. Where did those go?  Your problem could well be that ch didn&#039;t exist when that con</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23758#p23758</guid>
   <pubDate>Fri, 9 Mar 2018 15:27:32 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23757#p23757</link>
   <description>I&#039;m not lying, I have no reason too.  I&#039;m not the best coder, and will not pretend to be.  I posted cause I thought it was a legit bug or at least an issue with my code.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23757#p23757</guid>
   <pubDate>Fri, 9 Mar 2018 15:04:23 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Vladaar)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23756#p23756</link>
   <description> [quote=Vladaar]No.  It&#039;s the same. [/quote] How can you make the assertion that the two above pieces of code are the same? Clearly they are not. I really want to help here and understand what&#039;s wrong, but I can&#039;t debug one piece of code when GDB was clearly looking at something else. </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23756#p23756</guid>
   <pubDate>Fri, 9 Mar 2018 11:18:30 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23755#p23755</link>
   <description>No.  It&#039;s the same. </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23755#p23755</guid>
   <pubDate>Fri, 9 Mar 2018 06:14:06 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Vladaar)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23754#p23754</link>
   <description>A little perplexed. Why does this part from your GDB not match the code you posted earlier? [code] 2967 if(victim-&amp;gt;hating) 2968 { 2969 if(victim-&amp;gt;hating-&amp;gt;who != ch) 2970 { 2971 if ( victim-&amp;gt;hating ) 2972 STRFREE(victim-&amp;gt;hating-&amp;gt;name); 2973 if ( ch ) { 2974 victim-&amp;gt;hating-&amp;gt;name = QUICKLINK(ch-&amp;gt;name); 2975 victim-&amp;gt;hating-&amp;gt;who = ch; 2976 }  [/code] vs.  [code] if( victim-&amp;gt;hating ) { if( victim-&amp;gt;hating-&amp;gt;who != ch ) { STRFREE( victim-</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23754#p23754</guid>
   <pubDate>Thu, 8 Mar 2018 23:55:45 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23753#p23753</link>
   <description>Should be copied and pasted from LOP when I ported it.  It&#039;s almost exactly same as smaugfuss cept has more debugging info like file, line in bug messages whereas smaugfuss has some of it, but not quite as much. [code] #ifdef HASHSTR #define STRALLOC(point)  str_alloc( (point), __FILE__, __LINE__ ) #define QUICKLINK(point) quick_link( (point), __FILE__, __LINE__ ) #define STRFREE(point) \ do \ { \ if( (point) ) \ { \ if( !in_hash_table( (point) ) ) \ { \ </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23753#p23753</guid>
   <pubDate>Thu, 8 Mar 2018 20:39:04 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Vladaar)</author>
  </item>
  <item>
   <title>STRFREE on strdup fight. C</title>
   <link>https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23752#p23752</link>
   <description>[quote=Vladaar]#define QUICKLINK(point) quick_link( (point), __FILE__, __LINE__ ) [/quote] I don&#039;t know about yours, but mine is conditional and I thought it was in stock. Maybe you should show what surrounds this?  I seem to recall that if not using certain defines, it will fall back on using str_dup rather than hashing strings, won&#039;t it?  Something like this: [code] #ifdef HASHSTR #define STRALLOC(point)		str_alloc((point)) #define QUICKLINK(point)	quick_link((point)) #define </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/strfree-on-strdup-fight-c-4860/&amp;p=23752#p23752</guid>
   <pubDate>Thu, 8 Mar 2018 20:22:22 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
 </channel>
</rss>
