A bug in g++ exceptions on 7?
David Xu
davidxu at freebsd.org
Tue Apr 15 10:41:57 UTC 2008
gnn at freebsd.org wrote:
> Howdy,
>
> We believe we've found a bug in the libgcc or libstdc++ library (not
> sure which one) packaged with the gcc43 port in fbsd7 on an Intel
> x86-64. A program linked against those libraries aborts when an
> exception is thrown. It does not abort if -lpthread is added to the
> link line, even though the program does not use threads. I believe
> the problem is related to the pthread stubs in libgcc, but I don't
> know enough to find the exact problem or fix it. An example is below.
Not sure if this patch might help you:
http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/gcc/gthr-posix.h.diff?r1=1.1.1.8;r2=1.1.1.8.4.1;f=h
Regards,
David Xu
More information about the freebsd-stable
mailing list