Bug 84994 - New kdelibs (3.2.91) blocks Ximian OpenOffice
Summary: New kdelibs (3.2.91) blocks Ximian OpenOffice
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-12 12:19 UTC by Diego Elio Pettenò
Modified: 2004-07-13 07:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
strace log for Ximian OpenOffice running on KDE 3.3.0_beta1 (757.78 KB, text/plain)
2004-07-12 12:21 UTC, Diego Elio Pettenò
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò 2004-07-12 12:19:28 UTC
Version:            (using KDE KDE 3.2.91)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) Gentoo's default
OS:                Linux

After the upgrade to KDE 3.3.0_beta1 (from alpha1), Ximian OpenOffice (both 1.1.60 and 1.1.61 versions) crashes with SIGSEGV when I try to load it.

The ouput is:

kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/Smokey-Red/ group 48x48/emblems not valid.
QGArray::at: Absolute index -1 out of range
sh: line 1: crash_report: command not found
QGArray::at: Absolute index -1 out of range
Segmentation fault

[Note: there's a lot of kdecore's WARNINGs, but I removed them, because they are printed out on all kde apps starts, and I saw that in CVS are now moved to debug messages.]

Using KDE 3.3.0_alpha1, the four lines above aren't printed out and the program starts correctly.
At the moment I can't strace Ximian OpenOffice using kde 3.3.0_alpha1 (I completely upgraded to beta1 and with gentoo isn't so quick :) ), but I attach the strace for beta1.

I'm not so able reading at straces, but the two messages of index out of range appears after the opening of /dev/null (which is tried to be set up like a tty?), and then reading from it (it shouldn't be possible, right?). As a developer, I can imagine that in the code of Ximian-OpenOffice there's something like

int readBytes = read(...);
array[readBytes-1]

without test if readBytes is at least 1.
What I can't imagine is why on alpha1 it works perfectly, I also rebuilt Ximian OpenOffice thinking that beta1 was source-compatible but not binary-compatible, but nothing changed.
Comment 1 Diego Elio Pettenò 2004-07-12 12:21:20 UTC
Created attachment 6638 [details]
strace log for Ximian OpenOffice running on KDE 3.3.0_beta1
Comment 2 Waldo Bastian 2004-07-12 13:09:22 UTC
Does r1.152 of kdelibs/kdeui/kxmlguifactory.cpp fix this problem?
Comment 3 Diego Elio Pettenò 2004-07-13 07:31:03 UTC
Yes r1.152 fixes it :)