kicad segmentation fault when trying to execute auxiliary kicad programs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
KiCad version 4 (4.0.7) always crashes with a segmentation fault while trying to execute auxiliary programs such as eeschema.
The problem is due to the following SELinux permission denial:
type=AVC msg=audit(
The main KiCad process crashes because it cannot obtain the SELinux "execstack" permission (a permission which is often forbidden by SELinux policies because it is rather "dangerous" in terms of security).
The following KiCad 4 executables are currently marked as requiring to execute code on the stack:
_cvpcb.kiface
_eeschema.kiface
_gerbview.kiface
_pcbnew.kiface
_pl_editor.kiface
KiCad version 5 (5.0.0-
Changed in kicad: | |
assignee: | nobody → Guido Trentalancia (guido.trentalancia) |
tags: | added: selinux |
Changed in kicad: | |
assignee: | Guido Trentalancia (guido.trentalancia) → nobody |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Here is the stack trace:
Thread 1 "kicad" received signal SIGSEGV, Segmentation fault. emit_unlocked_ R () from /usr/lib64/ libgobject- 2.0.so. 0 emit_unlocked_ R () at /usr/lib64/ libgobject- 2.0.so. 0 emit_valist () at /usr/lib64/ libgobject- 2.0.so. 0 libgobject- 2.0.so. 0 libgtk- 3.so.0 libgobject- 2.0.so. 0 remove () at /usr/lib64/ libgtk- 3.so.0 construct_ child () at /usr/lib64/ libgtk- 3.so.0 set_label () at /usr/lib64/ libgtk- 3.so.0 :SetLabel( wxString const&) () at /usr/lib64/ libwx_gtk3u_ core-3. 0.so.0 :Create( wxWindow* , int, wxString const&, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&) () at /usr/lib64/ libwx_gtk3u_ core-3. 0.so.0 :wxLogDialog( wxWindow* , wxArrayString const&, wxArrayInt const&, wxArrayLong const&, wxString const&, long) () libwx_gtk3u_ core-3. 0.so.0 libwx_gtk3u_ core-3. 0.so.0 SetActiveTarget (wxLog* ) () at /usr/lib64/ libwx_baseu- 3.0.so. 0 libwx_baseu- 3.0.so. 0 libwx_baseu- 3.0.so. 0 libwx_baseu- 3.0.so. 0
0x00007ffff1fb42c8 in signal_
(gdb) where
#0 0x00007ffff1fb42c8 in signal_
#1 0x00007ffff1fbf186 in g_signal_
#2 0x00007ffff1fbfc12 in g_signal_emit () at /usr/lib64/
#3 0x00007ffff3b123ec in gtk_widget_dispose () at /usr/lib64/
#4 0x00007ffff1fa6ea3 in g_object_unref () at /usr/lib64/
#5 0x00007ffff388c639 in gtk_container_
#6 0x00007ffff384a7ce in gtk_button_
#7 0x00007ffff384be24 in gtk_button_
#8 0x00007ffff6cd9b21 in wxButton:
#9 0x00007ffff6cd917a in wxButton:
#10 0x00007ffff6ec6c19 in wxLogDialog:
at /usr/lib64/
#11 0x00007ffff6ec811d in wxLogGui::Flush() () at /usr/lib64/
#12 0x00007ffff63fc091 in wxLog::
#13 0x00007ffff63ea048 in wxEntryCleanup() () at /usr/lib64/
#14 0x00007ffff63ea17c in wxUninitialize() () at /usr/lib64/
#15 0x00007ffff63eaf7a in wxEntry(int&, wchar_t**) () at /usr/lib64/
#16 0x000000000043b9ce in ()
#17 0x00007ffff40c9b67 in __libc_start_main () at /lib64/libc.so.6
#18 0x000000000044051a in _start ()