Segfault while changing polygon segment count
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Critical
|
Tomasz Wlostowski |
Bug Description
When trying to change the number of segments/360 degrees parameter of a polygon, the following segmentation fault occurs. The segmentation is 100% reproducible:
- Open PCB file via kicad
- Edit polygon
- Change segments/360 degrees from 16 to 32
- Press OK
I'm running the KiCad nightly builds for Ubuntu:
Application: kicad
Version: no-vcs-
Libraries:
wxWidgets 3.0.2
libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.10.0-42-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.58.0
Curl: 7.47.0
Compiler: GCC 5.4.0 with C++ ABI 1009
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
This is the reason for the segfault according to valgrind:
==8092== Process terminating with default action of signal 11 (SIGSEGV)
==8092== Access not within mapped region at address 0x8
==8092== at 0x1C0F0A33: SHAPE_POLY_
==8092== by 0x1C0F1C2E: SHAPE_POLY_
==8092== by 0x1C0F1D77: SHAPE_POLY_
==8092== by 0x1BB350E6: ZONE_FILLER:
==8092== by 0x1E1B843D: ??? (in /usr/lib/
==8092== by 0x73FB6B9: start_thread (pthread_
==8092== by 0x77183DC: clone (clone.S:109)
Changed in kicad: | |
assignee: | nobody → Tomasz Wlostowski (twlostow) |
Changed in kicad: | |
milestone: | none → 5.0.0-rc1 |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
I confirmed this and it happens with both the gal and legacy canvases. It only happens when editing the properties of the inner round zone of the attached board. Editing the properties of the outer rectangular zones does not segfault.