Discussion:
[kicad-users] segfault building from source
David Gravereaux davygrvy@pobox.com [kicad-users]
2017-04-01 01:15:43 UTC
Permalink
i broke it, not sure how..
this is after a 'sudo make install'

$ gdb eeschema
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
....
Reading symbols from eeschema...done.
(gdb) run
Starting program: /usr/local/bin/eeschema
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Gtk-Message: Failed to load module "overlay-scrollbar"
[New Thread 0x7fffeb3dc700 (LWP 22552)]
[New Thread 0x7fffea7b9700 (LWP 22553)]
[New Thread 0x7fffe9fb8700 (LWP 22554)]
06:02:16 PM: Debug: Failed to connect to session manager:
SESSION_MANAGER environment variable not defined
06:02:18 PM: Debug: kiface SEARCH_STACK:
06:02:18 PM: Debug: [ 0]:/usr/local/share/kicad/library
06:02:18 PM: Debug: [ 1]:/usr/local/share/kicad/template
06:02:18 PM: Debug: [ 2]:/usr/local/share
06:02:18 PM: Debug: Unrecognized accel key 'bksp', accel string ignored.
copy_pro_file_template: destination is empty.
copy_pro_file_template: destination is empty.
wxFrame 14SCH_EDIT_FRAME : disabled
wxFrame 14SCH_EDIT_FRAME : enabled
LoadAllLibraries: lib_names:
Oscillators
interface
bbd
sensors
gennum
switches
supertex
dsp
contrib
modules
power
microchip_pic24mcu
motor_drivers
opto
cypress
philips
microchip_dspic33dsc
microcontrollers
digital-audio
powerint
dc-dc
wiznet
texas
ESD_Protection
onsemi
elec-unifil
diode
graphic
microchip_pic18mcu
maxim
display
microchip_pic32mcu
linear
Zilog
Lattice
hc11
Altera
actel
motorola
atmel
Worldsemi
analog_switches
stm32
nordicsemi
transf
cmos_ieee
references
microchip_pic16mcu
microchip
memory
rfcom
logo
motors
microchip_pic12mcu
intel
transistors
analog_devices
regul
relays
Xicor
Power_Management
74xgxx
ftdi
74xx
mechanical
valves
conn
brooktre
cmos4000
silabs
triac_thyristor
adc-dac
allegro
battery_management
microchip_pic10mcu
nxp
bosch
leds
zetex
pspice
nxp_armmcu
video
ac-dc
msp430
audio
xilinx
stm8
siliconi
ttl_ieee
device
ShowQuasiModal: optimal parent: 14SCH_EDIT_FRAME
wxFrame 14SCH_EDIT_FRAME : disabled
wxFrame 14SCH_EDIT_FRAME : enabled

Thread 1 "eeschema" received signal SIGSEGV, Segmentation fault.
0x00007ffff4be3820 in ?? () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
(gdb) where
#0 0x00007ffff4be3820 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#1 0x00007ffff4becd5c in g_signal_emit_valist ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#2 0x00007ffff4bed08f in g_signal_emit ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#3 0x00007ffff568fdc0 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4 0x00007ffff4bd6d25 in g_object_unref ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5 0x00007ffff4bd50b4 in g_cclosure_marshal_VOID__OBJECTv ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6 0x00007ffff4bd21d4 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7 0x00007ffff4bec9a6 in g_signal_emit_valist ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8 0x00007ffff4bed08f in g_signal_emit ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff55c3956 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#10 0x00007ffff55c46ee in gtk_button_set_label ()
from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#11 0x00007ffff71797a9 in wxButton::SetLabel(wxString const&) ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#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
#13 0x00007ffff7362a7d in ?? ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#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
#15 0x00007ffff735e422 in wxLogGui::Flush() ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#16 0x00007ffff6b0c6b1 in wxLog::SetActiveTarget(wxLog*) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#17 0x00007ffff6afc888 in wxEntryCleanup() ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#18 0x00007ffff6afc93c in wxUninitialize() ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#19 0x00007ffff6afdf84 in wxEntry(int&, wchar_t**) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#20 0x00000000004367dd in main (argc=1, argv=0x7fffffffdf08)
at /home/davygrvy/build/kicad/common/single_top.cpp:205
(gdb)
David Gravereaux davygrvy@pobox.com [kicad-users]
2017-04-01 01:20:43 UTC
Permalink
this happens when i try to add a component
Levente Kovacs leventelist@gmail.com [kicad-users]
2017-04-01 10:55:39 UTC
Permalink
On Fri, 31 Mar 2017 18:20:43 -0700
Post by David Gravereaux ***@pobox.com [kicad-users]
this happens when i try to add a component
You might have some leftovers from other istallations. Do you have the WX
stuff from your distro, or did you compiled that too?


Lev
David Gravereaux davygrvy@pobox.com [kicad-users]
2017-04-01 18:10:06 UTC
Permalink
Post by Levente Kovacs ***@gmail.com [kicad-users]
On Fri, 31 Mar 2017 18:20:43 -0700
Post by David Gravereaux ***@pobox.com [kicad-users]
this happens when i try to add a component
You might have some leftovers from other istallations. Do you have the WX
stuff from your distro, or did you compiled that too?
Distro provided. After adding debug symbols for
libwxbase3.0-0v5-dbg:amd64 (3.0.2+dfsg-1.3ubuntu0.1) the component
browser now opens without crashing

I added a few more more wx packages also that cmake wasn't requiring.

It seems to be working
David Gravereaux davygrvy@pobox.com [kicad-users]
2017-04-01 18:41:03 UTC
Permalink
Post by David Gravereaux ***@pobox.com [kicad-users]
I added a few more more wx packages also that cmake wasn't requiring.
Install: libwxgtk3.0-0v5-dbg:amd64 (3.0.2+dfsg-1.3ubuntu0.1),
python-wxgtk3.0-dev:amd64 (3.0.2.0+dfsg-1build1), wx3.0-doc:amd64
(3.0.2+dfsg-1.3ubuntu0.1), freeglut3:amd64 (2.8.1-2, automatic),
libwxgtk-media3.0-0v5:amd64 (3.0.2+dfsg-1.3ubuntu0.1),
libwxgtk-media3.0-dev:amd64 (3.0.2+dfsg-1.3ubuntu0.1),
libwxbase3.0-0v5-dbg:amd64 (3.0.2+dfsg-1.3ubuntu0.1),
python3-opengl:amd64 (3.0.2-1), libwxgtk-media3.0-0v5-dbg:amd64
(3.0.2+dfsg-1.3ubuntu0.1), python-wxtools:amd64 (3.0.2.0+dfsg-1build1)

maybe one of these are part of the requirements
Maciej Suminski maciej.suminski@cern.ch [kicad-users]
2017-04-02 14:52:35 UTC
Permalink
Hi David,

What revision do you use? There were a few bugs recently fixed that
showed similar symptoms. You may try to update the sources.

If this is the newest revision, please fill out a bug report.

Regards,
Orson
Post by David Gravereaux ***@pobox.com [kicad-users]
i broke it, not sure how..
this is after a 'sudo make install'
$ gdb eeschema
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
....
Reading symbols from eeschema...done.
(gdb) run
Starting program: /usr/local/bin/eeschema
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Gtk-Message: Failed to load module "overlay-scrollbar"
[New Thread 0x7fffeb3dc700 (LWP 22552)]
[New Thread 0x7fffea7b9700 (LWP 22553)]
[New Thread 0x7fffe9fb8700 (LWP 22554)]
SESSION_MANAGER environment variable not defined
06:02:18 PM: Debug: [ 0]:/usr/local/share/kicad/library
06:02:18 PM: Debug: [ 1]:/usr/local/share/kicad/template
06:02:18 PM: Debug: [ 2]:/usr/local/share
06:02:18 PM: Debug: Unrecognized accel key 'bksp', accel string ignored.
copy_pro_file_template: destination is empty.
copy_pro_file_template: destination is empty.
wxFrame 14SCH_EDIT_FRAME : disabled
wxFrame 14SCH_EDIT_FRAME : enabled
Oscillators
interface
bbd
sensors
gennum
switches
supertex
dsp
contrib
modules
power
microchip_pic24mcu
motor_drivers
opto
cypress
philips
microchip_dspic33dsc
microcontrollers
digital-audio
powerint
dc-dc
wiznet
texas
ESD_Protection
onsemi
elec-unifil
diode
graphic
microchip_pic18mcu
maxim
display
microchip_pic32mcu
linear
Zilog
Lattice
hc11
Altera
actel
motorola
atmel
Worldsemi
analog_switches
stm32
nordicsemi
transf
cmos_ieee
references
microchip_pic16mcu
microchip
memory
rfcom
logo
motors
microchip_pic12mcu
intel
transistors
analog_devices
regul
relays
Xicor
Power_Management
74xgxx
ftdi
74xx
mechanical
valves
conn
brooktre
cmos4000
silabs
triac_thyristor
adc-dac
allegro
battery_management
microchip_pic10mcu
nxp
bosch
leds
zetex
pspice
nxp_armmcu
video
ac-dc
msp430
audio
xilinx
stm8
siliconi
ttl_ieee
device
ShowQuasiModal: optimal parent: 14SCH_EDIT_FRAME
wxFrame 14SCH_EDIT_FRAME : disabled
wxFrame 14SCH_EDIT_FRAME : enabled
Thread 1 "eeschema" received signal SIGSEGV, Segmentation fault.
0x00007ffff4be3820 in ?? () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
(gdb) where
#0 0x00007ffff4be3820 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#1 0x00007ffff4becd5c in g_signal_emit_valist ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#2 0x00007ffff4bed08f in g_signal_emit ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#3 0x00007ffff568fdc0 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4 0x00007ffff4bd6d25 in g_object_unref ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5 0x00007ffff4bd50b4 in g_cclosure_marshal_VOID__OBJECTv ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6 0x00007ffff4bd21d4 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7 0x00007ffff4bec9a6 in g_signal_emit_valist ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8 0x00007ffff4bed08f in g_signal_emit ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff55c3956 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#10 0x00007ffff55c46ee in gtk_button_set_label ()
from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#11 0x00007ffff71797a9 in wxButton::SetLabel(wxString const&) ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#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
#13 0x00007ffff7362a7d in ?? ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#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
#15 0x00007ffff735e422 in wxLogGui::Flush() ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#16 0x00007ffff6b0c6b1 in wxLog::SetActiveTarget(wxLog*) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#17 0x00007ffff6afc888 in wxEntryCleanup() ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#18 0x00007ffff6afc93c in wxUninitialize() ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#19 0x00007ffff6afdf84 in wxEntry(int&, wchar_t**) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#20 0x00000000004367dd in main (argc=1, argv=0x7fffffffdf08)
at /home/davygrvy/build/kicad/common/single_top.cpp:205
(gdb)
Loading...