Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Segmentation Fault #2

@stoiver

Description

@stoiver

I have installed anuga-viewer on ubuntu 16.04.

The viewer seems to work fine on most sww files, but I have a large sww file which is 1.7 GB (output of the towadgi validation test), which fails with a segmentation fault at the 129,000 sec timestep.

(This worked fine on Ubuntu 14.04)

Using gdb and valgrind doesn't give much information, just crashing when a new thread (Thread 9) is created.

Here is the backtrace:

(gdb) run Towradgi_historic_flood.sww
Starting program: /home/steve/anuga-viewer/bin/anuga_viewer Towradgi_historic_flood.sww
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdd422700 (LWP 3177)]
[New Thread 0x7fffdcc21700 (LWP 3178)]
[New Thread 0x7fffda420700 (LWP 3179)]
[New Thread 0x7fffd7c1f700 (LWP 3180)]
[New Thread 0x7fffd541e700 (LWP 3181)]
[New Thread 0x7fffd2c1d700 (LWP 3182)]
[New Thread 0x7fffd041c700 (LWP 3183)]
SWOLLEN_BINDIR = /home/steve/anuga-viewer/bin
FONT_PATH = /home/steve/anuga-viewer/bin/fonts/arial.ttf
sky texture path: /home/steve/anuga-viewer/bin/../images/sky_small.jpg
[New Thread 0x7fffc8719700 (LWP 3185)]

Thread 9 "anuga_viewer" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffc8719700 (LWP 3185)]
0x00007fffca840341 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so

(gdb) backtrace
#0  0x00007fffca840341 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#1  0x00007fffca6e4830 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#2  0x00007fffca840ac4 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#3  0x00007ffff7aaf7a0 in osg::DrawElementsUInt::draw(osg::State&, bool) const ()
   from /usr/lib/x86_64-linux-gnu/libosg.so.100
#4  0x00007ffff7a37488 in osg::Geometry::drawImplementation(osg::RenderInfo&) const ()
   from /usr/lib/x86_64-linux-gnu/libosg.so.100
#5  0x00007ffff7102380 in osgUtil::RenderLeaf::render(osg::RenderInfo&, osgUtil::RenderLeaf*) ()
   from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
#6  0x00007ffff70fc695 in osgUtil::RenderBin::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&) ()
   from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
#7  0x00007ffff7107ed7 in osgUtil::RenderStage::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&) ()
   from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
#8  0x00007ffff7106cd2 in osgUtil::RenderStage::drawInner(osg::RenderInfo&, osgUtil::RenderLeaf*&, bool&) ()
   from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
#9  0x00007ffff7108c7f in osgUtil::RenderStage::draw(osg::RenderInfo&, osgUtil::RenderLeaf*&) ()
   from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
#10 0x00007ffff7110db7 in osgUtil::SceneView::draw() () from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
#11 0x00007ffff6af103f in osgViewer::Renderer::draw() () from /usr/lib/x86_64-linux-gnu/libosgViewer.so.100
#12 0x00007ffff7a57d49 in osg::GraphicsContext::runOperations() () from /usr/lib/x86_64-linux-gnu/libosg.so.100
#13 0x00007ffff7aa7bbf in osg::OperationThread::run() () from /usr/lib/x86_64-linux-gnu/libosg.so.100
#14 0x00007ffff7a596f8 in osg::GraphicsThread::run() () from /usr/lib/x86_64-linux-gnu/libosg.so.100
#15 0x00007ffff18336c8 in OpenThreads::ThreadPrivateActions::StartThread(void*) ()
   from /usr/lib/x86_64-linux-gnu/libOpenThreads.so.20
#16 0x00007ffff0d7f6ba in start_thread (arg=0x7fffc8719700) at pthread_create.c:333
#17 0x00007ffff1b3e3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions