| Summary: | LO 7.4: crash when I update a chapter index (swlo!SwDoc::SetTOXBaseName+0x5cd:) | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Paolo Piattica <piattica> |
| Component: | Writer | Assignee: | Andreas Heinisch <andreas.heinisch> |
| Status: | VERIFIED FIXED | ||
| Severity: | major | CC: | andreas.heinisch, ilmari.lauhakangas, serval2412 |
| Priority: | high | Keywords: | haveBacktrace, regression |
| Version: | 7.4.0.3 release | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=130318 | ||
| Whiteboard: | target:7.5.0 target:7.4.1 | ||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
here the file that causes the crash
Smaller example gdb bt |
||
|
Description
Paolo Piattica
2022-08-25 07:17:23 UTC
Created attachment 182008 [details]
here the file that causes the crash
Created attachment 182019 [details] Smaller example 1. Open the attached file 2. Sidebar -> Navigator -> Expand Indexes 3. Right Click Table of Content 5 and Select Update -> Crash Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 1c1647e6ee252fe68d7406d01043e88f1721590f 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 Created attachment 182027 [details]
gdb bt
On pc Debian x86-64 with master sources updated today, I could reproduce this.
I attached bt with a bit of gdb.
Regression from: 1cac7d18ab8561f129a30d6c93c0f9f1d7868e01 tdf#130318 - Use the actual cursor position to create ToC "for chapter" Use the actual cursor position to create ToC "for chapter" beginning at the current level. Andreas/Ilmari: thought you might be interested in this one. Will take a look the next days when I find some spare time 🤗 Pending review: https://gerrit.libreoffice.org/c/core/+/138850# I had the check for the position, but I could not think of a scenario where this case could happen. I added it again to prevent any crash, if we are already at the top level of the chapter node. Didn't check the correctness of the index though. Andreas Heinisch committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/33c6dcfaab35a70f8794a67d31fbec636cb485d5 tdf#150594 - Prevent crash while searching for the next outline node It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. On pc Debian x86-64 with master sources updated today, I confirm I don't reproduce the crash (I thought it would have been a bit more complicated than this :-)). Thank you Andreas! Andreas Heinisch committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/5f03dc914d67725b4d8e949d4e2198c4e9b537ec tdf#150594 - Prevent crash while searching for the next outline node It will be available in 7.4.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Andreas Heinisch committed a patch related to this issue. It has been pushed to "libreoffice-7-4-1": https://git.libreoffice.org/core/commit/716f3e73fcedc4c4c107527a49aaec604a7e2c63 tdf#150594 - Prevent crash while searching for the next outline node It will be available in 7.4.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |