Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210845 - app-office/openoffice-bin-2.3.1: hangs without load or error message
Summary: app-office/openoffice-bin-2.3.1: hangs without load or error message
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-20 08:17 UTC by Michael Hammer (RETIRED)
Modified: 2008-03-16 21:05 UTC (History)
0 users

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 Hammer (RETIRED) gentoo-dev 2008-02-20 08:17:25 UTC
If I start ooffice with a non existing ~/.ooo-2.0 it hangs already after answering al registration questions pressing the "Finish" button. Then I kill ooffice and all realted processes.

After that I can start e.g. oocalc and the working window pops up. Sometimes Openoffice hangs already here or at least hangs if I press tools -> options -> security -> "Macro Security ..."

That's a really annoying situation. The problem for me is especially the missing error message. It's also very strange that there is no load produced by the openoffice app during the lock.

I found a bug on debian which seams to be related to my problem:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464507

I didn't get the error messages on console he describes in his report. strace didn't give any further (for me interpretable) info ...

Reproducible: Always

Steps to Reproduce:
1. start oocalc
2. goto tools -> options -> security
3. press "Macro Security ..." button

Actual Results:  
openoffice hangs and do not respond. If I resize the window the content isn't rerendered. There is no cpu load.


Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Timestamp of tree: Wed, 20 Feb 2008 01:31:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="de"
MAKEOPTS="-j15"
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/portage/local/layman/gentoo-de /usr/portage/local/layman/ffmpeg-svn /usr/portage/local/layman/synce /usr/portage/local/mueli"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl alsa amd64 arts asf berkdb bitmap-fonts browserplugin bzip2 cdda cddb cdparanoia cgi cjk cli cracklib crypt cups dbus divx dri dvb dvd dvdr dvdread effects emacs encode fastcgi ffmpeg flac force-cgi-redirect fortran ftp gdbm gif gimpprint gmedia gpm gstreamer gtk iconv icq imap imlib ipod ipv6 irc isdnlog jabber java jpeg jpeg2k kde kdeenablefinal kerberos ladspa latin1 lcms ldap lesstif libcaca lm_sensors mad midi mmx mng mono motif mp3 mp4 mpeg mudflap musicbrainz mysql ncurses neXt nfs nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl plotutils png pppd python qt3 quicktime readline realmedia reflection rss rtsp sasl session slang spl sse sse2 ssl subversion tcpd tetex threads tiff tk truetype-fonts type1-fonts unicode vorbis wmf wmp wxwindows x264 xcomposite xine xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="kbd mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2008-03-02 22:58:18 UTC
Do you get any output in a console when run from there. Also: What happens if you try to change the java-settings?
Comment 2 Michael Hammer (RETIRED) gentoo-dev 2008-03-03 09:53:54 UTC
There are no outputs in the console, no error and no cpu load.

What do you mean by java-settings? I have set the VM to

mueli@michael:~$ sudo eselect java-vm list
Available Java Virtual Machines:
  [1]   blackdown-jdk-1.4.2 
  [2]   blackdown-jre-1.4.2 
  [3]   emul-linux-x86-java-1.5 
  [4]   emul-linux-x86-java-1.6 
  [5]   ibm-jdk-bin-1.5 
  [6]   sun-jdk-1.5 
  [7]   sun-jdk-1.6  system-vm
  [8]   sun-jre-bin-1.5 
  [9]   sun-jre-bin-1.6 

and the problem also occurs with the following settings:

mueli@michael ~ $ sudo eselect java-vm set system 4
mueli@michael ~ $ sudo eselect java-vm set system 3
mueli@michael ~ $ sudo eselect java-vm set system 9
mueli@michael ~ $ sudo eselect java-vm set system 8

What I have now done is to strace the child processes and the most promising output to find a clue for the porblem was this:

[...]
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0x1000) = 0xfffffffff5001000
read(35, 0xff908a68, 8192)              = -1 EISDIR (Is a directory)
close(35)                               = 0
munmap(0xf5001000, 4096)                = 0
gettimeofday({1204537807, 751216}, NULL) = 0
pipe([35, 36])                          = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_IGN}, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0) = 31822
futex(0xf6d7a120, FUTEX_WAKE, 1)        = 1
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
close(36)                               = 0
fcntl64(35, F_GETFL)                    = 0 (flags O_RDONLY)
fstat64(0x23, 0xff90a96c)               = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0x1000) = 0xfffffffff5001000
_llseek(35, 0, 0xff90a9c4, SEEK_CUR)    = -1 ESPIPE (Illegal seek)
read(35, 

obviously lseek() fails. But for me - that doesn't get me further ;)

g, Mueli
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2008-03-03 10:16:22 UTC
(In reply to comment #2)
> 
> What do you mean by java-settings? I have set the VM to
>

Actually I was refering to the java-settings in OOo itself: Check Tools > Options > OpenOffice.org > Java
Comment 4 Michael Hammer (RETIRED) gentoo-dev 2008-03-03 10:52:31 UTC
Hmm - as soon as I try to klick on Tools > Options > OpenOffice.org > Java ooffice hangs ;) But what I see is, that there are no JREs available in the list. Should there be an entry?
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2008-03-03 11:07:24 UTC
(In reply to comment #4)
> Hmm - as soon as I try to klick on Tools > Options > OpenOffice.org > Java
> ooffice hangs ;) But what I see is, that there are no JREs available in the
> list. Should there be an entry?
> 

If you have one installed, there should be ;) But this shows that it seems to be a java-relate issue. Did you emerge openoffice-bin with or without java-use-flag? If the first one is true you might try to emerge it again with USE="-java" and see if that helps
Comment 6 Hanno Zysik (geki) 2008-03-03 11:25:28 UTC
@Andreas
JFYI, wrt the empty JRE list on Tools > Options > OpenOffice.org > Java.
With 2.4rc I have to copy sunjavapluginrc file to .../program/ directory so that the installed JREs are found again. See:
https://forums.gentoo.org/viewtopic-p-4821506.html#4821506

May be that is also for 2.3.x, vanilla, too?

ebuild code:
    cp ${S}/build/${SRC}/solver/*/*/lib/sunjavapluginrc \
        ${D}/usr/$(get_libdir)/openoffice/program/ \
        || die "java plugin config not found!"
Comment 7 Andreas Proschofsky (RETIRED) gentoo-dev 2008-03-03 11:46:10 UTC
(In reply to comment #6)
> @Andreas
> JFYI, wrt the empty JRE list on Tools > Options > OpenOffice.org > Java.
> With 2.4rc I have to copy sunjavapluginrc file to .../program/ directory so
> that the installed JREs are found again.

Works fine here with 2.4rc2 without copying that file.

Also we are talking about openoffice-bin here, so I guess at least here this shouldn't be the issue ;)

Still: Will take another look at that, thanks for pointing it out...
Comment 8 Michael Hammer (RETIRED) gentoo-dev 2008-03-03 14:02:07 UTC
@Hanno: thanks for the advice but as Andreas already said - we are talking
about openoffice-bin. 

@Andreas: Can I assist you in any way to apply the advice of Hanno on the
binary version? I've tried USE="-java" but it didn't help either. Do you have
any further ideas - I am still willing to help to investigate the problem.

g, Mueli

Comment 9 Michael Hammer (RETIRED) gentoo-dev 2008-03-16 21:04:12 UTC
I've tried the problem on other amd64 installations but couldn't reproduce it - therefore I'd say the problem resists somewhere in my personal profile and I can not demand the fix of the devs if they aren't able to reproduce the problem. I'll simply clean the broken installation on the affected machine and reinstall the environment because the problem didn't occur on fresh installations. Therefore I will close the bug. But thx so far for your help!