pcbnew segfault when forming invalid polygon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Critical
|
Maciej Suminski |
Bug Description
While working on a separate issue, I encountered a segfault when moving a polygon point to overlap an existing point. It does not happen frequently. Maybe about 1:100 when selecting points and moving them to overlap and then re-moving them so that they no longer overlap.
If I click on the two overlapping points without dragging, it appears that they are merged. But just clicking and dragging the points over each other does not merge them, so I can move them independently.
To reproduce, create a 5-segment copper zone and move the 5th point over the 4th, fill, unfill, move the point again, wash, rinse, repeat. Wish I had a better procedure for this one.
Backtrace:
#0 0x00007fffcee3fe1c in POINT_EDITOR:
at /home/seth/
#1 0x00007fffcee4a488 in std::__
@0x555557de
at /usr/include/
#2 0x00007fffcee49fdd in std::__invoke<int (POINT_EDITOR::* const&)(TOOL_EVENT const&), POINT_EDITOR*&, TOOL_EVENT const&> (__fn=
@0x555557de
at /usr/include/
#3 0x00007fffcee49aaf in std::_Mem_
at /usr/include/
#4 0x00007fffcee4935c in std::_Bind<
this=
at /usr/include/
#5 0x00007fffcee48c50 in std::_Bind<
at /usr/include/
#6 0x00007fffcee480e5 in std::_Function_
__functor=..., __args#0=...) at /usr/include/
#7 0x00007fffcf4ad4d3 in std::function<int (TOOL_EVENT const&)
this=
#8 0x00007fffcf4aa33d in COROUTINE<int, TOOL_EVENT const&>::callerStub (aData=
at /home/seth/
#9 0x00007fffcf4fcda1 in make_fcontext () from /usr/local/
#10 0x00005555586373a0 in ?? ()
#11 0x0000555557aec5a0 in ?? ()
#12 0x0000000000000000 in ?? ()
Application: kicad
Version: (5.0.0-
Libraries:
wxWidgets 3.0.2
libcurl/7.52.1 GnuTLS/3.5.8 zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Platform: Linux 4.9.0-6-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.62.0
Curl: 7.52.1
Compiler: GCC 6.3.0 with C++ ABI 1010
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=OFF
Changed in kicad: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 5.0.0-rc2 |
assignee: | nobody → Maciej Suminski (orsonmmz) |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Fixed in revision 886dc48cc42aee6 dea94364d5a9f12 ceb8982d85 /git.launchpad. net/kicad/ patch/? id=886dc48cc42a ee6dea94364d5a9 f12ceb8982d85
https:/