eeschema segfaults when clicking on bus label
Description
As soon as I somehow try to select one of the local bus labels
It results in a segfault:
Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x00007fffced62872 in std::_Hashtable<wxString, std::pair<wxString const, std::shared_ptr<BUS_ALIAS> >, std::allocator<std::pair<wxString const, std::shared_ptr<BUS_ALIAS> > >, std::__detail::_Select1st, std::equal_to<wxString>, std::hash<wxString>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::count(wxString const&) const ()
from /usr/bin/_eeschema.kiface
(gdb) bt
#0 0x00007fffced62872 in std::_Hashtable<wxString, std::pair<wxString const, std::shared_ptr<BUS_ALIAS> >, std::allocator<std::pair<wxString const, std::shared_ptr<BUS_ALIAS> > >, std::__detail::_Select1st, std::equal_to<wxString>, std::hash<wxString>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::count(wxString const&) const ()
at /usr/bin/_eeschema.kiface
#1 0x00007fffced52809 in CONNECTION_GRAPH::GetBusAlias(wxString const&) () at /usr/bin/_eeschema.kiface
#2 0x00007fffcee0e8ee in SCH_CONNECTION::AppendInfoToMsgPanel(std::vector<MSG_PANEL_ITEM, std::allocator<MSG_PANEL_ITEM> >&) const ()
at /usr/bin/_eeschema.kiface
#3 0x00007fffcee0fd3f in SCH_CONNECTION::AppendDebugInfoToMsgPanel(std::vector<MSG_PANEL_ITEM, std::allocator<MSG_PANEL_ITEM> >&) const ()
at /usr/bin/_eeschema.kiface
#4 0x00007fffceeb3808 in SCH_TEXT::GetMsgPanelInfo(EDA_DRAW_FRAME*, std::vector<MSG_PANEL_ITEM, std::allocator<MSG_PANEL_ITEM> >&) ()
at /usr/bin/_eeschema.kiface
#5 0x00007fffcef0fc5d in EE_INSPECTION_TOOL::UpdateMessagePanel(TOOL_EVENT const&) () at /usr/bin/_eeschema.kiface
#6 0x00007fffcf1987e4 in COROUTINE<int, TOOL_EVENT const&>::callerStub(long) () at /usr/bin/_eeschema.kiface
#7 0x000055555572b571 in make_fcontext ()
#8 0x0000000000000000 in ()
The label can be selected when the selection contains some other element. Unselecting other elements from the selection until only one bus label remains results in the crash. This happens here in a in hierarchical sheet. Not sure if that matters. Haven't tried in non-hierarchical sheet.
KiCad Version
Application: KiCad
Version: 5.99.0-unknown-r18789-f5842156, debug build
Libraries:
wxWidgets 3.0.4
libcurl/7.66.0 OpenSSL/1.1.1g-fips zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.4/openssl/zlib nghttp2/1.41.0
Platform: Linux 5.6.16-200.fc31.x86_64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
Build date: Jun 28 2020 17:40:20
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.69.0
OCC: 7.4.0
Curl: 7.66.0
Compiler: GCC 9.3.1 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_OCC=ON
KICAD_SPICE=ON
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE=OFF