Comment 7 for bug 1789283

Aimylios (aimylios) wrote :

OK, thanks for the tip, lldb seems to work. Is the following backtrace sufficient to locate the source of the problem?

---

/usr/include/c++/8/bits/stl_vector.h:932: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
Process 2771 stopped
* thread #1, name = 'kicad', stop reason = signal SIGABRT
    frame #0: 0x00007ffff34bbfeb libc.so.6`__GI_raise + 267
libc.so.6`__GI_raise:
-> 0x7ffff34bbfeb <+267>: movq 0x108(%rsp), %rcx
    0x7ffff34bbff3 <+275>: xorq %fs:0x28, %rcx
    0x7ffff34bbffc <+284>: movl %r8d, %eax
    0x7ffff34bbfff <+287>: jne 0x7ffff34bc01e ; <+318>
(lldb) bt
* thread #1, name = 'kicad', stop reason = signal SIGABRT
  * frame #0: 0x00007ffff34bbfeb libc.so.6`__GI_raise + 267
    frame #1: 0x00007ffff34a65c1 libc.so.6`__GI_abort + 299
    frame #2: 0x00007fffc95de38c _pcbnew.kiface`AR_AUTOPLACER::propagate() + 140
    frame #3: 0x00007fffc95de608 _pcbnew.kiface`AR_AUTOPLACER::genPlacementRoutingMatrix() + 424
    frame #4: 0x00007fffc95dfddb _pcbnew.kiface`AR_AUTOPLACER::AutoplaceModules(std::vector<MODULE*, std::allocator<MODULE*> >, BOARD_COMMIT*, bool) + 91
    frame #5: 0x00007fffc95e43e8 _pcbnew.kiface`AUTOPLACE_TOOL::autoplace(std::vector<MODULE*, std::allocator<MODULE*> >&, bool) + 936
    frame #6: 0x00007fffc95e4c70 _pcbnew.kiface`AUTOPLACE_TOOL::autoplaceOffboard(TOOL_EVENT const&) + 64
    frame #7: 0x00007fffc9cf14f4 _pcbnew.kiface`COROUTINE<int, TOOL_EVENT const&>::callerStub(long) + 68
    frame #8: 0x00007fffc9d4a131 _pcbnew.kiface`make_fcontext + 33