Apache OpenOffice (AOO) Bugzilla – Issue 122902
footnote deletion causes crash
Last modified: 2017-05-20 10:33:38 UTC
When I attempted to remove a footnote, the whole program crashed. When I deleted the text in the footnote first and then the footnote it didn't crash. I should say that the document with wich it occured originally was created with an earlier version of the open office writer (3.2 I think)
Created document with footnote in 2.4.3. Deleted footnote in Rev. 1507307 -> no crash. Please attach document.
(In reply to Edwin Sharp from comment #1) > Created document with footnote in 2.4.3. > Deleted footnote in Rev. 1507307 -> no crash. > > Please attach document. I may have additional information: Before I've attempted to remove the footnote, I've used 'ctrl+c' to copy the content of the footnote in case if I change my mind about the deletion. And then I've deleted the little index-number to remove the footnote and thats when it crashed. I've tried it without copying the text in the footnote, and it removed the footnote without crashing. Try it like this, and if the problem won't occur Im gonna attach the document.
Created attachment 81213 [details] crash details
Thank you.
I was no able to reproduce this defect. Can someone provide a step-by-step instruction to reproduce the crash? Thx in advance.
(In reply to Oliver-Rainer Wittmann from comment #5) > I was no able to reproduce this defect. > > Can someone provide a step-by-step instruction to reproduce the crash? Thx > in advance. 1. Create a document with open office writer 4.0.0. 2. Type some random word in, lets say 'Crash' 3. Attach a footnote to that word 4. Type some text in the footnote 5. Now highlight the text in the footnote 6. Press 'ctrl+c' 7. Now go back to the word 'crash' and delete the footnote number with 'backspace' 8. It should crash at this point.
http://screencast.com/t/DWLyFNc4
Thanks for step-by-step instruction and the video. Before it must be too early for me, when I tried to reproduce the crash ;-) I can confirm the crash on Windows 7. It is a regression - in AOO 3.4.1 it works fine.
Created attachment 81240 [details] crash stack
Reproducible on other platforms too and the crash stack up to the MarkManager::deleteMark() frame looks like the stack in attachment 81237 [details] of bug 122922.
taking over for deeper investigation
root cause found: - ::std::vector.earse(..) triggers a recursive call to the same ::std::vector.erase(..) by the deletion of the corresponding entry. Afterwards the crashed occurred inside stl. note: crash did not happen in stlport. bug 122922 and bug 122992 have the same root cause.
Created attachment 81321 [details] patch to solve the crash
approve showstopper request
"orw" committed SVN revision 1515312 into trunk: 122902, 122922, 122992: - <MarkManager::deleteMark(..)> - assure that entry i...
"orw" committed SVN revision 1515317 into branches/AOO401: 122902, 122922, 122992: - <MarkManager::deleteMark(..)> - assure that entry i...
fixed on trunk and AOO401 branch
It's verified fixed in build AOO401m1(Build:9710) - Rev. 1516414