Issue 83991 - Crashes while formatting cells in icu
Summary: Crashes while formatting cells in icu
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.3
Hardware: PC Linux, all
: P4 Trivial (vote)
Target Milestone: ---
Assignee: caolanm
QA Contact: issues@sc
URL:
Keywords:
: 84046 107317 (view as issue list)
Depends on:
Blocks:
 
Reported: 2007-11-26 19:49 UTC by maldata
Modified: 2009-11-30 10:51 UTC (History)
1 user (show)

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


Attachments
mapped stack (10.47 KB, text/plain)
2007-11-27 09:42 UTC, caolanm
no flags Details
guess at a patch (428 bytes, patch)
2007-11-27 10:16 UTC, caolanm
no flags Details | Diff
Output of fc-match -v "Sans" (3.39 KB, text/plain)
2007-11-27 16:00 UTC, maldata
no flags Details
Output of rpm -qa | grep fonts (1.73 KB, text/plain)
2007-11-27 19:22 UTC, maldata
no flags Details
Output of fc-list (15.60 KB, text/plain)
2007-11-27 19:23 UTC, maldata
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description maldata 2007-11-26 19:49:41 UTC
When I select a block of cells and try to format them, OOo 2.3 crashes. The
process is very repeatable. I am running Fedora 8 on an i686 machine.

I get the following crash report:
(I)    x.org loaded video driver of...
(II) Loading /usr/lib/xorg/modules//drivers/intel_drv.so
(II) Loading /usr/lib/xorg/modules//drivers/sil164.so
(II) Loading /usr/lib/xorg/modules//drivers/ch7xxx.so
(II) Loading /usr/lib/xorg/modules//drivers/ivch.so
(II) Loading /usr/lib/xorg/modules//drivers/tfp410.so
(==) Depth 24 pixmap format is 32 bpp
(III)  Desktop is: GNOME
(IV)   libgcj version is: libgcj-4.1.2-33-i386
(V)    kernel is: Linux 2.6.23.1-49.fc8 #1 SMP Thu Nov 8 21:41:26 EST 2007 i686
i686 i386
(VI)   OpenOffice.org core rpm version is: openoffice.org-core-2.3.0-6.6.fc8-i386
(VII)  accessibility is: false
(VIII) fedora release is: Fedora release 8 (Werewolf)
...start free space details ...
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             34193472  10227948  23965524  30% /
/dev/sda3             34193472  10227948  23965524  30% /
...end free space details ...
...start sestatus details ...
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted
...end sestatus details ...
...start stackreport details ...
0x073f81a9: 0x001cd374: /usr/lib/openoffice.org/program/libuno_sal.so.3 + 0x211a9
0x073f8c6e: 0x001cd374: /usr/lib/openoffice.org/program/libuno_sal.so.3 + 0x21c6e
0x00110420: 0x00000000:  + 0x420 (__kernel_sigreturn + 0x0)
0x078a9437: 0x0003544c: /usr/lib/libicule.so.38 + 0x14437
0x078a5385: 0x0003544c: /usr/lib/libicule.so.38 + 0x10385
0x078aac59: 0x0003544c: /usr/lib/libicule.so.38 + 0x15c59
0x078a671c: 0x0003544c: /usr/lib/libicule.so.38 + 0x1171c
0x0789b36d: 0x0003544c: /usr/lib/libicule.so.38 + 0x636d
(icu_3_8::OpenTypeLayoutEngine::adjustGlyphPositions(unsigned short const*, int,
int, signed char, icu_3_8::LEGlyphStorage&, icu_3_8::LEErrorCode&) + 0xed)
0x0789ea2e: 0x0003544c: /usr/lib/libicule.so.38 + 0x9a2e
(icu_3_8::LayoutEngine::layoutChars(unsigned short const*, int, int, int, signed
char, float, float, icu_3_8::LEErrorCode&) + 0x12e)
0x07dd747a: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x28047a
0x07dd702b: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so +
0x28002b (ServerFontLayout::LayoutText(ImplLayoutArgs&) + 0x99)
0x07c75dfe: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x11edfe
0x07c77bbc: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x120bbc
0x07c78e05: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so +
0x121e05 (OutputDevice::GetTextArray(String const&, long*, unsigned short,
unsigned short) const + 0x6f)
0x07c78ef7: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so +
0x121ef7 (OutputDevice::GetTextWidth(String const&, unsigned short, unsigned
short) const + 0x29)
0x07dac990: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x255990
0x07dadbdb: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x256bdb
0x07dadd2b: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x256d2b
0x07db69d7: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so +
0x25f9d7 (ListBox::InsertEntry(String const&, unsigned short) + 0x37)
0x05c09791: 0x002cec04: /usr/lib/openoffice.org/program/libcui680li.so + 0x1b4791
0x05c0e86c: 0x002cec04: /usr/lib/openoffice.org/program/libcui680li.so + 0x1b986c
0x0282a73b: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so + 0x24773b
0x0282ae4c: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so + 0x247e4c
0x0282b027: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so +
0x248027 (SfxTabDialog::Execute() + 0x35)
0x01d404b1: 0x00085740: /usr/lib/openoffice.org/program/libscui680li.so + 0x1a4b1
0x047fb0e6: 0x00a86f60: /usr/lib/openoffice.org/program/libsc680li.so + 0x1c30e6
(ScTabViewShell::ExecuteCellFormatDlg(SfxRequest&, unsigned short) + 0x186)
0x0485cefb: 0x00a86f60: /usr/lib/openoffice.org/program/libsc680li.so + 0x224efb
0x04854251: 0x00a86f60: /usr/lib/openoffice.org/program/libsc680li.so + 0x21c251
0x027aea2b: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so + 0x1cba2b
0x027ad0e8: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so + 0x1ca0e8
0x027ad497: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so +
0x1ca497 (SfxDispatcher::_Execute(SfxShell&, SfxSlot const&, SfxRequest&,
unsigned short) + 0x14d)
0x027a4467: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so + 0x1c1467
0x027c100f: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so + 0x1de00f
0x027c1ba4: 0x003bd978: /usr/lib/openoffice.org/program/libsfx680li.so + 0x1deba4
0x0367a4f2: 0x0027f21c: /usr/lib/openoffice.org/program/libfwk680li.so + 0xbf4f2
0x0367a59b: 0x0027f21c: /usr/lib/openoffice.org/program/libfwk680li.so + 0xbf59b
0x07be8b93: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x91b93
0x07d28c52: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so +
0x1d1c52 (Menu::Select() + 0x46)
0x07d22ff2: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x1cbff2
0x07d23007: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x1cc007
0x07be8b93: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x91b93
0x07d7955e: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x22255e
0x003e92c9: 0x000826bc: /usr/lib/openoffice.org/program/libvclplug_gen680li.so +
0x1f2c9
0x00411e6a: 0x000826bc: /usr/lib/openoffice.org/program/libvclplug_gen680li.so +
0x47e6a (SalDisplay::DispatchInternalEvent() + 0x78)
0x00310679: 0x00058af0: /usr/lib/openoffice.org/program/libvclplug_gtk680li.so +
0x14679
0x003106a8: 0x00058af0: /usr/lib/openoffice.org/program/libvclplug_gtk680li.so +
0x146a8
0x06587491: 0x000c90c4: /lib/libglib-2.0.so.0 + 0x2b491
0x0658905c: 0x000c90c4: /lib/libglib-2.0.so.0 + 0x2d05c (g_main_context_dispatch
+ 0x17c)
0x0658c49f: 0x000c90c4: /lib/libglib-2.0.so.0 + 0x3049f
0x0658ca05: 0x000c90c4: /lib/libglib-2.0.so.0 + 0x30a05
(g_main_context_iteration + 0x65)
0x003104a8: 0x00058af0: /usr/lib/openoffice.org/program/libvclplug_gtk680li.so +
0x144a8
0x004180bd: 0x000826bc: /usr/lib/openoffice.org/program/libvclplug_gen680li.so +
0x4e0bd (X11SalInstance::Yield(bool, bool) + 0x2f)
0x07bf0ddf: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x99ddf
(Application::Yield(bool) + 0x57)
0x07bf0e9d: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x99e9d
(Application::Execute() + 0x2b)
0x0338a7db: 0x000622ec: /usr/lib/openoffice.org/program/libsoffice.so + 0x247db
(desktop::Desktop::Main() + 0x15fb)
0x07bf5933: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x9e933
0x07bf5a49: 0x003d903c: /usr/lib/openoffice.org/program/libvcl680li.so + 0x9ea49
(SVMain() + 0x2d)
0x03383e3e: 0x000622ec: /usr/lib/openoffice.org/program/libsoffice.so + 0x1de3e
(main + 0xe2)
0x00127390: 0x00154d7c: /lib/libc.so.6 + 0x16390 (__libc_start_main + 0xe0)
0x080484e1: 0x000006f8: /usr/lib/openoffice.org/program/scalc.bin + 0x4e1 (main
+ 0x59)
...end stackreport details ...
...start sample ldd details ...
	linux-gate.so.1 =>  (0x00110000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x002bc000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00170000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x0020a000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00226000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00242000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x0024c000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0x006c3000)
	libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0x0028d000)
	libdl.so.2 => /lib/libdl.so.2 (0x00291000)
	libgthread-2.0.so.0 => /lib/libgthread-2.0.so.0 (0x00296000)
	librt.so.1 => /lib/librt.so.1 (0x00746000)
	libdbus-glib-1.so.2 => /usr/lib/libdbus-glib-1.so.2 (0x0074f000)
	libdbus-1.so.3 => /lib/libdbus-1.so.3 (0x0076c000)
	libgobject-2.0.so.0 => /lib/libgobject-2.0.so.0 (0x007ab000)
	libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x007eb000)
	libvclplug_gen680li.so =>
/usr/lib/openoffice.org/program/libvclplug_gen680li.so (0x008b5000)
	libvcl680li.so => /usr/lib/openoffice.org/program/libvcl680li.so (0x0093e000)
	libpsp680li.so => /usr/lib/openoffice.org/program/libpsp680li.so (0x00d1e000)
	libsot680li.so => /usr/lib/openoffice.org/program/libsot680li.so (0x00e22000)
	libutl680li.so => /usr/lib/openoffice.org/program/libutl680li.so (0x00e8a000)
	libtl680li.so => /usr/lib/openoffice.org/program/libtl680li.so (0x00f28000)
	libcomphelp4gcc3.so => /usr/lib/openoffice.org/program/libcomphelp4gcc3.so
(0x00fd5000)
	libucbhelper4gcc3.so => /usr/lib/openoffice.org/program/libucbhelper4gcc3.so
(0x0359e000)
	libuno_cppuhelpergcc3.so.3 =>
/usr/lib/openoffice.org/program/libuno_cppuhelpergcc3.so.3 (0x03a78000)
	libuno_cppu.so.3 => /usr/lib/openoffice.org/program/libuno_cppu.so.3 (0x02cdd000)
	libvos3gcc3.so => /usr/lib/openoffice.org/program/libvos3gcc3.so (0x02c20000)
	libuno_sal.so.3 => /usr/lib/openoffice.org/program/libuno_sal.so.3 (0x05929000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x04297000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x029b3000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x02aa6000)
	libstlport_gcc.so => /usr/lib/openoffice.org/program/libstlport_gcc.so (0x03dbd000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x040cc000)
	libm.so.6 => /lib/libm.so.6 (0x02c56000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x02947000)
	libc.so.6 => /lib/libc.so.6 (0x04c66000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x05305000)
	libpng12.so.0 => /usr/lib/libpng12.so.0 (0x05767000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x05899000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x0538d000)
	libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x0029b000)
	libXi.so.6 => /usr/lib/libXi.so.6 (0x01101000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x05349000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x053af000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x058dd000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x064f3000)
	libz.so.1 => /lib/libz.so.1 (0x054e1000)
	/lib/ld-linux.so.2 (0x0029f000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x055ad000)
	libcap.so.1 => /lib/libcap.so.1 (0x052c1000)
	libSM.so.6 => /usr/lib/libSM.so.6 (0x0110a000)
	libICE.so.6 => /usr/lib/libICE.so.6 (0x055cf000)
	libi18nisolang1gcc3.so =>
/usr/lib/openoffice.org/program/libi18nisolang1gcc3.so (0x02bd2000)
	libbasegfx680li.so => /usr/lib/openoffice.org/program/libbasegfx680li.so
(0x03892000)
	libicuuc.so.38 => /usr/lib/libicuuc.so.38 (0x050d2000)
	libicule.so.38 => /usr/lib/libicule.so.38 (0x031b2000)
	libjvmaccessgcc3.so.3 => /usr/lib/openoffice.org/program/libjvmaccessgcc3.so.3
(0x02c12000)
	libjvmfwk.so.3 => /usr/lib/openoffice.org/program/libjvmfwk.so.3 (0x02ed2000)
	libuno_salhelpergcc3.so.3 =>
/usr/lib/openoffice.org/program/libuno_salhelpergcc3.so.3 (0x02b92000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x03132000)
	libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0x02b32000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x02e72000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x02b52000)
	libexpat.so.1 => /lib/libexpat.so.1 (0x0546d000)
	libicudata.so.38 => /usr/lib/libicudata.so.38 (0xb74ac000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x01113000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x05452000)
...end sample ldd details ...
Comment 1 frank 2007-11-27 09:27:29 UTC
Hi,

seems to be a problem with the fedora builds. Please have a look at this one.

Frank
Comment 2 caolanm 2007-11-27 09:42:50 UTC
Created attachment 49926 [details]
mapped stack
Comment 3 caolanm 2007-11-27 10:06:51 UTC
This is probably strongly related to a particular font or a sequence of text.
I'm not seeing any problems with valgrind moving through the tabs and entries in
the format cell dialog. So...

a) what's the "application font" in system->preferences->look &
feel->appearance->fonts

b) and then attach the output of ...

fc-match -v "Sans"

and replace the word "Sans" with the application font name if it is not already
Sans.

c) and what's your locale, i.e. in gnome-terminal the output of
echo $LANG
Comment 4 caolanm 2007-11-27 10:16:24 UTC
Created attachment 49928 [details]
guess at a patch
Comment 5 caolanm 2007-11-27 10:17:21 UTC
Just sticking er on cc in case it does turn out to be an icu crash and the
previous patch is revealed to be useful
Comment 6 maldata 2007-11-27 16:00:01 UTC
Created attachment 49942 [details]
Output of fc-match -v "Sans"
Comment 7 maldata 2007-11-27 16:01:21 UTC
The output of fc-match -v "Sans" is attached above. That is my application font,
and is the default for Fedora 8. My locale is en_US.UTF-8
Comment 8 caolanm 2007-11-27 16:13:39 UTC
That's odd, I have an up to date F-8 and same locale and same font and no crash
of any kind, and normally I'd expect to see hundreds of bug-reports on such
basic functionality

So, does this happen always, e.g. in a blank spreadsheet, or only with one
particular spreadsheet. And what is the last thing before it crashes, i.e. is it
right after you use format->cells, or is it when you go to a particular tab, or
does it happen on clicking something specific. I'm having a hard time
reproducing this.
Comment 9 maldata 2007-11-27 17:57:04 UTC
Nope, nothing interesting about it at all. I just open a blank spreadsheet,
click a cell at random, and hit format cells. Then it crashes and gives me that
report.

I noticed in the report it mentions libgcj. That's not involved here, is it?
Because ever since I upgraded to F8, everything that needs Java has been broken.
Comment 10 caolanm 2007-11-27 18:16:31 UTC
I cannot understand how such a default installation can be so fundamentally
broken, but for so few reporters. There has to be something at least slightly
unusual involved here, so can you attach the output of...

rpm -qa | grep fonts 
and
fc-list

Are you aware of anything unusual about your setup, like third party fonts or a
special gnome theme ?

I don't think gcj/java is a factor here.
Comment 11 maldata 2007-11-27 19:22:31 UTC
Created attachment 49946 [details]
Output of rpm -qa | grep fonts
Comment 12 maldata 2007-11-27 19:23:14 UTC
Created attachment 49947 [details]
Output of fc-list
Comment 13 maldata 2007-11-27 19:30:36 UTC
Attached above are the files you requested. 

I do have third-party fonts. I have a Windows machine from which I copied the
TrueType fonts. I collaborate on documents from Windows users, so I need to keep
them installed if possible so the documents don't get messed up. I installed
them by simply copying the .ttf files from my Windows partition and pasting them
into the font folder accessible from system->preferences->look &
feel->appearance->fonts.

The gnome theme is default.
Comment 14 caolanm 2007-11-28 10:39:26 UTC
Reproduced, I dropped in all the windows fonts I could find, mscorefonts wasn't
sufficient, and got the crash. Looks like it is "kartika.ttf" "Kartika"
Comment 15 ooo 2007-11-28 11:13:06 UTC
I assume that is a system icu that does not have the patch Herbert added to
handle broken fonts. If that would occur with OOo's patched icu I guess we would
had received many more reports if mscorefonts is the culprit..

Adding 'hdu' to Cc, hopefully he's able to identify the necessary patch much
quicker than I. Unfortunately we don't have separate patches instead of the one
big accumulated bunch, gee, how I hate that..

@Herbert: or am I wrong in assuming that would be the cause?
Comment 16 caolanm 2007-11-28 11:52:34 UTC
Nah, the font isn't broken, I suspect that this shouldn't affect "vanilla" OOo
on top of the 3.6 icu, but only certain Malayalam fonts on 3.8 fedora icu. i.e.
this is an interesting edge case regression in our (rh) malayalam icu glyph
reordering which we've been working on. 

Feel free to drop CCes on this, it's not a problem that should affect the
internal icu. (which isn't to say that it's a "stupid distro thing", just that
our efforts to make Malayalam readable went awry)
Comment 17 ooo 2007-11-28 13:08:00 UTC
Ok, removing CCs to quiet down inboxes..
Comment 18 caolanm 2007-11-28 14:25:13 UTC
I believe that this rpm will now solve your problem if you want to download and
rpm --upgrade it
http://koji.fedoraproject.org/packages/icu/3.8/3.fc8/i386/libicu-3.8-3.fc8.i386.rpm
I'll push a fedora update with that rpm anyway
Comment 19 caolanm 2007-11-28 14:32:01 UTC
*** Issue 84046 has been marked as a duplicate of this issue. ***
Comment 20 caolanm 2007-11-29 16:39:01 UTC
libicu-3.8-3.fc8 pushed as update for F-8
Comment 21 maldata 2007-11-30 15:20:58 UTC
Received the update through Fedora package updater this morning and tested it.
Everything looks ok.
Comment 22 caolanm 2009-11-30 10:51:52 UTC
*** Issue 107317 has been marked as a duplicate of this issue. ***