weird segfaults @ g++2.8.1
Yotam Medini
yotam@avanticorp.com
Wed Oct 7 16:49:00 GMT 1998
> Cc: egcs-bugs@cygnus.com
> Date: Wed, 07 Oct 1998 18:36:01 -0500
> From: Mumit Khan <khan@xraylith.wisc.edu>
>
> Yotam Medini <yotam@avanticorp.com> writes:
> > ...
> > Attached is the log of compile, link and failed
> > with g++-2.8.1, ...
>
> [ actually, you get a sigsegv not a link error, right? ]
Yes, you are right.
With egcs-1.1b I first mistakenly compiled my code
without -fsquangle which I used for installing libstdc++.
> I remember running into something similar in my code which works fine
> with two different compilers based on EDG front-end, and couldn't
> figure out the problem. The workaround I found for egcs was to define
> a destructor (class D in your case), which should work for your case
> as well. Please try it out.
I actually have many workarounds. But I would like to see this solved.
The strange thing is that under gdb you can see that in
some occasion a (template) destructor is called via a null pointer!
> I never did get a small enough testcase to report, so glad to see a
> compact one like yours.
Thanks, it took some iteration effort to minimize. Hope it will help.
> Regards,
> Mumit
-- yotam
More information about the Gcc-bugs
mailing list