[Pkg-electronics-devel] Bug#896706: pcbnew: crashes with a failed assertion on i386, starts fine on amd64
Mirko Parthey
mirko.parthey at web.de
Sat Jun 2 13:41:38 BST 2018
On Fri, Jun 01, 2018 at 06:41:35AM +0200, Carsten Schoenert wrote:
> So there is one more thing you could provide then. Please create a gdb
> backtrace, this is helpful for the developers as they can see some
> useful information mostly what's the reason for the segfault.
>
> https://wiki.debian.org/HowToGetABacktrace
>
> PS: Due the curl transition the packages from experimental aren't usable
> anymore as thy are using Curl3. I uploaded yesterday KiCad into
> unstable, now with using Curl4 instead. You will probbaly need to pull
> the newer packages from there.
OK, I got kicad 5.0.0~rc2+dfsg1-2 from unstable.
Here's a typescript of my gdb session with a backtrace.
------------------------------------------------------------------------
Script started on 2018-06-02 14:26:03+02:00
mpa at buster32:~$ gdb /usr/bin/pcbnew
GNU gdb (Debian 7.12-6+b2) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/pcbnew...Reading symbols from /usr/lib/debug/.build-id/c1/79dc22b22fe60a6d11a147205e20856974f3ae.debug...done.
done.
(gdb) set pagination 0
(gdb) run
Starting program: /usr/bin/pcbnew
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
14:26:55: Debug: Checking template path '/usr/share/kicad/template' exists
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
14:27:00: Debug: wxColour::Set - couldn't set to colour string 'NONE'
pcbnew: /build/kicad-zwJWva/kicad-5.0.0~rc2+dfsg1/include/geometry/rtree.h:1642: void RTree<DATATYPE, ELEMTYPE, NUMDIMS, ELEMTYPEREAL, TMAXNODES, TMINNODES>::Classify(int, int, RTree<DATATYPE, ELEMTYPE, NUMDIMS, ELEMTYPEREAL, TMAXNODES, TMINNODES>::PartitionVars*) [with DATATYPE = KIGFX::VIEW_ITEM*; ELEMTYPE = int; int NUMDIMS = 2; ELEMTYPEREAL = float; int TMAXNODES = 8; int TMINNODES = 4]: Zusicherung »!a_parVars->m_taken[a_index]« nicht erfüllt.
Program received signal SIGABRT, Aborted.
0xb7fd6d09 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fd6d09 in __kernel_vsyscall ()
#1 0xb663e5b2 in __libc_signal_restore_set (set=0xbfffd4fc) at ../sysdeps/unix/sysv/linux/nptl-signals.h:80
#2 __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3 0xb663f9d1 in __GI_abort () at abort.c:79
#4 0xb66366ab in __assert_fail_base (fmt=0xb2d7e129 "%s%s%s:%u: %s%sZusicherung »%s« nicht erfüllt.\n%n", assertion=0xb3fed9ce "!a_parVars->m_taken[a_index]", file=0xb3fed6f4 "/build/kicad-zwJWva/kicad-5.0.0~rc2+dfsg1/include/geometry/rtree.h", line=1642, function=0xb40032a0 <RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Classify(int, int, RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::PartitionVars*)::__PRETTY_FUNCTION__> "void RTree<DATATYPE, ELEMTYPE, NUMDIMS, ELEMTYPEREAL, TMAXNODES, TMINNODES>::Classify(int, int, RTree<DATATYPE, ELEMTYPE, NUMDIMS, ELEMTYPEREAL, TMAXNODES, TMINNODES>::PartitionVars*) [with DATATYPE ="...) at assert.c:92
#5 0xb6636709 in __GI___assert_fail (assertion=0xb3fed9ce "!a_parVars->m_taken[a_index]", file=0xb3fed6f4 "/build/kicad-zwJWva/kicad-5.0.0~rc2+dfsg1/include/geometry/rtree.h", line=1642, function=0xb40032a0 <RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Classify(int, int, RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::PartitionVars*)::__PRETTY_FUNCTION__> "void RTree<DATATYPE, ELEMTYPE, NUMDIMS, ELEMTYPEREAL, TMAXNODES, TMINNODES>::Classify(int, int, RTree<DATATYPE, ELEMTYPE, NUMDIMS, ELEMTYPEREAL, TMAXNODES, TMINNODES>::PartitionVars*) [with DATATYPE ="...) at assert.c:101
#6 0xb3d443e2 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Classify (this=0x327ecd0, a_index=0, a_group=1, a_parVars=0xbfffd990) at ./include/geometry/rtree.h:1642
#7 0xb3d445a1 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::PickSeeds (this=0x327ecd0, a_parVars=0xbfffd990) at ./include/geometry/rtree.h:1633
#8 0xb3d44652 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::ChoosePartition (this=0x327ecd0, a_parVars=0xbfffd990, a_minFill=4) at ./include/geometry/rtree.h:1484
#9 0xb3d44a97 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::SplitNode (this=0x327ecd0, a_node=0x327ece0, a_branch=0xbfffdb78, a_newNode=0xbfffdbf4) at ./include/geometry/rtree.h:1355
#10 0xb3d44c6f in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::AddBranch (this=0x327ecd0, a_branch=0xbfffdb78, a_node=0x327ece0, a_newNode=0xbfffdbf4) at ./include/geometry/rtree.h:1252
#11 0xb3d44dd2 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::InsertRectRec (this=0x327ecd0, a_rect=0xbfffdc9c, a_id=@0xbfffdc88: 0x3605920, a_node=0x327ece0, a_newNode=0xbfffdbf4, a_level=0) at ./include/geometry/rtree.h:1150
#12 0xb3d450d8 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::InsertRect (this=0x327ecd0, a_rect=0xbfffdc9c, a_id=@0xbfffdc88: 0x3605920, a_root=0x327ecd4, a_level=0) at ./include/geometry/rtree.h:1186
#13 0xb3d3faa0 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Insert (a_dataId=@0xbfffdc88: 0x3605920, a_max=<synthetic pointer>, a_min=<synthetic pointer>, this=0x327ecd0) at ./include/geometry/rtree.h:664
#14 KIGFX::VIEW_RTREE::Insert (aItem=<optimized out>, this=0x327ecd0) at ./include/view/view_rtree.h:55
#15 KIGFX::VIEW::Add (this=0x1de8350, aItem=<optimized out>, aDrawPriority=<optimized out>) at ./common/view/view.cpp:355
#16 0xb3b5427f in KIGFX::PCB_VIEW::Add (this=0x1de8350, aItem=<optimized out>, aDrawPriority=<optimized out>) at ./pcbnew/pcb_view.cpp:60
#17 0xb376844b in GRID_HELPER::GRID_HELPER (this=0x3605900, aFrame=0x1d7bcb0) at ./pcbnew/tools/grid_helper.cpp:61
#18 0xb3b902f2 in PNS::TOOL_BASE::Reset (this=<optimized out>, aReason=TOOL_BASE::RUN) at ./pcbnew/router/pns_tool_base.cpp:112
#19 0xb3ba01c5 in LENGTH_TUNER_TOOL::Reset (this=0x35dde60, aReason=TOOL_BASE::RUN) at ./pcbnew/router/length_tuner_tool.cpp:118
#20 0xb3d5e34f in TOOL_MANAGER::ResetTools (this=0x332a870, aReason=TOOL_BASE::RUN) at ./common/tool/tool_manager.cpp:431
#21 0xb3d5ec8a in TOOL_MANAGER::InitTools (this=<optimized out>) at ./common/tool/tool_manager.cpp:465
#22 0xb36c9ddb in PCB_EDIT_FRAME::setupTools (this=0x1d7bcb0) at ./pcbnew/pcb_edit_frame.cpp:612
#23 0xb36cfdcd in PCB_EDIT_FRAME::PCB_EDIT_FRAME (this=<optimized out>, aKiway=0x4ae060 <Kiway>, aParent=0x0) at ./pcbnew/pcb_edit_frame.cpp:460
#24 0xb3323dbb in PCB::IFACE::CreateWindow (this=0xb46a13c0 <PCB::kiface>, aParent=0x0, aClassId=5, aKiway=0x4ae060 <Kiway>, aCtlBits=1) at ./pcbnew/pcbnew.cpp:113
#25 0x0042a754 in KIWAY::Player (this=<optimized out>, aFrameType=FRAME_PCB, doCreate=true, aParent=<optimized out>) at ./common/kiway.cpp:329
#26 0x0041cd2d in PGM_SINGLE_TOP::OnPgmInit (this=<optimized out>) at ./common/single_top.cpp:322
#27 0x0042053e in APP_SINGLE_TOP::OnInit (this=0x4b2600) at ./common/single_top.cpp:128
#28 0xb7518176 in wxEntry(int&, wchar_t**) () from /usr/lib/i386-linux-gnu/libwx_baseu-3.0.so.0
#29 0xb7518f83 in wxEntry(int&, char**) () from /usr/lib/i386-linux-gnu/libwx_baseu-3.0.so.0
#30 0x00419e56 in main (argc=<optimized out>, argv=0xbffff414) at ./common/single_top.cpp:239
(gdb) quit
A debugging session is active.
Inferior 1 [process 3379] will be killed.
Quit anyway? (y or n) y
mpa at buster32:~$ exit
Script done on 2018-06-02 14:27:10+02:00
More information about the Pkg-electronics-devel
mailing list