[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Sun Sep 26 02:15:02 2004 -->
- <!--x-from-r13: wxancxn ng xarheb.arg (Xbr Yancxn) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: Pine.LNX.4.44.0409241928230.13308-[email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] C++ Debuggery and the Path of Destruction -->
- <li><em>date</em>: Sun Sep 26 02:15:02 2004</li>
- <li><em>from</em>: jknapka at kneuro.net (Joe Knapka)</li>
- <li><em>in-reply-to</em>: <[email protected]></li>
- <li><em>references</em>: <[email protected]></li>
- <li><em>subject</em>: [ale] C++ Debuggery and the Path of Destruction</li>
<<a rel="nofollow" href="http://sourceforge.net/projects/njamd">http://sourceforge.net/projects/njamd</a>>. It ships with Fedora Core 1,
and probably other distros as well.
However, if you've got any kind of real-time constraints, even fairly
soft ones, njamd is likely to make your code run way too slow.
Valgrind <<a rel="nofollow" href="http://valgrind.kde.org/">http://valgrind.kde.org/</a>> is reputed to be much faster, but
I haven't been able to get it to work (which may very well be a RTFM
issue on my part).
Cheers,
-- Joe
John Mills <johnmills at speakeasy.net> writes:
> ALErs -
>
> I'm debugging some C++ compiled with gcc-[2.96|3.3], using gdb-5.2 in a
> RH-7.3 environment. One of my objects is segfaulting on destruction and
> I'm having trouble tracking it down. In fact, when I back up the fatal
> stack I find I'm in the destructor for an identical object which happens
> to be in a different class!
>
> $%#$@^!!!
>
> Naturally, I got a bit too clever and am handing pointers to one object
> whose targets were allocated in another, and the originator - not the user
> - must do the destruction. I may be tripping on something like this, but
> I'm not finding where I jumped the rails.
>
> Any suggestions how to track this self-administered wedgie down?
>
> TIA.
>
> - John Mills
> john.m.mills at alum.mit.edu
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>
>
--
"We sat and watched as this whole <-- (Died Pretty -- "Springenfall")
blue sky turned to black..."
... Re-defeat Bush in '04.
--
pub 1024D/BA496D2B 2004-05-14 Joseph A Knapka
Key fingerprint = 3BA2 FE72 3CBA D4C2 21E4 C9B4 3230 94D7 BA49 6D2B
If you really want to get my attention, send mail to
jknapka .at. kneuro .dot. net.
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--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="msg00858.html">[ale] palm41.dll weirdness</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00860.html">[ale] Fwd: Circle the wagons, Bill, Linuxis coming to town...</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00857.html">[ale] C++ Debuggery and the Path of Destruction</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00860.html">[ale] Fwd: Circle the wagons, Bill, Linuxis coming to town...</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00859"><strong>Date</strong></a></li>
<li><a href="threads.html#00859"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>