Bug 32600

Summary: Spreadsheet crash on FILEOPEN
Product: LibreOffice Reporter: Ian McDonald <ian.mcdonald>
Component: SpreadsheetAssignee: Not Assigned <libreoffice-bugs>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: nopower
Version: 3.3.0 RC2   
Hardware: x86-64 (AMD64)   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Apple produced crash report when opening fairly large XL file

Description Ian McDonald 2010-12-23 02:21:53 UTC
When opening a particular spreadsheet in 3.3 RC2 it crashes the program on Mac OS X. Zip of this spreadsheet attached.
Comment 1 Ian McDonald 2010-12-23 02:24:27 UTC
Attachment addition failed - guessing too big?? 1.8 MB. Have uploaded it to https://docs.google.com/a/jandi.co.uk/leaf?id=0B9njVFCEf6HGNTIzNmU5NTAtMDM5YS00MmVjLWI5ZDMtMDIzNTEwZGU1NzMx&sort=name&layout=list&num=50
Comment 2 Rainer Bielefeld Retired 2010-12-23 23:05:32 UTC
No access to sample document!

@Ian:
Please contribute user-ID and password for Jandi or send document to me by email!
Please do not file Bug reports with such vague information as NEW!
Comment 3 Ian McDonald 2010-12-24 00:55:37 UTC
You can use any Google account to login and get the document. Emailed the document to you also.

Not sure what you mean about the vague part of NEW. The status is that but nothing else.
Comment 4 Jan Holesovsky 2010-12-28 01:40:01 UTC
Ian: Can you please attach the crashreport too (backtrace), and the exact steps you do to see the crash?  I cannot reproduce on Linux, might be MacOS X specific :-(

Thank you!
Comment 5 Ian McDonald 2010-12-28 04:51:18 UTC
Verified no crash on Ubuntu 10.10 64 bit. Crashes on Windows 7 64 bit with just saying an error occurred.

Here is the back trace on OS X 10.6
soffice(4993,0xa03cb540) malloc: *** mmap(size=1768321024) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Abort trap
Comment 6 Alex Thurgood 2011-01-05 07:30:37 UTC
I have a Google account, but can not access the file. It takes me to Jandi.co.uk and asks for a username and password.


If you want us to test this on Mac, please provide the file on here or somewhere easily accessible.

Alex
Comment 7 Ian McDonald 2011-01-05 07:43:35 UTC
(In reply to comment #6)
> I have a Google account, but can not access the file. It takes me to
> Jandi.co.uk and asks for a username and password.
> 
> 
> If you want us to test this on Mac, please provide the file on here or
> somewhere easily accessible.
> 
> Alex

I see you are using a gmail account. Just put in that and your password to get access to it (It is a google service if you look at the URL). If that doesn't work, or you don't like that, please let me know and I'll try and find somewhere else to put it.
Comment 8 Alex Thurgood 2011-01-05 09:20:18 UTC
Hi Ian

I did just that, but when I enter my account details it says it is looking for an account at jandi.co.uk and not google.com, so the login fails.


Alex
Comment 9 Alex Thurgood 2011-01-05 09:21:28 UTC
Hi Ian,

Scratch that, go figure, now it is working.

Will test and get back.

Alex
Comment 10 Alex Thurgood 2011-01-05 09:25:55 UTC
Confirming crash on Mac OSX 10.6.5, LibO 3.3 beta 2. Will enclose crash report.


Alex
Comment 11 Alex Thurgood 2011-01-05 09:27:11 UTC
Created attachment 41672 [details]
Apple produced crash report when opening fairly large XL file

Enclosed Apple produced crash report.

Alex
Comment 12 Alex Thurgood 2011-01-05 09:32:14 UTC
The file opens fine in OOo330m17(build 9551).


Alex
Comment 13 Alex Thurgood 2011-01-05 09:38:59 UTC
It opens fine in OOo320m18.

It causes NeoOffice 3.1.2 Patch 2 to crash.


This is a regression with regard to the existing OOo version behaviour.


Alex
Comment 14 Alex Thurgood 2011-01-05 09:40:37 UTC
Changing importance to high / major.


Alex
Comment 15 Kohei Yoshida (inactive) 2011-01-05 09:45:26 UTC
Let's ping Noel on this.  The stack trace in Comment 11 ends in his area of expertise.
Comment 16 Kohei Yoshida (inactive) 2011-01-05 09:47:11 UTC
BTW, can one of you guys put the same document where it requires no login account?  It would make it easier for us.
Comment 17 Ian McDonald 2011-01-05 09:55:01 UTC
Have now put this up for download at http://wand.net.nz/~iam4/crash.xls
Comment 18 Don't use this account, use tml@iki.fi 2011-01-05 10:06:26 UTC
I doubt people who look for bugs to fix pay much attention to the importance fields.
Comment 19 Alex Thurgood 2011-01-05 10:12:01 UTC
Well we could just do away with them completely then ;-)
Comment 20 Noel Power 2011-01-06 09:24:31 UTC
hmm it does sortof seem to be in my ballpark, I wonder why it doesn't seem to fail on linux :-/ I'm taking a look...
Comment 21 Noel Power 2011-01-11 01:46:13 UTC
(In reply to comment #20)
> hmm it does sortof seem to be in my ballpark, I wonder why it doesn't seem to
> fail on linux :-/ I'm taking a look...

As indicated by the trace I did discover a problem with the reading of the VBA 'dir' stream ( where the spec doesn't seem to agree with the stream contents ) I have fixed this on the 3.3 branch, However even with this problem I never saw a crash opening this document ( on linux ). Saying that I am certain that the problem could easily crash a program with out of memory error. I am marking this as fixed, if one can build then the fix is currently on the 3.3 branch to test
Comment 22 Ian McDonald 2011-01-19 12:01:35 UTC
Have just verified now that it no longer crashes on 3.3 RC3. Thanks for fixing the problem. Most impressed with LibreOffice community as opposed to how OpenOffice used to be.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.