A bug in g++ exceptions on 7?

gnn at freebsd.org gnn at freebsd.org
Wed Apr 16 00:12:04 UTC 2008


At Tue, 15 Apr 2008 18:43:21 +0800,
David Xu wrote:
> 
> 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
> 

Yes, this works, thanks!

Best,
George


More information about the freebsd-stable mailing list