kicad crash when search window is closed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
High
|
Wayne Stambaugh |
Bug Description
EEschema causes a seg fault for me, if I
1. add a new component to a schematic (I used ICM7209)
2. search for that component ("U?") (leave search window open!)
3. edit component, add new field with some value (like "Feld4", "test"), OK
4. Close search window
5. KiCad crashes for me
I'm using 4.0.0-0rc1.
Here a backtrace (the debug symbols from "kicad-dbg" didn't work for me):
#0 0x00007ffff4d55766 in ?? () from /usr/lib/
#1 0x00007fffd3adf718 in SCH_FIND_
at /build/
#2 0x00007fffd3a2d6b3 in SCH_EDIT_
at /build/
#3 0x00007fffd3a2ef1b in SCH_EDIT_
at /build/
#4 0x00007fffd3b25770 in SCH_EDIT_
at /build/
#5 0x00007ffff670871e in wxAppConsoleBas
() from /usr/lib/
#6 0x00007ffff68a3f08 in wxEvtHandler:
#7 0x00007ffff68a400b in wxEventHashTabl
from /usr/lib/
#8 0x00007ffff68a43b8 in wxEvtHandler:
from /usr/lib/
#9 0x00007fffd3bbb73c in EDA_BASE_
at /build/
#10 0x00007ffff68a41c3 in wxEvtHandler:
from /usr/lib/
#11 0x00007ffff68a44a5 in wxEvtHandler:
from /usr/lib/
#12 0x00007fffd3a0533c in DIALOG_
at /build/
#13 0x00007ffff670871e in wxAppConsoleBas
() from /usr/lib/
#14 0x00007ffff68a3f08 in wxEvtHandler:
#15 0x00007ffff68a42f6 in wxEvtHandler:
from /usr/lib/
#16 0x00007ffff68a437e in wxEvtHandler:
from /usr/lib/
#17 0x00007ffff68a4443 in wxEvtHandler:
from /usr/lib/
#18 0x00007ffff68a44a5 in wxEvtHandler:
from /usr/lib/
#19 0x00007ffff68a4217 in wxEvtHandler:
from /usr/lib/
#20 0x00007ffff7019dd7 in wxWindowBase:
from /usr/lib/
#21 0x00007ffff6df8114 in ?? () from /usr/lib/
#22 0x00007ffff5376d1f in ?? () from /usr/lib/
#23 0x00007ffff4d4c2d5 in g_closure_invoke () from /usr/lib/
#24 0x00007ffff4d5e03c in ?? () from /usr/lib/
#25 0x00007ffff4d661a5 in g_signal_
#26 0x00007ffff4d668ff in g_signal_emit () from /usr/lib/
#27 0x00007ffff548e61c in ?? () from /usr/lib/
#28 0x00007ffff5375a41 in gtk_main_do_event () from /usr/lib/
#29 0x00007ffff4fe8bac in ?? () from /usr/lib/
#30 0x00007ffff4606c3d in g_main_
#31 0x00007ffff4606f20 in ?? () from /lib/x86_
#32 0x00007ffff4607242 in g_main_loop_run () from /lib/x86_
#33 0x00007ffff5374857 in gtk_main () from /usr/lib/
#34 0x00007ffff6dd9745 in wxGUIEventLoop:
#35 0x00007ffff674e750 in wxEventLoopBase
#36 0x00007ffff670aa46 in wxAppConsoleBas
#37 0x00000000004427c9 in ?? ()
#38 0x00007ffff67a5660 in wxEntry(int&, wchar_t**) () from /usr/lib/
#39 0x0000000000421a6e in ?? ()
#40 0x00007ffff58afa40 in __libc_start_main (main=0x421a40, argc=1, argv=0x7fffffff
init=<optimized out>, fini=<optimized out>, rtld_fini=
at libc-start.c:289
#41 0x0000000000425fd9 in _start ()
Related branches
Changed in kicad: | |
assignee: | nobody → Wayne Stambaugh (stambaughw) |
status: | Confirmed → Fix Committed |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
I can confirm this. It does not happen in *every* case, but happened for me on a new document.
Don't have time to go fixing this at the moment, but here is a backtrace with more info:
Program received signal SIGSEGV, Segmentation fault. COLLECTOR: :GetText (this=0x7af1b8) at /home/cmp/ git/kicad/ eeschema/ sch_collectors. cpp:433 51615, m_impl = L"/", m_convertedToChar = {m_str = 0x0, m_len = 140737073960963}}, m_parent = 0x1763790} 51615, m_impl = L"", m_convertedToChar = {m_str = 0x0, m_len = 140737488340680}} FRAME:: updateFindRepla ceView (this=0x7ae8e0, aEvent=...) at /home/cmp/ git/kicad/ eeschema/ find.cpp: 430 51615, m_impl = L"", m_convertedToChar = {m_str = 0x0, m_len = 140737070429452}} 51615, m_impl = L"/", m_convertedToChar = {m_str = 0x0, m_len = 0}}, m_parent = 0x1763790} FRAME:: OnFindSchematic Item (this=0x7ae8e0, aEvent=...) at /home/cmp/ git/kicad/ eeschema/ find.cpp: 346
itemPosition = {x = 0, y = 0} 51615, m_impl = L"", m_convertedToChar = {m_str = 0x0, m_len = 9806416}}
searchCriteria = {<wxFindReplace Data> = {<wxObject> = {<No data fields>}, m_Flags = 2227, m_FindWhat = {static npos = 184467440737095 51615, m_impl = L"U?A", m_convertedToChar = {m_str = 0x0, m_len = 0}}, m_ReplaceWith = {
static npos = 184467440737095 51615, m_impl = L"", m_convertedToChar = {m_str = 0x0, m_len = 0}}}, <No data fields>} 51615, m_impl = L"", m_convertedToChar = {m_str = 0x0, m_len = 1296236544}}, m_parent = 0x0} FRAME:: OnFindDialogClo se (this=0x7ae8e0, event=...) at /home/cmp/ git/kicad/ eeschema/ schframe. cpp:887 e::CallEventHan dler(wxEvtHandl er*, wxEventFunctor&, wxEvent&) const () from /usr/lib/ libwx_baseu- 3.0.so. 0 :ProcessEventIf MatchesId( wxEventTableEnt ryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/ libwx_baseu- 3.0.so. 0 e::HandleEvent( wxEvent& , wxEvtHandler*) () from /usr/lib/ libwx_baseu- 3.0.so. 0
0x0000000000000021 in ?? ()
(gdb) bt full
#0 0x0000000000000021 in ?? ()
No symbol table info available.
#1 0x00007fffe72dd3c4 in SCH_FIND_
data = {m_position = {x = 5525, y = 4028}, m_sheetPath = {static npos = 184467440737095
foundItem = 0x154c110
msg = {static npos = 184467440737095
#2 0x00007fffe7241ad4 in SCH_EDIT_
sheet = 0x7fffffffc680
item = 0x380
msg = {static npos = 184467440737095
schematic = {m_list = 0x737120, m_count = 1, m_index = 1, m_isRootSheet = true, m_currList = {m_sheets = {0x8371e0, 0x0 <repeats 31 times>}, m_numSheets = 0}}
data = {m_position = {x = 5525, y = 4028}, m_sheetPath = {static npos = 184467440737095
warpCursor = true
#3 0x00007fffe72417cb in SCH_EDIT_
schematic = {m_list = 0x831990, m_count = 1, m_index = 1, m_isRootSheet = true, m_currList = {m_sheets = {0x8371e0, 0x0 <repeats 31 times>}, m_numSheets = 0}}
msg = {static npos = 184467440737095
data = {m_position = {x = -1, y = -1}, m_sheetPath = {static npos = 184467440737095
#4 0x00007fffe7333592 in SCH_EDIT_
No locals.
#5 0x00007ffff631893e in wxAppConsoleBas
No symbol table info available.
#6 0x00007ffff64b02e8 in wxEvtHandler:
No symbol table info available.
#7 0x00007ffff64b03eb in wxEventHashTabl
No symbol table info available.
#8 0x00007ffff...