When dev/qtgui:4 and dev/qtopengl:4 are compiled with egl use flag media-gfx/freecad-0.15.4671 crashes in libX11 when opening a CAD file or a blank new document: [37887.654164] FreeCAD[28055]: segfault at e0 ip 00007f875e44a7b0 sp 00007ffcb36c41d8 error 4 in libX11.so.6.3.0[7f875e41a000+135000] With qtgui:4 -egl and qtopengl:4 -egl freecad runs as expected. So changing ebuild's COMMON_DEPEND to list dev-qt/qtgui:4[-egl] dev-qt/qtopengl:4[-egl] until this is fixed (upstream?) should avoid that problem.
This also affects media-video/bino-1.6.1-r1. Segfaults in XQueryExtension() if qtgui and qtopengl are compiled with the "egl" flag, works fine without.
(In reply to Konstantin Münning from comment #0) > When dev/qtgui:4 and dev/qtopengl:4 are compiled with egl use flag > media-gfx/freecad-0.15.4671 crashes in libX11 when opening a CAD file or a > blank new document. (..) > With qtgui:4 -egl and qtopengl:4 -egl freecad runs as expected. So changing > ebuild's COMMON_DEPEND to list dev-qt/qtgui:4[-egl] dev-qt/qtopengl:4[-egl] > until this is fixed (upstream?) should avoid that problem. I can confirm this bug is present. Looks like FreeCAD uses Coin3D functions that require presence of current GLX context, but probably relies on Qt to actually attach it. However, Qt with EGL doesn't attach GLX context so bad things happen.
This was silently fixed in git commit 8617c76a7dfd76788e943867a4101f7c68fb10f0, no current freecad version allows to build with +egl.
*** Bug 568872 has been marked as a duplicate of this bug. ***