eeschema element ad crash with build out of newest sources

Asked by Adam

Hi

After watching cool video on ngspice integration added lately I've build Kicad version from latest sources ( SHA: 5d252639fa5f04fefbd346a6bf4c9213de621044 ) with:

On Ubuntu 16.04 ( Mate )
$ cmake -DCMAKE_BUILD_TYPE=Debug -DKICAD_SPICE=ON -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON && make -j 4

After running eeschema when trying to add an element I've segmentation fault, stack dump from gdb:
(gdb) bt no-filters full
#0 0x00007ffff4be2820 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#1 0x00007ffff4bebd5c in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#2 0x00007ffff4bec08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#3 0x00007ffff568edc0 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#4 0x00007ffff4bd5d25 in g_object_unref () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#5 0x00007ffff4bd40b4 in g_cclosure_marshal_VOID__OBJECTv () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#6 0x00007ffff4bd11d4 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#7 0x00007ffff4beb9a6 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#8 0x00007ffff4bec08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#9 0x00007ffff55c2956 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#10 0x00007ffff55c36ee in gtk_button_set_label () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#11 0x00007ffff71797a9 in wxButton::SetLabel(wxString const&) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
No symbol table info available.
#12 0x00007ffff7178e97 in wxButton::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
No symbol table info available.
#13 0x00007ffff7362a7d in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
No symbol table info available.
#14 0x00007ffff73639c1 in wxLogGui::DoShowMultipleLogMessages(wxArrayString const&, wxArrayInt const&, wxArrayLong const&, wxString const&, int) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
No symbol table info available.
#15 0x00007ffff735e422 in wxLogGui::Flush() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
No symbol table info available.
#16 0x00007ffff6b0c6b1 in wxLog::SetActiveTarget(wxLog*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
No symbol table info available.
#17 0x00007ffff6afc888 in wxEntryCleanup() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
No symbol table info available.
#18 0x00007ffff6afc93c in wxUninitialize() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
No symbol table info available.
#19 0x00007ffff6afdf84 in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#20 0x00000000004368bd in main (argc=1, argv=0x7fffffffddb8) at /home/pholat/workspace/kicad-source-mirror/common/single_top.cpp:206

Are there any special libraries dependencies on libraries used for build? When running kicad from nightly build I do not get such issue, I can't add spice elements to schematic though from spice library as in video: https://www.youtube.com/watch?v=2WDPzW6DGzQ and believe that it's because -DKICAD_SPICE=ON is not selected for Ubuntu for nigtly.

I would appreciate any points of what I might have done wrong or suggestions on how could I check it further.

Question information

Language:
English Edit question
Status:
Answered
For:
KiCad Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Maciej Suminski (orsonmmz) said :
#1

Hi Adam,

The crash is fixed one commit later (3afef4e1). The problem is eeschema relies on _pcbnew.kiface to display footprints for selected components. To have it working correctly, you need to either 'make install' or create a symlink to _pcbnew.kiface in the directory with eeschema executable.

Revision history for this message
Guido Trentalancia (guido.trentalancia-deactivatedaccount) said :
#2

As far as I know, it fails to execute the program due to the following SELinux denial and not due to the fact that it cannot find the binary:

type=AVC msg=audit(1530958805.408:33743): avc: denied { execstack } for pid=16874 comm="kicad" scontext=user_u:user_r:user_t:s0 tcontext=user_u:user_r:user_t:s0 tclass=process permissive=0

It is missing the SELinux "execstack" permission.

Revision history for this message
Guido Trentalancia (guido.trentalancia-deactivatedaccount) said :
#3

See newly opened specific bug: https://bugs.launchpad.net/kicad/+bug/1780549

Can you help with this problem?

Provide an answer of your own, or ask Adam for more information if necessary.

To post a message you must log in.