Issue 55261 - Crash: Opening sheet with links and then trying to close.
Summary: Crash: Opening sheet with links and then trying to close.
Status: CLOSED DUPLICATE of issue 52342
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: OOO 2.0 Beta2
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: niklas.nebel
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-29 19:57 UTC by drichard
Modified: 2013-08-07 15:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
gdb results after crash and issue backtrace (4.39 KB, text/plain)
2005-09-29 19:58 UTC, drichard
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description drichard 2005-09-29 19:57: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.
Comment 1 drichard 2005-09-29 19:58:51 UTC
Created attachment 30012 [details]
gdb results after crash and issue backtrace
Comment 2 drichard 2005-09-29 20:01:13 UTC
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.
Comment 3 frank 2005-10-04 14:07:36 UTC
Hi,

tried to reproduce on Solaris, Windows and Linux using m130 and could not
reproduce. Therefore closing worksforme.

Sorry for no better reply.

Frank
Comment 4 frank 2005-10-04 14:10:13 UTC
closed wfm
Comment 5 drichard 2005-10-04 17:26:50 UTC
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?
Comment 6 frank 2005-10-05 09:33:21 UTC
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
Comment 7 drichard 2005-10-06 14:51:07 UTC
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.
Comment 8 drichard 2005-10-07 14:15:08 UTC
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.
Comment 9 frank 2005-10-10 13:11:23 UTC
Hi,

yes please, send me the tarball.

Thanks
Comment 10 drichard 2005-10-10 21:35:48 UTC
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.
Comment 11 frank 2005-10-11 12:59:29 UTC
Hi,

didn't get the Mail until now (13:00 h GMT). So please re-send.

Frank
Comment 12 frank 2005-10-11 14:47:32 UTC
Hi Niklas,

got a tar file and can reproduce using OOo2.0rc2 on Linux and Windows.

Frank
Comment 13 niklas.nebel 2005-10-11 15:30:34 UTC
Same as issue 52342.

*** This issue has been marked as a duplicate of 52342 ***
Comment 14 niklas.nebel 2005-10-11 15:31:03 UTC
closing duplicate