Comment 17 for bug 1821909

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I can reproduce this every time with the latest steps. Here is a full back trace from gdb:

Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000080795252 in KIGFX::VIEW_GROUP::ViewDraw (this=0x1ecb8668,
    aLayer=133, aView=0x143352f0)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view_group.cpp:125
125 item->ViewGetLayers( item_layers, item_layers_count );
(gdb) bt
#0 0x0000000080795252 in KIGFX::VIEW_GROUP::ViewDraw (this=0x1ecb8668,
    aLayer=133, aView=0x143352f0)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view_group.cpp:125
#1 0x000000008079315b in KIGFX::VIEW::draw (this=0x143352f0, aItem=
    0x1ecb8668, aLayer=133, aImmediate=false)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view.cpp:1049
#2 0x0000000080933cf2 in KIGFX::VIEW::drawItem::operator() (this=0x849ccf0,
    aItem=0x1ecb8668)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view.cpp:980
#3 0x000000008093bf6d in RTree<KIGFX::VIEW_ITEM*, int, 2, double, 8, 4>::Search<KIGFX::VIEW::drawItem> (this=0x143836d0, a_node=0x14383720,
    a_rect=0x849cc40, a_visitor=..., a_foundCount=@0x849cc3c: 0)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/include/geometry/rtree.h:499
#4 0x000000008093c03b in RTree<KIGFX::VIEW_ITEM*, int, 2, double, 8, 4>::Search<KIGFX::VIEW::drawItem> (this=0x143836d0, a_min=0x849cca8, a_max=0x849cca0,
    a_visitor=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/include/geometry/rtree.h:154
#5 0x000000008092f274 in KIGFX::VIEW_RTREE::Query<KIGFX::VIEW::drawItem> (
    this=0x143836d0, aBounds=..., aVisitor=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/include/view/view_rtree.h:98
#6 0x0000000080792fef in KIGFX::VIEW::redrawRect (this=0x143352f0, aRect=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view.cpp:1019
#7 0x00000000807936a2 in KIGFX::VIEW::Redraw (this=0x143352f0)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view.cpp:1163
#8 0x00000000807d8134 in EDA_DRAW_PANEL_GAL::onPaint (this=0x13152640)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/draw_panel_gal.cpp:208
#9 0x000000006a4c2f24 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#10 0x000000006a62cd42 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#11 0x000000006a62d14d in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#12 0x000000006a62d1e2 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#13 0x000000006a62d28d in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#14 0x000000006a62d321 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#15 0x000000006a62de09 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#16 0x000000006a4c513f in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#17 0x00000000807a4d91 in TOOL_MANAGER::ProcessEvent (this=0x1ec94650,
    aEvent=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_manager.cpp:786
#18 0x000000008079d31d in CONTEXT_MENU::onMenuEvent (this=0x1edfa110,
    aEvent=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/context_menu.cpp:393
#19 0x000000006a4c2f24 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#20 0x000000006a62cd42 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#21 0x000000006a62d14d in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#22 0x000000006a62d1e2 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#23 0x000000006a62d28d in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#24 0x000000006a62d321 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#25 0x000000006a62d05b in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#26 0x0000000008e11f77 in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#27 0x0000000008ccf065 in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#28 0x0000000008c5c16a in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#29 0x0000000008caea70 in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#30 0x00007ff9ee386d41 in USER32!CallWindowProcW ()
   from C:\WINDOWS\System32\user32.dll
#31 0x00007ff9ee386713 in USER32!DispatchMessageW ()
   from C:\WINDOWS\System32\user32.dll
#32 0x0000000008c587d1 in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#33 0x0000000008e60c30 in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#34 0x000000008089f837 in wxWindowBase::PopupMenu (this=0x13274390,
    menu=0x1edfa110, pos=...)
    at C:/msys64/mingw64/include/wx-3.0/wx/window.h:1216
#35 0x00000000807a4776 in TOOL_MANAGER::dispatchContextMenu (this=0x1ec94650,
    aEvent=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_manager.cpp:704
#36 0x00000000807a5498 in TOOL_MANAGER::processEvent (this=0x1ec94650,
    aEvent=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_manager.cpp:931
#37 0x00000000807a4cd6 in TOOL_MANAGER::ProcessEvent (this=0x1ec94650,
    aEvent=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_manager.cpp:773
#38 0x00000000807a0000 in TOOL_DISPATCHER::handleMouseButton (
    this=0x1ecb7840, aEvent=..., aIndex=1, aMotion=false)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_dispatcher.cpp:241
#39 0x00000000807a048c in TOOL_DISPATCHER::DispatchWxEvent (this=0x1ecb7840,
    aEvent=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_dispatcher.cpp:353
#40 0x00000000807d9279 in EDA_DRAW_PANEL_GAL::OnEvent (this=0x13152640,
    aEvent=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/draw_panel_gal.cpp:455
#41 0x000000006a4c2f24 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#42 0x000000006a62cd42 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#43 0x000000006a62d14d in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#44 0x000000006a62d1e2 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#45 0x000000006a62d28d in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#46 0x000000006a62d321 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#47 0x000000006a62de09 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#48 0x000000006a4c513f in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#49 0x000000006a4fc5f0 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#50 0x000000006a4fc6d0 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#51 0x000000006a4fc339 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#52 0x000000006a4c68fa in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#53 0x00000000004b2d18 in APP_KICAD::OnRun (this=0x9221a20)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/kicad/kicad.cpp:267
#54 0x000000006a547977 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#55 0x0000000008b7a24b in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#56 0x0000000000409ca5 in WinMain (hInstance=0x400000, hPrevInstance=0x0,
    nCmdShow=10)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/kicad/kicad.cpp:298
#57 0x00000000004df962 in main (flags=<optimized out>,
    cmdline=<optimized out>, inst=<optimized out>)
    at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18
#58 0x00000000004013a5 in __tmainCRTStartup ()
    at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:339
#59 0x00000000004014db in WinMainCRTStartup ()
    at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:195