Gerbview segfault on open
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Critical
|
Jon Evans |
Bug Description
GerbView is segfaulting sometimes. This happens about 50% of the time when first running gerbview from the commandline. If it successfully opens, then it is about a 50/50 chance that it segfaults when trying to open a file.
Here is the backtrace from clicking on a file-open button from the toolbar.
This happens on Linux debian, running in OpenGL. It does not happen when running in legacy or fallback.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/
#1 0x00007ffff35533fa in __GI_abort () at abort.c:89
#2 0x00007ffff1f7b5a5 in g_assertion_message () from /lib/x86_
#3 0x00007ffff1f7b63a in g_assertion_
#4 0x00007ffff29ee890 in ?? () from /usr/lib/
#5 0x00007ffff29f758c in g_signal_
from /usr/lib/
#6 0x00007ffff6c6caaf in wxWindow:
from /usr/lib/
#7 0x00007ffff6c6cb5f in wxWindow:
#8 0x00007ffff6d00327 in ?? () from /usr/lib/
#9 0x00007fffdf565adf in GERBVIEW_
at /home/seth/
#10 0x00007fffdf54931e in GERBVIEW_
at /home/seth/
#11 0x00007fffdf52d961 in GERBVIEW_
at /home/seth/
#12 0x00007fffdf54094b in GERBVIEW_
at /home/seth/
#13 0x00007ffff634440e in wxAppConsoleBas
() from /usr/lib/
#14 0x00007ffff64c9ea5 in wxEvtHandler:
#15 0x00007ffff64c9f9b in wxEventHashTabl
from /usr/lib/
#16 0x00007ffff64ca34b in wxEvtHandler:
from /usr/lib/
#17 0x00007fffdf5ee746 in EDA_BASE_
at /home/seth/
#18 0x00007ffff64ca153 in wxEvtHandler:
from /usr/lib/
#19 0x00007ffff64ca435 in wxEvtHandler:
from /usr/lib/
#20 0x00007ffff6e562f8 in wxWindowBase:
from /usr/lib/
#21 0x00007ffff7989878 in wxAuiToolBar:
from /usr/lib/
#22 0x00007ffff634440e in wxAppConsoleBas
() from /usr/lib/
#23 0x00007ffff64c9ea5 in wxEvtHandler:
#24 0x00007ffff64c9f9b in wxEventHashTabl
Application: gerbview
Version: (2018-02-01 revision 3cdc6a58a)-master, debug build
Libraries:
wxWidgets 3.0.2
libcurl/7.52.1 GnuTLS/3.5.8 zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Platform: Linux 4.9.0-5-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.62.0
Curl: 7.52.1
Compiler: GCC 6.3.0 with C++ ABI 1010
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=OFF
Changed in kicad: | |
status: | New → Fix Committed |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Well this is almost certainly due to 14abe8723d but I can't figure out how to reproduce. I also run Linux (Ubuntu) and test a lot with OpenGL but can't see this crash. I'm not sure why it is particular to OpenGL as this is happening in the toolbar creation.