https://bugs.documentfoundation.org/show_bug.cgi?id=169445
Bug ID: 169445
Summary: Crash when undoing pasting a selection beginning with
a table
Product: LibreOffice
Version: 26.2.0.0 alpha0+ master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
When copy-pasting a selection that begins with a table and also includes text
outside the table, undoing the paste removes more than what was pasted. It
usually also removes the preceding paragraph. This easily leads to a crash if
you continue to undo.
Steps to Reproduce:
I have attached a document to more easily repro the fault (the messed up undo).
But to produce a crash it is easiest to do the steps in a new document.
1. Create a new document.
2. Insert a default 2x2 table.
3. Insert a single paragraph of text below.
4. (this is the state of the attached document)
5. Select the entire document content (use Ctrl-A Ctrl-A, be sure to select the
entire document, not just the table)
6. Copy with Ctrl-C.
7. Position the cursor at the end of the document.
8. Paste with Ctrl-V.
9. Undo with Ctrl-Z.
10. Observe that the undo also removed the original paragraph of text, in
addition to what was pasted.
11. If you started with a new document, then undo one more time to trigger a
crash.
Actual Results:
Crash with:
soffice.bin: /home/dhashe/Code/libreoffice-core/sal/rtl/strtmpl.hxx:888: void
rtl::str::newFromSubString(rtl_tString**, const rtl_tString*, sal_Int32,
sal_Int32) [with rtl_tString = _rtl_uString; sal_Int32 = int]: Assertion
`false' failed.
Unspecified Application Error
After the undo, an extra paragraph of text was removed that was not part of
what was pasted.
Expected Results:
No crash. The undo removes only that which was pasted, and nothing else.
Reproducible: Always
User Profile Reset: No
Additional Info:
This issue is not present on my Linux distro's LibreOffice, which is 7.3.7.2
and 1:7.3.7-0ubuntu0.22.04.10
I observed it on recent master with my HEAD at
6fec895e2b2d54e8f7c6398ef7e90145c1ca7559
Probably this is something that can be bisected?
Here is the output from "Help - About LibreOffice" for my build from master:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0874146565167d072cf1134f8cc93e08247d71ac
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.