pcbnew segfaults on footprint search (lp:#1853380)
Original report created by evils (evils)
when searching for a footprint in pcbnew's "add footprint", it segfaults
i encountered this issue on NixOS on kicad 5.1.4, i've since built kicad
from git revision 3be1862
triggering the crash via valgrind is somewhat tricky, most of the time the
search lists results but the footprint preview says "footprint not found"
in which case this it does not segfault.
i've succeeded at this several times and i am under the impression the
address accessed is not always 0x0
here are a few more segfaults caught via just gdb
https://paste.ee/p/tVFgB
included as comments are the gdb bt full and valgrind output for pcbnew
from 3be1862 with the most recent footprints etc for that commit
the .pcbnew-wrapped and all the /nix/store/[hash] stuff is due to this
running on NixOS
i'm fairly sure this issue isn't due to NixOS, due to an anecdotal report
on the freenode #kicad IRC channel of someone experiencing this issue on
debian10 when using xfwm (i'm using i3wm)
further information is available here,
https://github.com/NixOS/nixpkgs/issues/72248
most relevant to my build setup may be this, https://github.com/Evils-
Devils/nixpkgs/tree/kicad-unstable
Application: KiCad
Version: 5.99.0-2019-11-20, debug build
Libraries:
wxWidgets 3.1.2
libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0 nghttp2/1.39.2
Platform: Linux 4.19.80 x86_64, 64 bit, Little endian, wxGTK
Build Info:
Build date: Jan 1 1970 00:00:01
wxWidgets: 3.1.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.67.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.66.0
Compiler: GCC 8.3.0 with C++ ABI 1013
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON
KICAD_STDLIB_DEBUG=ON
KICAD_SANITIZE=OFF
Original tags: pcbnew