Closed GoogleCodeExporter closed 9 years ago
Hi Patrick,
A good excuse to do a fresh install of ubuntu 8.10 on my home machine! With this
setup, I was able to replicate these errors. Hope to try a manual build of osg
2.4
soon, did you try that?
regards,
Gerwin
Original comment by gerwinde...@gmail.com
on 16 Nov 2008 at 10:34
No, and that might be beyond my abilities/available time at the moment.
Original comment by patrick....@gmail.com
on 17 Nov 2008 at 12:32
I've also encountered these segfaults on a fresh install (after importing
osgViewer
when I do it interactively)
they don't occur on my other machine which I upgraded to 8.10 from 8.04
Original comment by huib...@gmail.com
on 10 Dec 2008 at 9:28
(I forgot to mention that I used a manual build of osg, similar to the one on
the
other machine)
Original comment by huib...@gmail.com
on 10 Dec 2008 at 9:30
there seems to be something wrong in osg::notify. On my ubuntu hardy install,
osg.notify() returns a <Swig Object of type 'std::ostream *' at 0xb6c1d120>. On
my
intrepid install, I get a segfault. I tried both older and newer swig versions
(1.3.33, 1.3.35, 1.3.36), but no luck so far. Tried the latest changes from svn
to
osg Notify.cpp, but no changes there. The C++-based osgviewer happily displays
osg::notify calls. Still looking...
Original comment by gerwinde...@gmail.com
on 29 Dec 2008 at 9:09
Ah! I found a "workaround" which might also lead to the real cause. When using
the
following all goes well on my intrepid ibex system:
export LD_PRELOAD=/usr/lib/libstdc++.so.6
I'm not yet sure why this is necessary, and how to fix/prevent this more
cleanly.
Original comment by gerwinde...@gmail.com
on 29 Dec 2008 at 9:12
Original comment by gerwinde...@gmail.com
on 30 Dec 2008 at 8:53
Original comment by gerwinde...@gmail.com
on 30 Dec 2008 at 8:55
Original comment by gerwinde...@gmail.com
on 30 Dec 2008 at 11:04
Added an explicit linking of the standard c++ library in the cmake. For reasons
not
clear to me, this link option had to be BEFORE the openGL library links.
Committed the fix in r182.
---
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(STDCPLUSPLUS_LIBRARY -lstdc++)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
SET(SWIGLINKLIBS ${OSG_LIBRARY} ${PYTHON_LIBRARIES} ${OPENTHREADS_LIBRARY}
${STDCPLUSPLUS_LIBRARY} ${OPENGL_LIBRARIES})
Original comment by gerwinde...@gmail.com
on 30 Dec 2008 at 12:25
sorry, committed the fix in r181.
Original comment by gerwinde...@gmail.com
on 30 Dec 2008 at 12:31
I'm afraid this isssue surfaced again, the fix seems not to work for me.
After importing osgViewer on a machine with Nvidia graphics, I get crashes. The
build
works fine with a number of different graphics cards/drivers (ati, mesa) and
crashes
on all versions of NVidia. Setting LD_PRELOAD=/usr/lib/libstdc++.so.6 fixes it
though.
Platform: debian etchl
ibc6 version 2.3.6.ds1-13etch7
SWIG Version 1.3.38
osgswig version: last week's svn checkout
cmake version 2.4-patch 5
best,
mathias
Original comment by Franz...@gmail.com
on 24 Feb 2009 at 8:18
Started to try out osgswig once more, but this issue is still open. I just
installed osgswig and found the same error.
I cannot use the workaround with LD_PRELOAD because it crashes python as soon
as I import scipy.
It works only on machines without NVidia drivers. I attach the output of ldd
for the _osg.so on a working machine and on a crashing machine.
This is basically a showstopper for osgswig for me :(
Config:
Linux version 2.6.27.45-hri-32bit (luttropp@merlin07) (gcc version 4.1.2
20061115 (prerelease) (Debian 4.1.1-21))
swig 2.0.0
this week's svn checkout of osgswig
OSG 2.8.2
cmake 2.8.1
Non-working machine:
ldd _osg.so
linux-gate.so.1 => (0xffffe000)
libosg.so.55 => /home/franzius/.HRI/sit/2009/External/OpenSceneGraph/2.8/lib/linux-i686-gcc-lsb31/libosg.so.55 (0xb76d0000)
libpython2.6.so.1.0 => /home/franzius/.HRI/sit/2009/External/python/2.6.3/linux-i686-gcc-lsb31/lib/libpython2.6.so.1.0 (0xb756b000)
libOpenThreads.so.11 => /home/franzius/.HRI/sit/2009/External/OpenSceneGraph/2.8/lib/linux-i686-gcc-lsb31/libOpenThreads.so.11 (0xb7564000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb746a000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb73eb000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb7344000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb733a000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7322000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7236000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7228000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7203000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb71f8000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb70c6000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb70b4000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb70b0000)
libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb70ac000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0xb6143000)
libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0xb6140000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb613d000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6138000)
/lib/ld-linux.so.2 (0xb7fce000)
Working machine:
linux-gate.so.1 => (0xffffe000)
libosg.so.55 => /home/franzius/.HRI/sit/2009/External/OpenSceneGraph/2.8/lib/linux-i686-gcc-lsb31/libosg.so.55 (0xb7684000)
libpython2.6.so.1.0 => /home/franzius/.HRI/sit/2009/External/python/2.6.3/linux-i686-gcc-lsb31/lib/libpython2.6.so.1.0 (0xb7520000)
libOpenThreads.so.11 => /home/franzius/.HRI/sit/2009/External/OpenSceneGraph/2.8/lib/linux-i686-gcc-lsb31/libOpenThreads.so.11 (0xb7519000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7426000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb73a7000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb733d000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7333000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb731b000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb722f000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7221000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb71fc000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb71f1000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb70bf000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb70ad000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb70a9000)
libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb70a5000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb70a0000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb7098000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7095000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7090000)
/lib/ld-linux.so.2 (0xb7f83000)
Best,
Mathias
Original comment by Franz...@gmail.com
on 17 Jun 2010 at 12:08
Original issue reported on code.google.com by
patrick....@gmail.com
on 15 Nov 2008 at 7:35