Bug 163250 - Crash when inserting a cross reference
Summary: Crash when inserting a cross reference
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Fields-Cross-Reference Crash
  Show dependency treegraph
 
Reported: 2024-10-02 07:25 UTC by Brioche
Modified: 2024-12-10 19:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Document witch occure crash (854.65 KB, application/vnd.oasis.opendocument.text)
2024-10-02 08:46 UTC, Brioche
Details
gdb bt (12.18 KB, text/plain)
2024-10-02 20:25 UTC, Julien Nabet
Details
test (902.58 KB, application/vnd.oasis.opendocument.text)
2024-10-04 10:19 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brioche 2024-10-02 07:25:40 UTC
Description:
Crash when I attempt to insert a Cross-References
Only with this doc

Steps to Reproduce:
1. Place the cursor at the right place
2. Insert a cross reference
3. Crach

Actual Results:
Crash

Expected Results:
a cross reference


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded


https://crashreport.libreoffice.org/stats/crash_details/d5ef17f6-7c73-4d5e-a1b9-ea5372028f73
Comment 1 Xisco Faulí 2024-10-02 08:27:28 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 Brioche 2024-10-02 08:46:16 UTC
Created attachment 196837 [details]
Document witch occure crash
Comment 3 Brioche 2024-10-02 08:47:46 UTC
With this document, If you search the word "figure" and try to insert a cross reference instead of th static number... Libreoffice is ever crashing
Comment 4 Julien Nabet 2024-10-02 20:25:30 UTC
Created attachment 196855 [details]
gdb bt

On pc Debian x86-64 with master sources updated today, I got an assertion.

I provided bt + some console logs.
Comment 5 Julien Nabet 2024-10-02 20:29:45 UTC
(In reply to Julien Nabet from comment #4)
> Created attachment 196855 [details]
> gdb bt
> 
> On pc Debian x86-64 with master sources updated today, I got an assertion.
> 
> I provided bt + some console logs.

Sorry, I forgot to tell, I had an assertion just when trying to open the document.
Comment 6 Brioche 2024-10-04 05:43:23 UTC
And did you success to insert the cross reference ?
Thanks for helping
Comment 7 Julien Nabet 2024-10-04 10:19:23 UTC
Created attachment 196886 [details]
test

With master sources updated today, since I can't open the file, I can't test the insert.

With LO Debian package 24.8.2.1, I could insert a cross reference. (see the attached file, page 6, just after "figure")
Comment 8 Brioche 2024-10-04 10:52:07 UTC
Thanks.
I've taken a look at your file.
Your cross reference is present, but not with the good number.
And I couldn't insert my cross reference... LO is still crashing
Comment 9 Julien Nabet 2024-10-04 11:55:49 UTC
2 things you can try:
1) Rename your LO directory profile (see https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile).
I don't think it'll help but at least, we'll be sure it's not a pb related to LO profile

2) copy paste all the content of your document in a brand new odt file and give it a try on the new file.
Perhaps something is corrupted in your existing file.

BTW, https://crashreport.libreoffice.org/stats/crash_details/d5ef17f6-7c73-4d5e-a1b9-ea5372028f73 gives 404 error.
If you got another crashreport, please report the url of it.
Comment 10 Brioche 2024-10-07 08:46:01 UTC
Hi ! Thx for your advices !

I've just try to copy my file in a new file and it works well !
Is it possible to repair my first file because I cannot copy everything (like styles..)
Comment 11 QA Administrators 2024-10-08 03:16:54 UTC Comment hidden (obsolete)
Comment 12 Julien Nabet 2024-10-08 16:34:02 UTC
(In reply to Brioche from comment #10)
> Hi ! Thx for your advices !
> 
> I've just try to copy my file in a new file and it works well !
> Is it possible to repair my first file because I cannot copy everything
> (like styles..)

No idea.
Comment 13 Buovjaga 2024-12-10 17:54:09 UTC
I still repro Julien's assertion with a debug build. Regarding the crash when inserting a cross reference, I repro it with a non-debug build. It seems to appear in version 6.4, but there is something unreliable about it. On Linux, at first the oldest commit crashed, but then running in safe mode did not crash, so I bisected in safe mode. I got a bogus result, all were bad. Then I tried in Windows where the oldest commit did not crash even in normal mode, but I got the same bogus result.

I guess there is something wrong with the file, but it would be nice to not crash and certainly we had states in the past where we did not crash. Others are welcome to try a bibisect.