Apache OpenOffice (AOO) Bugzilla – Issue 55261
Crash: Opening sheet with links and then trying to close.
Last modified: 2013-08-07 15:13:53 UTC
We haven't had a crash in a long time in the OOo 2.0 builds. The user is opening a sheet, then opening a second sheet which correctly opens in another window. The second sheet has links and the dialog asks if you want to update the Links and we answer Yes. Both sheets are open and work fine. We then attempt to close sheet 2, it asks if you want to discard changes and we answer yes. OOo immediately crashes. I am attaching the debugger information, with the hopes that it tells you what is wrong.
Created attachment 30012 [details] gdb results after crash and issue backtrace
I just looked at the output a bit more closely, and one thing that I theorized about was possibly it was related to file protections of one of the linked sheets. And I see some of the lines seem to talk about file protections. When you are exiting and discarding file protections should not come into play at all. You are leaving everything as it was.
Hi, tried to reproduce on Solaris, Windows and Linux using m130 and could not reproduce. Therefore closing worksforme. Sorry for no better reply. Frank
closed wfm
Brought down Release Candidate 1 and it's still doing the same thing. I can recreate this every time and it's been tested on multiple machines. You won't be able to probably recreate it there because I'm convinced it's related to file permissions on linked documents. Being that I can recreate it here easily, what do you need from me? I can get you the results of the document that is recovered after the crash if that will help. Is there additional GDB information that I can get? How can I help?
Hi, knowing the permission settings for the files in question would be good. Also the type of links (DDE or simple =File:...) Have you erased the user settings (.Openoffice... directory in the home folder) from the previous installation ? This could be necessary. Frank
I'm making headway on this bug. In checking the sheet, I found the user had created about 20 links, 10 of them to files and directory that do not exist and are invalid. I think what's happening is that OOo is anticipating a file handle for each of the links when you close and fails when the link is bad. Not only was the file name wrong, but the path was wrong as well and didn't exist on the server. My plan is to: 1) See how they got back links in there in the first place (possible other bug?). 2) See what happens when you delete a linked file after a connection has been formed, yet the link remains in the master document 3) Try and create links to directories that do not exist and see what happens. I wanted to pass on to you what I had figured out.
Changing Summary. OK, even after cleaning the link it's still crashing. The good news is that it appears I can create it by moving the entire directory of files. I can email you a tarball of the offending files for you to test. It happens every time. Open the sheet with links, updated links, then close out of the document without saving changes and it crashes.
Hi, yes please, send me the tarball. Thanks
Emailed the tarball right to you. Let me know if you didn't get it. I brought down RC2 for Linux and installed and tested this same thing and it still crashes every time. Let me know how I can help.
Hi, didn't get the Mail until now (13:00 h GMT). So please re-send. Frank
Hi Niklas, got a tar file and can reproduce using OOo2.0rc2 on Linux and Windows. Frank
Same as issue 52342. *** This issue has been marked as a duplicate of 52342 ***
closing duplicate