openframeworks / openframeworks/openFrameworks
segfault in stable on Debian buster
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Just a simple testapp results in:
Program received signal SIGSEGV, Segmentation fault.
0x0000000100000000 in ?? ()
(gdb) bt
#0 0x0000000100000000 in ()
#1 0x00007ffff2ee907d in XML_ParseBuffer () at /lib/x86_64-linux-gnu/libexpat.so.1
#2 0x00007fffe817eb20 in () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#3 0x00007fffe817c669 in () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#4 0x00007fffe817a63d in () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#5 0x00007fffe814e5ee in () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#6 0x00007fffe8149dc4 in () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#7 0x00007fffe814a7ad in () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#8 0x00007ffff64e1b5e in () at /usr/lib/x86_64-linux-gnu/libglfw.so.3
#9 0x00007ffff64e2424 in () at /usr/lib/x86_64-linux-gnu/libglfw.so.3
#10 0x00007ffff64df375 in () at /usr/lib/x86_64-linux-gnu/libglfw.so.3
#11 0x00007ffff64d8fd2 in glfwCreateWindow ()
at /usr/lib/x86_64-linux-gnu/libglfw.so.3
#12 0x00005555557638e8 in ofAppGLFWWindow::setup(ofGLFWWindowSettings const&) (this=0x555555a5e740, _settings=...)
at /home/arnaud/src/openframeworks/libs/openFrameworks/app/ofAppGLFWWindow.cpp:231
#13 0x000055555576310e in ofAppGLFWWindow::setup(ofGLWindowSettings const&) (this=0x555555a5e740, settings=...)
at /home/arnaud/src/openframeworks/libs/openFrameworks/app/ofAppGLFWWindow.cpp:149
#14 0x0000555555767a7f in ofAppBaseGLWindow::setup(ofWindowSettings const&) (this=0x555555a5e740, settings=...)
at /home/arnaud/src/openframeworks/libs/openFrameworks/app/ofAppBaseWindow.h:113
#15 0x0000555555747941 in ofMainLoop::createWindow(ofWindowSettings const&) (this=0x555555a613f0, settings=...)
at /home/arnaud/src/openframeworks/libs/openFrameworks/app/ofMainLoop.cpp:65
#16 0x0000555555760998 in ofCreateWindow(ofWindowSettings const&) (settings=...)
at /home/arnaud/src/openframeworks/libs/openFrameworks/app/ofAppRunner.cpp:222
#17 0x0000555555760925 in ofSetupOpenGL(int, int, ofWindowMode) (w=1024, h=768, screenMode=OF_WINDOW)
at /home/arnaud/src/openframeworks/libs/openFrameworks/app/ofAppRunner.cpp:217
#18 0x00005555555c3d76 in main() ()
at /home/arnaud/src/openframeworks/apps/myApps/example/src/main.cpp:6
Can't really pinpoint what is going wrong in windowP = glfwCreateWindow(settings.getWidth(), settings.getHeight(), settings.title.c_str(), nullptr, sharedContext); but it segfaults in both stable and master. It was working a week ago.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the gdb backtrace and inspect the call to glfwCreateWindow at libs/openFrameworks/app/ofAppGLFWWindow.cpp:231, using the Debian buster environment described. Reproduce with the simple test app from apps/myApps/example/src/main.cpp:6 and compare stable and master; done means identifying and documenting a reproducible cause or confirmed fix for the window-creation segfault.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- computer-graphics, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100