Bug 141705 - assertion in BigPtrArray::operator[]: `idx < m_nSize'
Summary: assertion in BigPtrArray::operator[]: `idx < m_nSize'
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Crash-Assert
  Show dependency treegraph
 
Reported: 2021-04-15 15:29 UTC by Terrence Enger
Modified: 2022-09-10 07:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
backtrace with symbols (16.51 KB, text/plain)
2021-04-15 15:29 UTC, Terrence Enger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Terrence Enger 2021-04-15 15:29:20 UTC
Created attachment 171224 [details]
backtrace with symbols

This bug will be apparent only in --enable-dbgutil builds.

STR

(1) Download comp.zip
    <https://bugs.documentfoundation.org/attachment.cgi?id=166615>
    attached to bug 137592

(2) Unpack comp.zip

(3) Open control/variantA/AffectedDocument.odt.

(4) At prompt "... update all links ... ?", click <Yes>.

    Observed:  LibreOffice exits with message (rewrapped):

        soffice.bin: /home/terry/lo_hacking/git/libo6/sw/source/core/bastyp/
            bparr.cxx:84:
            BigPtrEntry* BigPtrArray::operator[](sal_uLong) const:
            Assertion `idx < m_nSize' failed.

The backtrace is from commit f3b6fd1f (2021-03-16), configured
    --with-vendor=Terrence Enger
    --with-jdk-home=/usr/lib/jvm/default-java
    --enable-split-debug
    --enable-gdb-index
    --enable-ld=gold
    --enable-option-checking=fatal
    --enable-dbgutil
    --enable-debug
    --without-system-postgresql
    --without-myspell-dicts
    --with-extra-buildid
    --without-doxygen
    --with-external-tar=/home/terry/lo_hacking/git/src
    --without-package-format
built and running on debian-buster.

Based on https://bugs.documentfoundation.org/show_bug.cgi?id=137592#c7
I am setting version 4.3.0.4 release.

Bug 88454 reports the same assertion.  It is in a different context,
so I am creating a new bug report.  However, the presence to tables in
both test cases may or may not suggest something
Comment 1 Julien Nabet 2021-04-17 07:59:49 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this with this same exact bt.
Comment 2 Julien Nabet 2021-04-17 08:07:21 UTC
BTW, m_nSize = 48 that's why the assert triggers since idx = 48