(gdb) r cow.osg
Starting program: /usr/local/OSGSVN/OpenSceneGraph/applications/osgviewertugkan/Linux32.Debug/osgviewer cow.osg
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1235007760 (LWP 9651)]
[New Thread -1240446064 (LWP 9654)]
[New Thread -1252590704 (LWP 9655)]
Threading model 'CullDrawThreadPerContext' selected.
[New Thread -1263613040 (LWP 9656)]
Threading model 'DrawThreadPerContext' selected.
[Thread -1252590704 (LWP 9655) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1263613040 (LWP 9656)]
0xb7e50215 in std::_Rb_tree_increment () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0xb7e50215 in std::_Rb_tree_increment () from /usr/lib/libstdc++.so.6
#1  0xb7e5024d in std::_Rb_tree_increment () from /usr/lib/libstdc++.so.6
#2  0xb7a8d1d3 in std::_Rb_tree_const_iterator<std::pair<unsigned int const, unsigned int> >::operator++ (this=0xb4aebb48)
    at /usr/include/c++/4.1.2/bits/stl_tree.h:257
#3  0xb76d2c15 in osg::State::popModeList (this=0x8107f10, modeMap=@0x8107fc8, modeList=@0x80603a8)
    at ../../../include/osg/State:1164
#4  0xb76c7673 in osg::State::popStateSet (this=0x8107f10) at ../State.cpp:227
#5  0xb7a48b8d in osg::State::popStateSetStackToSize (this=0x8107f10, size=2) at ../../../include/osg/State:132
#6  0xb7a40784 in osgUtil::RenderBin::drawImplementation (this=0xb4117558, renderInfo=@0xb4aebe4c, previous=@0xb4aec050)
    at ../RenderBin.cpp:462
#7  0xb7a3fba1 in osgUtil::RenderBin::draw (this=0xb4117558, renderInfo=@0xb4aebe4c, previous=@0xb4aec050)
    at ../RenderBin.cpp:370
#8  0xb7a4071e in osgUtil::RenderBin::drawImplementation (this=0x838b018, renderInfo=@0xb4aebe4c, previous=@0xb4aec050)
    at ../RenderBin.cpp:457
#9  0xb7a4e216 in osgUtil::RenderStage::drawImplementation (this=0x838b018, renderInfo=@0xb4aebe4c, previous=@0xb4aec050)
    at ../RenderStage.cpp:1004
#10 0xb7a3fba1 in osgUtil::RenderBin::draw (this=0x838b018, renderInfo=@0xb4aebe4c, previous=@0xb4aec050)
    at ../RenderBin.cpp:370
#11 0xb7a4ec0d in osgUtil::RenderStage::drawInner (this=0x838b018, renderInfo=@0xb4aebe4c, previous=@0xb4aec050,
    doCopyTexture=@0xb4aebe4b) at ../RenderStage.cpp:718
#12 0xb7a50ded in osgUtil::RenderStage::draw (this=0x838b018, renderInfo=@0x838a60c, previous=@0xb4aec050)
    at ../RenderStage.cpp:880
#13 0xb7a5c832 in osgUtil::SceneView::draw (this=0x838a5b0) at ../SceneView.cpp:1309
#14 0xb7dcf423 in ViewerRenderingOperation::operator() (this=0x838b798) at ../Viewer.cpp:191
#15 0xb765822c in osg::GraphicsContext::runOperations (this=0x8078a00) at ../GraphicsContext.cpp:426
#16 0xb7dcae78 in ViewerRunOperations::operator() (this=0x895a720, object=0x8078a00) at ../Viewer.cpp:969
#17 0xb765dddf in osg::OperationsThread::run (this=0x898cf18) at ../GraphicsThread.cpp:290
#18 0xb71b7901 in OpenThreads::ThreadPrivateActions::StartThread () from /usr/local/lib/libOpenThreads.so
#19 0xb66b3112 in start_thread () from /lib/libpthread.so.0
#20 0xb71122ee in clone () from /lib/libc.so.6
(gdb)   
