https://bugs.documentfoundation.org/show_bug.cgi?id=166565

--- Comment #15 from Ujjawal Kumar <[email protected]> ---
I found 2 type of crashes.

1. If I select the table till the 25th entry and then paste the insertion
happens at the rightmost cell of the last row and all other cells are cleared
and then if i undo it crashes immediately.

Crash log:

/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/15.2.1/../../../../include/c++/15.2.1/array:210:
In function:
    reference std::array<BigPtrEntry *, 1000>::operator[](size_type) [_Tp = 
    BigPtrEntry *, _Nm = 1000]

Error: attempt to subscript container with out-of-bounds index 39321, but 
container only holds 1000 elements.

Objects involved in the operation:
    sequence "this" @ 0x7f224ac08bb8 {
      type = std::array<BigPtrEntry*, 1000ul>;
    }
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/15.2.1/../../../../include/c++/15.2.1/array:210:
In function:
    reference std::array<BigPtrEntry *, 1000>::operator[](size_type) [_Tp = 
    BigPtrEntry *, _Nm = 1000]

Error: attempt to subscript container with out-of-bounds index 39321, but 
container only holds 1000 elements.

Objects involved in the operation:
    sequence "this" @ 0x7f224ac08bb8 {
      type = std::array<BigPtrEntry*, 1000ul>;
    }
    sequence "this" @ 0x5611e24e18e8 {
      type = std::array<BigPtrEntry*, 1000ul>;
    }


2. If I place the cursor at the start of the first entry and then paste, this
produces the expected result. I then start to do random selections and pasting
at the first cell and row. This produces a crash which is much harder to
reproduce on my machine.

Crash log:
soffice.bin: /home/user/dev/libreoffice/sw/source/core/bastyp/index.cxx:228:
virtual SwContentIndexReg::~SwContentIndexReg(): Assertion `!m_pFirst &&
!m_pLast && "There are still indices registered"' failed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to