PNS crash placing via
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Critical
|
Tomasz Wlostowski |
Bug Description
version:
Application: kicad
Version: (2018-01-26 revision 7a6e3bf)-master, release build
Libraries:
wxWidgets 3.0.2
libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.13.0-32-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: Clang 4.0.0 with C++ ABI 1002
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
#0 0x00007fffd34b7578 in PNS::NODE:
#1 0x00007fffd34b797e in PNS::NODE:
#2 0x00007fffd34d7f40 in PNS::LINE_
#3 0x00007fffd34d7d77 in PNS::LINE_
#4 0x00007fffd34bfd9a in PNS::ROUTER:
#5 0x00007fffd34922fa in ROUTER_
#6 0x00007fffd3496633 in ROUTER_
#7 0x00007fffd3495557 in ROUTER_
#8 0x00007fffd35db4ff in COROUTINE<int, TOOL_EVENT const&>
#9 0x00007fffd36202b1 in make_fcontext () from /home/twl/
#10 0x0000000000000000 in ?? ()
Changed in kicad: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
assignee: | nobody → Tomasz Wlostowski (twlostow) |
milestone: | none → 5.0.0-rc1 |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
debug build:
==30885==ERROR: AddressSanitizer: heap-use-after-free on address 0x6080003275f8 at pc 0x7fffdc56d903 bp 0x7fffcdbd4be0 sp 0x7fffcdbd4bd8
READ of size 4 at 0x6080003275f8 thread T0
#0 0x7fffdc56d902 in SHAPE_SEGMENT: :GetWidth( ) const /home/twl/ Kicad-dev/ kicad-git- master/ include/ geometry/ shape_segment. h:82:16 :Width( ) const /home/twl/ Kicad-dev/ kicad-git- master/ pcbnew/ router/ ./pns_segment. h:90:22 :AssembleLine( PNS::SEGMENT* , int*, bool) /home/twl/ Kicad-dev/ kicad-git- master/ pcbnew/ router/ pns_node. cpp:844: 24 PLACER: :simplifyNewLin e(PNS:: NODE*, PNS::SEGMENT*) /home/twl/ Kicad-dev/ kicad-git- master/ pcbnew/ router/ pns_line_ placer. cpp:1105: 21 PLACER: :FixRoute( VECTOR2< int> const&, PNS::ITEM*) /home/twl/ Kicad-dev/ kicad-git- master/ pcbnew/ router/ pns_line_ placer. cpp:1025: 9 :FixRoute( VECTOR2< int> const&, PNS::ITEM*) /home/twl/ Kicad-dev/ kicad-git- master/ pcbnew/ router/ pns_router. cpp:350: 24 TOOL::performRo uting() /home/twl/ Kicad-dev/ kicad-git- master/ pcbnew/ router/ router_ tool.cpp: 733:27 TOOL::mainLoop( PNS::ROUTER_ MODE) /home/twl/ Kicad-dev/ kicad-git- master/ pcbnew/ router/ router_ tool.cpp: 910:17 TOOL::RouteSing leTrace( TOOL_EVENT const&) /home/twl/ Kicad-dev/ kicad-git- master/ pcbnew/ router/ router_ tool.cpp: 832:12 fn_base< int (ROUTER_ TOOL::* )(TOOL_ EVENT const&), true>:: operator( )<TOOL_ EVENT const&, void>(ROUTER_TOOL*, TOOL_EVENT const&) const /usr/bin/ ../lib/ gcc/x86_ 64-linux- gnu/5.4. 0/../.. /../../ include/ c++/5.4. 0/functional: 600:11 std::_Mem_ fn<int (ROUTER_ TOOL::* )(TOOL_ EVENT const&)> (ROUTER_TOOL*, std::_Placehold er<1>)> ::__call< int, TOOL_EVENT const&, 0ul, 1ul>(std: :tuple< TOOL_EVENT const&>&&, std::_Index_ tuple<0ul, 1ul>) /usr/bin/ ../lib/ gcc/x86_ 64-linux- gnu/5.4. 0/../.. /../../ include/ c++/5.4. 0/functional: 1073:11 std::_Mem_ fn<int (ROUTER_ TOOL::* )(TOOL_ EVENT const&)> (ROUTER_TOOL*, std::_Placehold er<1>)> ::operator( )<TOOL_ EVENT const&, int>(TOOL_EVENT const&) /usr/bin/ ../lib/ gcc/x86_ 64-linux- gnu/5.4. 0/../.. /../../ include/ c++/5.4. 0/functional: 1131:17 handler< int (TOOL_EVENT const&), std::_Bind< std::_Mem_ fn<int (ROUTER_ TOOL::* )(TOOL_ EVENT const&)> (ROUTER_TOOL*, std::_Placehold er<1>)> >::_M_invoke( std::_Any_ data const&, TOOL_EVENT const&) /usr/bin/ ../lib/ gcc/x86_ 64-linux- gnu/5.4. 0/../.. /../../ include/ c++/5.4. 0/functional: 1856:9 >::operator( )(TOOL_ EVENT const&) const /usr/bin/ ../lib/ gcc/x86_ 64-linux- gnu/5.4. 0/../.. /../../ include/ c++/5.4. 0/functional: 2267:14 ::callerStub( long) /home/twl/ Kicad-dev/ kicad-git- master/ include/ tool/coroutine. h:329:25 twl/Kicad- dev/kicad- build/debug- master/ kicad/_ pcbnew. kiface+ 0x1cbeed0)
#1 0x7fffdc56d7c8 in PNS::SEGMENT:
#2 0x7fffdc626b5d in PNS::NODE:
#3 0x7fffdc6b0ca9 in PNS::LINE_
#4 0x7fffdc6b06a1 in PNS::LINE_
#5 0x7fffdc66d02d in PNS::ROUTER:
#6 0x7fffdc598efa in ROUTER_
#7 0x7fffdc59e839 in ROUTER_
#8 0x7fffdc59bf94 in ROUTER_
#9 0x7fffdc5a766a in int std::_Mem_
#10 0x7fffdc5a74fd in int std::_Bind<
#11 0x7fffdc5a72d8 in int std::_Bind<
#12 0x7fffdc5a6e01 in std::_Function_
#13 0x7fffdca70718 in std::function<int (TOOL_EVENT const&)
#14 0x7fffdca7027a in COROUTINE<int, TOOL_EVENT const&>
#15 0x7fffdcb5aed0 in make_fcontext (/home/