Bug 159377 - CRASH at undo at after pasting table in footer (swlo!SwFormatFootnote::SetNumStr+0x3e26:)
Summary: CRASH at undo at after pasting table in footer (swlo!SwFormatFootnote::SetNum...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+ Master
Hardware: All All
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, wantBacktrace
Depends on:
Blocks: Footnote-Endnote Undo-Redo Crash
  Show dependency treegraph
 
Reported: 2024-01-25 19:35 UTC by Telesto
Modified: 2024-01-25 22:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature: ["BigPtrArray::Index2Block"]


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2024-01-25 19:35:09 UTC
Description:
CRASH at undo at some point after table in footer (swlo!SwFormatFootnote::SetNumStr+0x3e26:)

Steps to Reproduce:
1. Open Writer
2. Insert a table 2x2
3. Insert a footnote below the table
4. Select the table cells 
5. CTRL+X
6. Enter the footnote
7. Type 'X'
8. Press arrow left
9. CTRL+V
10. CTRL+Z (notice X position being off
11. CTRL+V
12. CTRL+Z (4x) -> Crash

Actual Results:
Crash

Expected Results:
No crash, ideally. 


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 566bb271b8fe5882f24fef230e06c2af4ea12b33
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 1 Stéphane Guillou (stragu) 2024-01-25 22:24:55 UTC
In 7.0 and 24.2.0.2, empty paragraphs are not inserted in the footnote and the crash occurs earlier, it only needs 2× Ctrl + Z at step 12 to crash. I get signature BigPtrArray::Index2Block : https://crashreport.libreoffice.org/stats/crash_details/677ff056-038d-4137-8ab5-8566556368cd and https://crashreport.libreoffice.org/stats/crash_details/7becba52-a8be-4467-8924-f92e5ddea4ed
Adding signature in field for that reason.

Repro as described in recent master build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d0dcd87788910e3c9f67a2b68534019c05b77bad
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Possibly since bug 159025 or bug 159023 were fixed, but can't check currently without an update to linux-64-24.8 bibisect repo.