[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



> Naturally, I got a bit too clever 

It's almost certainly going to be easier to rewrite it as something less 
clever, but hey, where's the fun in that?

;-)

> Any suggestions how to track this self-administered wedgie down?

Any chance of posting some code?

I finally gave up on getting memory management right the first (second, 
nth...) time and started populating my code with debug statements to the 
effect of:

__FILE__::__LINE__ is now creating a __WHATEVER__, address 0xabcddcab
__FILE__::__LINE__ is now deleting a __WHATEVER__, address 0xabcddcab

This made me look like a rank amateur, but also a rank amateur who generally 
was able to leave at 5pm.

You can also try zeroing out the object's memory during destruction -- that 
might let you segfault a bit sooner at a more useful location.  

Combine the two and you should see an object getting freed that is later 
referenced.  

Good luck!

Barry

>
> TIA.
>
>  - John Mills
>    john.m.mills at alum.mit.edu
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00845" href="msg00845.html">[ale] C++ Debuggery and the Path of Destruction</a></strong>
<ul><li><em>From:</em> johnmills at speakeasy.net (John Mills)</li></ul></li>
<li><strong><a name="00847" href="msg00847.html">[ale] C++ Debuggery and the Path of Destruction</a></strong>
<ul><li><em>From:</em> bjorn at sccs.swarthmore.edu (Bjorn Dittmer-Roche)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00843" href="msg00843.html">[ale] C++ Debuggery and the Path of Destruction</a></strong>
<ul><li><em>From:</em> johnmills at speakeasy.net (John Mills)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00843.html">[ale] C++ Debuggery and the Path of Destruction</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00845.html">[ale] C++ Debuggery and the Path of Destruction</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00843.html">[ale] C++ Debuggery and the Path of Destruction</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00845.html">[ale] C++ Debuggery and the Path of Destruction</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00844"><strong>Date</strong></a></li>
<li><a href="threads.html#00844"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>