Pcbnew: Crash on redo while moving a footprint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Critical
|
Seth Hillbrand |
Bug Description
When Ctrl-Y is pressed while a footprint is being moved, pcbnew crashes.
Steps to reproduce:
1. Open an existing desing and (m)ove a FP.
2. Press Ctrl-Z (Undo)
3. Start to (m)ove the same or another FP but instead of placing it press Ctrl-Y
-> Crash
Happens with 5.0 branch on Linux and the current nightly (Sep 22) on Windows 10.
Application: kicad
Version: (5.0.1-
Libraries:
wxWidgets 3.0.3
libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.15.0-34-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,
Boost: 1.58.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.47.0
Compiler: GCC 5.4.0 with C++ ABI 1009
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
GDB output:
Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x00007fffe5040b5e in std::vector<
655 { return size_type(
(gdb) bt
#0 0x00007fffe5040b5e in std::vector<
#1 0x00007fffe50409be in PICKED_
#2 0x00007fffe517ae34 in PCB_BASE_
#3 0x00007fffe517ac3b in PCB_BASE_
#4 0x00007ffff648736e in wxAppConsoleBas
#5 0x00007ffff660d4d7 in wxEvtHandler:
#6 0x00007ffff660d5cb in wxEventHashTabl
#7 0x00007ffff660d97b in wxEvtHandler:
#8 0x00007fffe5811ad0 in EDA_BASE_
#9 0x00007ffff660d783 in wxEvtHandler:
#10 0x00007ffff660da65 in wxEvtHandler:
#11 0x00007ffff6fafb38 in wxWindowBase:
#12 0x00007ffff660d7d7 in wxEvtHandler:
#13 0x00007ffff6fb10ec in wxWindowBase:
#14 0x00007ffff6f54b6f in wxMenuBase:
#15 0x00007ffff6e3783b in menuitem_activate (item=0x42a3cb0) at ../src/
#16 0x00007ffff439cfa5 in g_closure_invoke () from /usr/lib/
#17 0x00007ffff43aefc1 in ?? () from /usr/lib/
#18 0x00007ffff43b7d5c in g_signal_
#19 0x00007ffff43b808f in g_signal_emit () from /usr/lib/
#20 0x00007ffff4addfec in ?? () from /usr/lib/
#21 0x00007ffff439cfa5 in g_closure_invoke () from /usr/lib/
#22 0x00007ffff43aefc1 in ?? () from /usr/lib/
#23 0x00007ffff43b77f9 in g_signal_
#24 0x00007ffff43b808f in g_signal_emit () from /usr/lib/
#25 0x00007ffff490478f in gtk_accel_
#26 0x00007ffff4905bdd in gtk_accel_
Changed in kicad: | |
milestone: | none → 5.0.1 |
importance: | Undecided → Critical |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
I can reproduce. To be more exact, I dragged with mouse and without releasing the button, pressed Ctrl+Y.
Application: kicad rc1-dev- 576-gae13e441a) , debug build compatible with 2.8) GTK+ 2.24
Version: (6.0.0-
Libraries:
wxWidgets 3.0.3
Platform: Linux 4.13.0-46-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,
Boost: 1.62.0
Compiler: GCC 7.2.0 with C++ ABI 1011
Build settings: WX_GRAPHICS_ CONTEXT= OFF WX_OVERLAY= OFF SCRIPTING= ON SCRIPTING_ MODULES= ON SCRIPTING_ WXPYTHON= ON SCRIPTING_ ACTION_ MENU=ON GITHUB_ PLUGIN= OFF USE_OCE= OFF USE_OCC= OFF
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=OFF