Segmentation fault after fresh build of Paraview 5.8 on Ubuntu 16

Hello,

I just compiled Paraview on our Ubuntu 16.04 server. The build worked fine, but when I try to start Paraview I get the following:

Loguru caught a signal: SIGSEGV
Stack trace:
4 0x7fe03bd10c02 /usr/lib/nvidia-410/libGLX_indirect.so.0(+0x4ec02) [0x7fe03bd10c02]
3 0x7fe0572d414a /usr/lib/nvidia-410/libnvidia-glcore.so.410.78(+0x10ec14a) [0x7fe0572d414a]
2 0x7fe0572d4019 /usr/lib/nvidia-410/libnvidia-glcore.so.410.78(+0x10ec019) [0x7fe0572d4019]
1 0x7fe09702eafa /lib/x86_64-linux-gnu/libc.so.6(+0x14dafa) [0x7fe09702eafa]
0 0x7fe096f164b0 /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7fe096f164b0]
( 1.048s) [paraview ] :0 FATL| Signal: SIGSEGV
Segmentation fault (core dumped)

Seems like there is a problem with the nvidia libraries.

Using CMake 3.16.5, CUDA 10.0, GCC 5.4.0 for c++ code and NVidia driver 410. If more information is needed please let me know.

Any suggestion?
Thanks a lot for your time!

Timo

Since you are compiling ParaView, could you build it in Debug mode and run with gdb ?

Hi Mathieu,

Thanks for the suggestion (I should have though of this on my own I guess).
Here the simple output when compiling with the debug flag and running paraview in gdb. I also did a backtrace to get more info:

GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./paraview...done.
(gdb) run
Starting program: /home/timo/Documents/Git/paraview/built/bin/paraview 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fff9fa1b700 (LWP 6119)]
[New Thread 0x7fff9d91b700 (LWP 6130)]

Thread 1 "paraview" received signal SIGSEGV, Segmentation fault.
__memmove_avx_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:118
118	../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: No such file or directory.
(gdb) Quit
(gdb) backtrace 
#0  __memmove_avx_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:118
#1  0x00007fffb314a019 in ?? () from /usr/lib/nvidia-410/libnvidia-glcore.so.410.78
#2  0x00007fffb314a14a in ?? () from /usr/lib/nvidia-410/libnvidia-glcore.so.410.78
#3  0x00007fff9cbcbc02 in ?? () from /usr/lib/nvidia-410/libGLX_indirect.so.0
#4  0x00007ffff7de768a in call_init (l=0x1024790, argc=argc@entry=1, argv=argv@entry=0x7fffffffd478, 
    env=env@entry=0x7fffffffd488) at dl-init.c:58
#5  0x00007ffff7de77db in call_init (env=0x7fffffffd488, argv=0x7fffffffd478, argc=1, l=<optimized out>) at dl-init.c:30
#6  _dl_init (main_map=main_map@entry=0x1024790, argc=1, argv=0x7fffffffd478, env=0x7fffffffd488) at dl-init.c:120
#7  0x00007ffff7dec8f2 in dl_open_worker (a=a@entry=0x7fffffffb890) at dl-open.c:575
#8  0x00007ffff7de7574 in _dl_catch_error (objname=objname@entry=0x7fffffffb880, 
    errstring=errstring@entry=0x7fffffffb888, mallocedp=mallocedp@entry=0x7fffffffb87f, 
    operate=operate@entry=0x7ffff7dec4e0 <dl_open_worker>, args=args@entry=0x7fffffffb890) at dl-error.c:187
#9  0x00007ffff7debdb9 in _dl_open (file=0x101d810 "libGLX_indirect.so.0", mode=-2147483647, 
    caller_dlopen=0x7ffff079a8fc, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x7fffffffd488)
    at dl-open.c:660
#10 0x00007fffec03cf09 in dlopen_doit (a=a@entry=0x7fffffffbac0) at dlopen.c:66
#11 0x00007ffff7de7574 in _dl_catch_error (objname=0x6f4f10, errstring=0x6f4f18, mallocedp=0x6f4f08, 
    operate=0x7fffec03ceb0 <dlopen_doit>, args=0x7fffffffbac0) at dl-error.c:187
#12 0x00007fffec03d571 in _dlerror_run (operate=operate@entry=0x7fffec03ceb0 <dlopen_doit>, 
    args=args@entry=0x7fffffffbac0) at dlerror.c:163
#13 0x00007fffec03cfa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#14 0x00007ffff079a8fc in ?? () from /usr/lib/nvidia-410/libGLX.so.0
#15 0x00007ffff079b689 in ?? () from /usr/lib/nvidia-410/libGLX.so.0
#16 0x00007ffff0794661 in glXChooseFBConfig () from /usr/lib/nvidia-410/libGLX.so.0
#17 0x00007ffff1b81d58 in vtkXOpenGLRenderWindowTryForFBConfig (DisplayId=0x101b670, drawable_type=1, doublebuff=1, 
    stereo=0, stencil=0, srgb=false) at ../VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:152
#18 0x00007ffff1b81e11 in vtkXOpenGLRenderWindowGetDesiredFBConfig (DisplayId=0x101b670, win_stereo=@0x10196f0: 0, 
    win_doublebuffer=@0x1019674: 1, drawable_type=1, stencil=@0x1019748: 0, srgb=false)
    at ../VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:193
#19 0x00007ffff1b820ba in vtkXOpenGLRenderWindow::GetDesiredVisualInfo (this=0x1019620)
    at ../VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:246
#20 0x00007ffff1b835be in vtkXOpenGLRenderWindow::CreateAWindow (this=0x1019620)
    at ../VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:467
#21 0x00007ffff1b84c07 in vtkXOpenGLRenderWindow::WindowInitialize (this=0x1019620)
    at ../VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:785
#22 0x00007ffff1b84cd0 in vtkXOpenGLRenderWindow::Initialize (this=0x1019620)
    at ../VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:806
#23 0x00007ffff1aac997 in vtkOpenGLRenderWindow::SupportsOpenGL (this=0x10178b0)
    at ../VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx:1877
#24 0x00007fffdd0db7f4 in vtkPVRenderingCapabilitiesInformation::GetLocalCapabilities ()
    at ../Remoting/Views/vtkPVRenderingCapabilitiesInformation.cxx:126
#25 0x00007fffdd0db955 in vtkPVRenderingCapabilitiesInformation::CopyFromObject (this=0xfba840)
    at ../Remoting/Views/vtkPVRenderingCapabilitiesInformation.cxx:178
#26 0x00007ffff44ec0e2 in vtkPVSessionCore::GatherInformationInternal (this=0x9090c0, information=0xfba840, globalid=0)
    at ../Remoting/ServerManager/vtkPVSessionCore.cxx:784
#27 0x00007ffff44ec396 in vtkPVSessionCore::GatherInformation (this=0x9090c0, location=4, information=0xfba840, 
    globalid=0) at ../Remoting/ServerManager/vtkPVSessionCore.cxx:822
#28 0x00007ffff44e7ba2 in vtkPVSessionBase::GatherInformation (this=0xe2e750, location=4, information=0xfba840, 
    globalid=0) at ../Remoting/ServerManager/vtkPVSessionBase.cxx:243
#29 0x00007ffff75d24d9 in pqDefaultViewBehavior::onServerCreation (this=0xe3b830, server=0x2674520)
---Type <return> to continue, or q <return> to quit---
    at ../Qt/ApplicationComponents/pqDefaultViewBehavior.cxx:136
#30 0x00007ffff7544ebe in pqDefaultViewBehavior::qt_static_metacall (_o=0xe3b830, _c=QMetaObject::InvokeMetaMethod, 
    _id=0, _a=0x7fffffffc540)
    at Qt/ApplicationComponents/pqApplicationComponents_autogen/EWIEGA46WW/moc_pqDefaultViewBehavior.cpp:83
#31 0x00007ffff53c0a29 in QMetaObject::activate(QObject*, int, int, void**) () from /opt/qt59/lib/libQt5Core.so.5
#32 0x00007ffff5f3fdf2 in pqServerManagerModel::serverAdded (this=0x9092a0, _t1=0x2674520)
    at Qt/Core/pqCore_autogen/EWIEGA46WW/moc_pqServerManagerModel.cpp:566
#33 0x00007ffff5ff5a5a in pqServerManagerModel::onConnectionCreated (this=0x9092a0, id=1)
    at ../Qt/Core/pqServerManagerModel.cxx:503
#34 0x00007ffff5f3f3b7 in pqServerManagerModel::qt_static_metacall (_o=0x9092a0, _c=QMetaObject::InvokeMetaMethod, 
    _id=36, _a=0x7fffffffc750) at Qt/Core/pqCore_autogen/EWIEGA46WW/moc_pqServerManagerModel.cpp:270
#35 0x00007ffff53c0a29 in QMetaObject::activate(QObject*, int, int, void**) () from /opt/qt59/lib/libQt5Core.so.5
#36 0x00007ffff5f4168c in pqServerManagerObserver::connectionCreated (this=0x90a370, _t1=1)
    at Qt/Core/pqCore_autogen/EWIEGA46WW/moc_pqServerManagerObserver.cpp:280
#37 0x00007ffff5ff9a61 in pqServerManagerObserver::connectionCreated (this=0x90a370, callData=0x903d80)
    at ../Qt/Core/pqServerManagerObserver.cxx:110
#38 0x00007ffff5f40fe5 in pqServerManagerObserver::qt_static_metacall (_o=0x90a370, _c=QMetaObject::InvokeMetaMethod, 
    _id=10, _a=0x7fffffffc9a0) at Qt/Core/pqCore_autogen/EWIEGA46WW/moc_pqServerManagerObserver.cpp:144
#39 0x00007ffff53c0a29 in QMetaObject::activate(QObject*, int, int, void**) () from /opt/qt59/lib/libQt5Core.so.5
#40 0x00007ffff4bf41cc in vtkQtConnection::EmitExecute (this=0x908cd0, _t1=0x903d40, _t2=70, _t3=0x0, _t4=0x903d80, 
    _t5=0x906fa0) at VTK/GUISupport/Qt/GUISupportQt_autogen/EWIEGA46WW/moc_vtkQtConnection.cpp:141
#41 0x00007ffff4c24971 in vtkQtConnection::Execute (this=0x908cd0, caller=0x903d40, e=70, call_data=0x903d80)
    at ../VTK/GUISupport/Qt/vtkQtConnection.cxx:70
#42 0x00007ffff4c24900 in vtkQtConnection::DoCallback (vtk_obj=0x903d40, event=70, client_data=0x908cd0, 
    call_data=0x903d80) at ../VTK/GUISupport/Qt/vtkQtConnection.cxx:62
#43 0x00007fffecaf9235 in vtkCallbackCommand::Execute (this=0x906fa0, caller=0x903d40, event=70, callData=0x903d80)
    at ../VTK/Common/Core/vtkCallbackCommand.cxx:41
#44 0x00007fffecd682d4 in vtkSubjectHelper::InvokeEvent (this=0x909860, event=70, callData=0x903d80, self=0x903d40)
    at ../VTK/Common/Core/vtkObject.cxx:626
#45 0x00007fffecd687f9 in vtkObject::InvokeEvent (this=0x903d40, event=70, callData=0x903d80)
    at ../VTK/Common/Core/vtkObject.cxx:795
#46 0x00007ffff34179ea in vtkProcessModule::RegisterSession (this=0x903d40, session=0xe2e750)
    at ../Remoting/Core/vtkProcessModule.cxx:385
#47 0x00007ffff464e5ff in vtkSMSession::ConnectToSelf (timeout=60) at ../Remoting/ServerManager/vtkSMSession.cxx:292
#48 0x00007ffff5fa1ea8 in pqObjectBuilder::createServer (this=0x906aa0, resource=..., connectionTimeout=60)
    at ../Qt/Core/pqObjectBuilder.cxx:690
#49 0x00007ffff755974d in pqAlwaysConnectedBehavior::serverCheck (this=0xe2c6b0)
    at ../Qt/ApplicationComponents/pqAlwaysConnectedBehavior.cxx:84
#50 0x00007ffff75595d2 in pqAlwaysConnectedBehavior::pqAlwaysConnectedBehavior (this=0xe2c6b0, parentObject=0xe40da0)
    at ../Qt/ApplicationComponents/pqAlwaysConnectedBehavior.cxx:61
#51 0x00007ffff7621290 in pqParaViewBehaviors::pqParaViewBehaviors (this=0xe40da0, mainWindow=0x90c940, 
    parentObject=0x90c940) at ../Qt/ApplicationComponents/pqParaViewBehaviors.cxx:220
#52 0x00000000004092e0 in ParaViewMainWindow::ParaViewMainWindow (this=0x90c940)
    at ../Clients/ParaView/ParaViewMainWindow.cxx:289
#53 0x0000000000412129 in pqparaviewInitializer::Initialize (this=0x7fffffffd2f0, argc=1, argv=0x8c1490)
    at Clients/ParaView/pqparaviewInitializer.cxx:124
#54 0x0000000000411562 in main (argc=1, argv=0x8c1490) at Clients/ParaView/paraview_main.cxx:125
(gdb) 

By the way, I get warnings when running cmake, but I so far ignored this:

CMake Warning at CMake/ParaViewPlugin.cmake:1327 (add_library):
  Cannot generate a safe runtime search path for target
  StreamLinesRepresentation because files in some directories may conflict
  with libraries in implicit directories:

    runtime library [libGL.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/lib/nvidia-410

Thanks a lot for your time!
best,
Timo

Looks like you have a livrary mixup between different version of libgl.
I would suggest to remove fully nvidia driver and reinstall it from scratch.