segmentation fault for record on Ubuntu 16.04

Discussion in 'Bug Reports' started by Ethan Brooks, Oct 17, 2017.

  1. If I compile and run record.cpp with the following commands:

    Code:
    g++ -O2 -I../include -L../bin -std=c++11 -mavx -g record.cpp -lmujoco150 -lGL -lglew ../bin/libglfw.so.3 -o ../bin/record
    LD_LIBRARY_PATH=. ./record ../model/humanoid.xml 1 60 rgb.out
    
    I get a seg fault. The core dump is not very helpful:

    Code:
    gdb record core
    ...
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0x00007f246cde0a90 in ?? ()
    
    But using print statements I ascertained that the segfault happens at 'glfwTerminate()'.

    versions:

    Ubuntu 16.04
    mjpro150
    Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
    GeForce GTX 1080 Ti

    ❯ ldd --version
    ldd (Ubuntu GLIBC 2.23-0ubuntu9) 2.23
     
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    This is related to the previous thread. Apparently the latest NVidia drivers for the GTX cards have bugs that are breaking GLFW. Other users are having problems at glfwInit. In your case you can simply comment out glfwTerminate, until the NVidia drivers are fixed. Or try a different version of the video driver.
     
  3. Sounds good. Better a segfault on glfwTerminate than glfwInit.
     
  4. Emo Todorov

    Emo Todorov Administrator Staff Member

    Indeed :) It is still puzzling though that others are getting segfault in glfwInit, with identical configuration to yours as far as I can tell... Which video driver version are you using?
     
  5. ❯ nvidia-smi --query-gpu=driver_version --format=csv,noheader
    384.90