Bug 137281 - OpenOffice crashes due to "lack of memory" (not true)
Summary: OpenOffice crashes due to "lack of memory" (not true)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openoffice.org
Version: rawhide
Hardware: i686
OS: Linux
medium
high
Target Milestone: ---
Assignee: Dan Williams
QA Contact:
URL: http://www.openoffice.org/issues/show...
Whiteboard:
: 135517 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-27 07:47 UTC by Need Real Name
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version: 1.1.2-11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-11 10:59:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
stack (4.49 KB, text/plain)
2004-10-27 07:47 UTC, Need Real Name
no flags Details
*bugbuddy* backtrace (13.82 KB, text/plain)
2004-10-28 13:46 UTC, Need Real Name
no flags Details
patch to fix (714 bytes, patch)
2004-11-01 11:18 UTC, Caolan McNamara
no flags Details | Diff

Description Need Real Name 2004-10-27 07:47:26 UTC
User-Agent:       
Build Identifier: 

Open Office quits with the error:
Main memory shortage. Please quit other applications or close some windows
before continuing. [OK]
An unrecoverable error has occurred. All modified files have been saved and can
probably be recovered at next program restart.[OK] x 2

Reproducible: Always
Steps to Reproduce:
1. Open xls spreadsheet using ooffice sheet.xls
2. Close it using File> Close
3. Open it again using File> 1 (recent items list)
4. Error




Top shows:
[snip]
Mem:    515792k total,   513700k used,     2092k free,    64056k buffers
Swap:  1048312k total,      344k used,  1047968k free,   227452k cached
[snip]
19728 user      24   0  156m  67m 100m R 40.8 13.4   0:52.91 soffice.bin

Stack attached.

Comment 1 Need Real Name 2004-10-27 07:47:55 UTC
Created attachment 105827 [details]
stack

Comment 2 Need Real Name 2004-10-28 12:25:11 UTC
Reported upstream:
 http://www.openoffice.org/issues/show_bug.cgi?id=36280

Comment 3 Need Real Name 2004-10-28 13:46:00 UTC
Created attachment 105895 [details]
*bugbuddy* backtrace

Seems like oo.org relies on bug-buddy being installed.
Installing it, gives the following error on crash:

Application Error/usr/share/bug-buddy/gdb-cmd:2: Error in sourced command file:

Previous frame inner to this frame (corrupt stack?)

*bugbuddy* backtrace attached

Comment 4 Need Real Name 2004-10-28 14:45:33 UTC
OO.org cannot replicate this crash on 1.1.3
Either this is a RH build bug, or a 1.1.2 bug.

Comment 5 Need Real Name 2004-10-29 07:53:22 UTC
Doesn't crash on RH9 either.

Installing the official build of OOo.org (latest -v1.1.3) on FC3t3 doesn't help.
Instead of a crash, I get a hang.

A ps ax shows:

14385 pts/1    Sl+    0:05 /home/box/OpenOffice.org1.1.3/program/soffice.bin
simple.xls
14403 pts/1    S+     0:00 /home/box/OpenOffice.org1.1.3/program/getstyle-gnome
--vcl-system-settings-window 50331649

# strace -p 14385
Process 14385 attached - interrupt to quit
select(7, [6], NULL, NULL, NULL

# strace -p 14403
Process 14403 attached - interrupt to quit
ioctl(3, FIONREAD, [0])                 = 0
poll(

Comment 6 Need Real Name 2004-10-29 08:40:54 UTC
Update: OOo 1.1.3 now works.

1.1.2 is the culprit.

Comment 7 Caolan McNamara 2004-11-01 11:18:06 UTC
Created attachment 106008 [details]
patch to fix

caolanm->dcbw: the source .xls does not have a SummaryInformation Stream, sfx2
goes looking for it, but the test to see if its not there fails and so fx2
thinks it has one and allocs mem based on junk contents. Its pure luck that it
crashes the second time depending on the random contents of memory and not the
first, and probably pure luck that it's not blowing up for everyone else. The
attached patch fixes.

Comment 8 Need Real Name 2004-11-01 14:02:14 UTC
Excellent! :)

Comment 9 Dan Williams 2004-11-01 14:37:02 UTC
Caolan, this fix doesn't appear to be upstream.  Can you shepherd that
through?  It should be able to go into the "obvious fix" CWS I would
think.

http://framework.openoffice.org/source/browse/framework/sfx2/source/doc/docinf.cxx?rev=1.28&content-type=text/vnd.viewcvs-markup

Comment 10 Dan Williams 2004-11-01 14:37:52 UTC
Hmm, even if 1.1.3 works, it probably covers up the issue rather than
fixing it at the source.

Comment 11 Caolan McNamara 2004-11-01 14:48:37 UTC
OOo upstream is http://qa.openoffice.org/issues/show_bug.cgi?id=36280

Comment 12 Dan Williams 2004-11-01 20:55:43 UTC
should be in 1.1.2-11

Comment 13 Caolan McNamara 2004-11-02 18:39:32 UTC
*** Bug 135517 has been marked as a duplicate of this bug. ***

Comment 14 Caolan McNamara 2004-11-11 10:59:53 UTC
working in 1.1.2-11


Note You need to log in before you can comment on or make changes to this bug.