Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564978 - media-gfx/freecad-0.15.4671 crashes in libX11 when qtgui:4 and qtopengl:4 are compiled with egl
Summary: media-gfx/freecad-0.15.4671 crashes in libX11 when qtgui:4 and qtopengl:4 are...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
: 568872 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-06 00:07 UTC by Konstantin Münning
Modified: 2017-12-30 00:37 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Münning 2015-11-06 00:07:44 UTC
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.
Comment 1 Alexander E. Patrakov 2015-12-13 17:36:52 UTC
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.
Comment 2 Maciej S. Szmigiero 2016-05-05 14:21:49 UTC
(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.
Comment 3 Andreas Sturmlechner gentoo-dev 2017-12-30 00:25:47 UTC
This was silently fixed in git commit 8617c76a7dfd76788e943867a4101f7c68fb10f0, no current freecad version allows to build with +egl.
Comment 4 Andreas Sturmlechner gentoo-dev 2017-12-30 00:37:31 UTC
*** Bug 568872 has been marked as a duplicate of this bug. ***