Bug 147511 - CRASH: closing LibreOffice or reloading file after copying / cutting content
Summary: CRASH: closing LibreOffice or reloading file after copying / cutting content
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.0.beta1+
Hardware: All All
: medium critical
Assignee: Not Assigned
URL: https://crashreport.libreoffice.org/s...
Whiteboard:
Keywords: bibisected, bisected, haveBacktrace, regression
Depends on:
Blocks: Cut-Copy Crash
  Show dependency treegraph
 
Reported: 2022-02-18 11:04 UTC by Xisco Faulí
Modified: 2023-10-22 20:34 UTC (History)
6 users (show)

See Also:
Crash report or crash signature: ["SwFrameFormat::~SwFrameFormat()"]


Attachments
BT with symbols (17.52 KB, text/rtf)
2022-02-18 18:55 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xisco Faulí 2022-02-18 11:04:22 UTC
Steps to reproduce:
1. Open attachment 102103 [details] from bug 80785
2. Select all
3. Copy
4. Close LibreOffice

-> Crash

Reproduced in

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: d697c96178d13725470192d63bd4fa1c202d0d2e
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 1 Xisco Faulí 2022-02-18 11:06:39 UTC
Also reproduced in

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 27911b0455d8dcc08a0702372492a6ce00250cb7
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: x11
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded

The bisection is a bit difficult since you have to repeat every steps a few times to make sure it doesn't crash
Comment 2 Telesto 2022-02-18 18:55:23 UTC
Created attachment 178387 [details]
BT with symbols

Repro
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: c1205c1cf6e08d94e6e2e2753679d99bc1842ca0
CPU threads: 8; OS: Mac OS X 12.2; UI render: Skia/Raster; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 3 raal 2022-05-14 06:58:40 UTC
No repro with Version: 7.4.0.0.alpha1+ / LibreOffice Community
Build ID: 75f7e057039aaa49558e22d18cad651d11589da9
CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo

I did 10 test and closing was correct, without crash.
Comment 4 Telesto 2022-05-15 07:04:18 UTC
Still crashing for me
Version: 7.4.0.0.alpha1+ / LibreOffice Community
Build ID: 163e4686914ecf04f1cbef2f6a087cadbfe59f81
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Raster; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded

1. Open attachment 102103 [details] from bug 80785
2. Select all
3. Cut
4. File -> reload
Comment 5 raal 2022-05-15 07:36:08 UTC
Crash for vclplugin GEN, but not GTK3.
Comment 6 Stéphane Guillou (stragu) 2022-08-13 22:01:17 UTC
reproduced in:

Version: 7.4.0.2 / LibreOffice Community
Build ID: 1512ce97d7ed39dce3121f7e15651fd8895f950e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: x11
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and:

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

with steps:

1. Open attachment 102103 [details]
2. Ctrl + A
3. Ctrl + X
4. File > Reload, discard changes
5. repeat from step 2. until crash
Comment 7 Stéphane Guillou (stragu) 2022-08-13 22:37:12 UTC
Bibisected and bisected to first bad commit:
 86b5c0c57a6160059daa8e767ac15f25ab7896cc is the first bad commit
commit 86b5c0c57a6160059daa8e767ac15f25ab7896cc
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Wed Mar 31 17:26:02 2021 +0200

    source b802ab694a8a7357d4657f3e11b571144fa7c7bf
    
    source b802ab694a8a7357d4657f3e11b571144fa7c7bf

 instdir/program/libswlo.so           | Bin 22077304 -> 22077384 bytes
 instdir/program/libwriterfilterlo.so | Bin 3205048 -> 3209144 bytes
 instdir/program/setuprc              |   2 +-
 instdir/program/versionrc            |   2 +-
 4 files changed, 2 insertions(+), 2 deletions(-)

Commit by Attila Bakos (NISZ) <bakos.attilakaroly@nisz.hu> (added to CC): https://git.libreoffice.org/core/+/b802ab694a8a7357d4657f3e11b571144fa7c7bf

git bisect log:

# bad: [9dcd4f5671896db03d3bf94bbe602d58585b67e7] source ffa09959edd087794b1f2fe6b9b6faac484ef74b
# good: [1810f056660f59f79e76b8bdd6f5b902c27ce14f] source 738bcf5e9a8c443d60c29c3a8068e8c16c72638a
git bisect start 'origin/master' 'oldest'
# good: [b58e2a603efc8e9597cd1bf963c7b2dbdbf58b3a] source c6e3fcfbb901c46191461d1a08cf0c4524729cfc
git bisect good b58e2a603efc8e9597cd1bf963c7b2dbdbf58b3a
# bad: [cfc9413950d7c35fccc00df0fbd6670a4b4a2237] source 950eb673b9ad4bc380b13281af577fc8c6842007
git bisect bad cfc9413950d7c35fccc00df0fbd6670a4b4a2237
# bad: [51b655c50d749ceee8d437eab2aa0d777b8d69bb] source 6a0a0a4d78bb8850bf4a304b83784d3822895efe
git bisect bad 51b655c50d749ceee8d437eab2aa0d777b8d69bb
# bad: [c0353fb73fb38edccb9289e0c079c0517e1063b4] source d7a62c1105742e5717cdd90934b75f3957b31bc6
git bisect bad c0353fb73fb38edccb9289e0c079c0517e1063b4
# good: [81a2c12409e762021788259fced89d4b8342a476] source 3e7e6f6fc7f8f03c6ba329c547749e3f3746c2a0
git bisect good 81a2c12409e762021788259fced89d4b8342a476
# good: [ed369a095a679efe94d9e96c94db25f054e2c020] source 130db636988175f474354412d7222e0a749faf03
git bisect good ed369a095a679efe94d9e96c94db25f054e2c020
# bad: [9d2d676fae19057abc8b3f41382e9a2774cbaad1] source 19e1f3723d4bfb91dadf77b398261da0e8237a8b
git bisect bad 9d2d676fae19057abc8b3f41382e9a2774cbaad1
# good: [58efcbb2bc40821e37b7ae874adecca2749640d9] source 64788738db595cb642b7efd49340cae33d92698e
git bisect good 58efcbb2bc40821e37b7ae874adecca2749640d9
# good: [4c945b8ffe9807120b9daae1f56d3048dfa19cef] source 5c9ba1f47d00ed10960b59928befd68f6c020b15
git bisect good 4c945b8ffe9807120b9daae1f56d3048dfa19cef
# bad: [86b5c0c57a6160059daa8e767ac15f25ab7896cc] source b802ab694a8a7357d4657f3e11b571144fa7c7bf
git bisect bad 86b5c0c57a6160059daa8e767ac15f25ab7896cc
# good: [5c128c7a4e8f1db883408d7f5afedf9bd6a3505c] source 3db477fd0e6cfc4ff77b3c911ca4ab14fd980932
git bisect good 5c128c7a4e8f1db883408d7f5afedf9bd6a3505c
# good: [8095e239bb3b2040b9068ceb42d39fd18cde73c0] source 910fb8999de2622cbbb63083777cf889bd798889
git bisect good 8095e239bb3b2040b9068ceb42d39fd18cde73c0
# good: [8cd60fa74602c2a9cb9a7b5aac28690f19756e6c] source 3c49a3be592eb515bba100b4a17617136fabbcba
git bisect good 8cd60fa74602c2a9cb9a7b5aac28690f19756e6c
# first bad commit: [86b5c0c57a6160059daa8e767ac15f25ab7896cc] source b802ab694a8a7357d4657f3e11b571144fa7c7bf
Comment 8 Attila Bakos (NISZ) 2022-08-15 07:25:58 UTC
Hello Stragu,

i think this have the same symptoms as https://bugs.documentfoundation.org/show_bug.cgi?id=147731 if you want, you can check it. Maybe that one the duplicate of this or vica versa. I have done a patch for these issues, see https://gerrit.libreoffice.org/c/core/+/136959 about a month before what i plan to finish but for now i do not have capability to do that because i have no time, but if i will, i want to push that, i promise. For the interest, i think there is a memory management problem as Michael Stahl wrote that, that cause the crash. But if i see well in the comments so strange that it does not occur with gtk. Never mind, i will fix this too as soon as possible.
Comment 9 Stéphane Guillou (stragu) 2022-08-15 21:36:04 UTC
Thanks for looking into it, Attila! They do look very related indeed. I've added a link.