[osg-users] Segfault when using addChild on Group object

Andre Sanchez aurumknight.ak at gmail.com
Mon Apr 25 09:29:40 PDT 2016


Hmm, I am using this CMake file, so I am not using a -I flag manually, and I don't see one in the generated Makefile.

I checked the ldd output and they don't see anything inconsistent with itself.

Code:

	linux-vdso.so.1 =>  (0x00007ffe606c9000)
	libosg.so.99 => /usr/lib/libosg.so.99 (0x00007fd9b71be000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd9b6eba000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd9b6ca4000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd9b68df000)
	libOpenThreads.so.14 => /usr/lib/libOpenThreads.so.14 (0x00007fd9b66d7000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd9b64cf000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd9b62cb000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007fd9b6065000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd9b5d5f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fd9b768e000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd9b5b41000)
	libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007fd9b591a000)
	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fd9b5708000)
	libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fd9b5505000)
	libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fd9b52ff000)
	libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fd9b50fd000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fd9b4dc8000)
	libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fd9b4bb1000)
	libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007fd9b49ac000)
	libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007fd9b47a9000)
	libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007fd9b45a6000)
	libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007fd9b43a0000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fd9b4181000)
	libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007fd9b3f7f000)
	libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fd9b3d79000)
	libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fd9b3b6c000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fd9b3968000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fd9b3762000)




I'm not so strong on UNIX build tools so sorry if I'm missing something obvious.

Here is the CMakeLists.txt

Code:

cmake_minimum_required( VERSION 2.6 )
project( proj )

find_package( OpenThreads )
find_package( osg )
find_package( osgDB )
find_package( osgUtil )
find_package( osgViewer )

macro( config_project PROJNAME LIBNAME )
    include_directories( ${${LIBNAME}_INCLUDE_DIR} )
    target_link_libraries( ${PROJNAME} ${${LIBNAME}_LIBRARY} )
endmacro()

add_executable( proj main.cpp )
config_project( proj OPENTHREADS )
config_project( proj OSG )
config_project( proj OSGDB )
config_project( proj OSGUTIL )
config_project( proj OSGVIEWER )




Thanks,
Andre

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66949#66949








More information about the osg-users mailing list