Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228703 - app-office/openoffice-bin-2.4.1 programs segfault with LC_ALL="de_DE.utf8"
Summary: app-office/openoffice-bin-2.4.1 programs segfault with LC_ALL="de_DE.utf8"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-21 09:55 UTC by Michael Schachtebeck
Modified: 2008-10-16 20:55 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schachtebeck 2008-06-21 09:55:26 UTC
app-office/openoffice-bin-2.4.1 crashes if LC_ALL is set to de_DE.utf8. However, setting it to en_US works. The previous version (2.4.0) does not crash, even with the de_DE.utf8 locale. To be sure that it is not related to a broken config file, I removed ~/.ooo-2.0 before testing.

Reproducible: Always

Steps to Reproduce:
1. declare -x LC_ALL="de_DE.utf8"
2. oowriter
3. declare -x LC_ALL="en_US"
4. oowriter
Actual Results:  
first call: /usr/bin/soffice: line 254:  6623 Speicherzugriffsfehler  "$sd_prog/$sd_binary" "$@" (Speicherzugriffsfehler is German for segmentation fault)

second call: works fine

Expected Results:  
should work for all valid settings of LC_ALL

Portage 2.2_rc1 (default-linux/x86/2007.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.0
Timestamp of tree: Sat, 21 Jun 2008 07:04:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/distfiles/"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS=""
LINGUAS="de nds"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/sunrise /usr/local/layman/science /usr/local/portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa apache2 apm arts artswrappersuid audiofile avi bash-completion bcmath berkdb browserplugin bzip2 bzlib cairo cdparanoia cdr cli cracklib crypt cups dbus dga directfb divx divx4linux dri dv dvd dvdr dvdread eds emacs emboss encode evo exif fam fbcon ffmpeg firefox foomaticdb fortran ftp gdbm gif glx gmedia gpm gstreamer gtk gtk2 hal hardened hpn iconv icq imagemagick imap isdnlog jack jikes jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos lm_sensors mad maildir mailwrapper mbox midi mikmod mime mmx mmxext mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl openmp oscar oss pam pcre pdf perl pic plotutils png posix ppds pppd python qt qt3 qt3support qt4 quicktime readline real reflection samba scanner sdl session slang sndfile speex spell spl sse sse2 ssl svg svga symlink tcpd tetex theora threads tidy tiff truetype unicode usb vcd vidix vorbis win32codecs wmp x86 xcomposite xine xorg xosd xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de nds" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Richard Unger 2008-06-22 12:53:08 UTC
I had the same problem after an emerge world.

(Re)create the file /etc/env.d/02locale   as described in:
http://www.gentoo.org/doc/en/guide-localization.xml

This solved the problem for me. My 02locale file contains the lines:

LC_ALL="en_US"
LANG="en_US"

OpenOffice works fine once more...

Comment 2 Michael Schachtebeck 2008-06-22 13:26:37 UTC
My /etc/env.d/02locale already contains

LC_ALL="de_DE.utf8"
LANG="de_DE.utf8"

I tried env-update, but it did not solve the problem.
Comment 3 Mike Auty (RETIRED) gentoo-dev 2008-06-25 18:26:57 UTC
Hmmm,

I'm also getting crashes on openoffice-bin-2.4.1.  I hadn't initially thought they were LANG/LC_ALL related, but on a hunch I tried out a few tests.

My default LANG="C" and LC_ALL="", they're not set on the command line, they're part of my default env.  Running oowriter (for example) then segfaults.

Oddly, any one of the below seems to reliably allow oowriter to start up.

LC_ALL="" oowriter
LANG="en_US" oowriter
GTK_MODULES="" oowriter

Interestingly, LANG="C" oowriter, doesn't.  Also, for those that don't know, the GTK_MODULES variable specifies which libraries all GTK based programs load up on startup.  By default it contains gnomebreakpad, which is the segfault catching bug reporting bug-buddy type program.  It's been known to cause certain problems with Java in the past too, but I believe they've been fixed now.

I don't know if that helps diagnose the problem, but it definitely exists, and seems quite odd too...
Comment 4 Olivier Mehani 2008-06-25 22:51:45 UTC
Same issue with en_US.utf8 in /etc/env.d/02locale:
LC_ALL="en_US.UTF-8"

It behaves the same when started with
LC_ALL=en_US ooffice ...

But works well forcing the language to C:
LC_ALL=C ooffice ...
Comment 5 brullo nulla 2008-07-04 23:09:08 UTC
(In reply to comment #4)
> Same issue with en_US.utf8 in /etc/env.d/02locale:
> LC_ALL="en_US.UTF-8"
> 
> It behaves the same when started with
> LC_ALL=en_US ooffice ...
> 
> But works well forcing the language to C:
> LC_ALL=C ooffice ...

To me, it was not working. Paradoxically, adding it_IT.UTF-8 to /etc/locale.gen and running locale-gen fixed the issue.
Comment 6 brullo nulla 2008-07-05 11:54:36 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Same issue with en_US.utf8 in /etc/env.d/02locale:
> > LC_ALL="en_US.UTF-8"
> > 
> > It behaves the same when started with
> > LC_ALL=en_US ooffice ...
> > 
> > But works well forcing the language to C:
> > LC_ALL=C ooffice ...
> 
> To me, it was not working. Paradoxically, adding it_IT.UTF-8 to /etc/locale.gen
> and running locale-gen fixed the issue.

I was wrong.
It still crashes, it just "survives" a bit more (oocalc opens but when trying to open a file, it segfaults again).

Comment 7 Marko Steinberger 2008-07-19 12:19:37 UTC
I can confirm it works with LC_ALL="de_DE" or LC_ALL="de_DE@euro". 

This is what is in my /etc/locale.gen:

de_DE ISO-8859-1
de_DE@euro ISO-8859-15
de_DE.UTF-8 UTF-8

locale -a prints out the following:
C
de_DE
de_DE@euro
de_DE.utf8
POSIX

So I suspect this is some issue with OO's unicode handling.
Comment 8 Marko Steinberger 2008-07-19 12:46:34 UTC
I have filed a bug at OpenOffice.org on this.

http://www.openoffice.org/issues/show_bug.cgi?id=91846

Comment 9 Alex Iribarren 2008-07-21 09:23:15 UTC
I'm seeing this same problem with en_US.utf8:

~ $ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8
~ $ oowriter 
libGL warning: 3D driver claims to not support visual 0x5b
/usr/bin/soffice: line 254:  8964 Segmentation fault      "$sd_prog/$sd_binary" "$@"

I would down-grade to 2.4.0 but the ebuild has been removed. Could someone please put it back into portage? I need OpenOffice for my job, so this bug is pretty crippling.
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2008-07-21 10:33:40 UTC
(In reply to comment #9)
> I would down-grade to 2.4.0 but the ebuild has been removed. Could someone
> please put it back into portage?

It was removed as it has security issues. But in Gentoo all ebuilds are in CVS, so it's always possible to download old package:

http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/?hideattic=0

Comment 11 Michael Schachtebeck 2008-07-23 05:45:18 UTC
The source-based version (non-bin) works well for me, maybe this also is a workaround for you, Alex.
Comment 12 Marko Steinberger 2008-09-29 20:28:05 UTC
Working with openoffice-bin-3.0.0 (RC1 and now RC2) I do not experience any problems of this kind anymore.
Comment 13 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-16 20:55:24 UTC
(In reply to comment #12)
> Working with openoffice-bin-3.0.0 (RC1 and now RC2) I do not experience any
> problems of this kind anymore.
> 

As this is now unmasked, closing. Thanks for reporting back!