Bug#134262: g++-3.0: Use of dynamic_cast makes compiled program segfault
reassign 134262 glut3g
thanks
there is at least a bug in the glut3g package in that it does not
define a dependency on libstdc++2.10-glibc2.2, although the shared
libglut library is linked against it.
Before trying to compile / link with g++-3.x, xlibmesa needs to be
compiled with the same compiler. Linking an executable against two
different libstdc++ libs is a no no ...
Martin, please correct my, if I'm wrong.
Matthias
Daniel Sjölie writes:
> On 2002-02-16 23:01:21, Martin v. Loewis wrote:
> > Daniel SjÂ旦lie <deepone@acc.umu.se> writes:
> >
> > > 0x400a9c59 in osgDB::ReaderWriter::ReadResult::getNode() (this=0xbffff2a0)
> > > at /home/source/osg/cvs/include/osgDB/ReaderWriter:64
> > > 64 osg::Node* getNode() { return dynamic_cast<osg::Node*>(_object.get()); }
> > > (gdb) s
> > >
> > > Program received signal SIGSEGV, Segmentation fault.
> >
> > Can you give a precise specification of the source code you have
> > compiled to generate this problem?
> >
> > Are you sure that you are not invoking undefined behaviour? More
> > specifically, are you sure that 0x808f170 really represents an
> > osg::Object* to an object that has been allocated but not yet deleted?
>
> We have now verified that everything works using the same compiler in
> RedHat 7.2.
>
> andek@localhost:/home/andek>g++ -v
> Reading specs from
> /sw/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
> Configured with: ../../../3.0.3/configure --prefix=/sw/gcc-3.0.3
> --disable-shared --disable-libgcj
> Thread model: single
> gcc version 3.0.3
>
> Works.
>
> andersb@goofy:~$ g++-3.0 -v
> Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.3/specs
> Configured with: ../src/configure -v
> --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr
> --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as
> --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls
> --without-included-gettext --disable-checking --enable-threads=posix
> --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc
> i386-linux
> Thread model: posix
> gcc version 3.0.3
>
> Does not work.
>
> Some interesting google hits:
> http://lug.boulder.co.us/pipermail/lug/Week-of-Mon-20010917/013971.html
> http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00290.html
> http://mailarchivers.ncsa.uiuc.edu/cgi-bin/mailarchivers/search.pl?archivename=PERFORMER&threadmsg=2350
>
> /Daniel
>
> --
> Now take a deep breath, smile and don't take life so seriously... :)
>
>
> --
> To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: