Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65406 - After upgrading from xfree to xorg-x11, OpenOffice.org will not start and segfaults
Summary: After upgrading from xfree to xorg-x11, OpenOffice.org will not start and seg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 69364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-26 07:44 UTC by Marko Djukic
Modified: 2005-01-03 12:28 UTC (History)
2 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 Marko Djukic 2004-09-26 07:44:19 UTC
I changed from xfree to xorg, by unmerging xfree and then emerging xorg 6.8.0-r1. Xorg installed fine and ran. Many apps continued running without changes: moz, opera, mplayer, gimp, xchat etc. However, openoffice 1.1.2 would not start, and would simply segfault.

I tried remerging openoffice-bin, but no change. I tried removing my old OOo user dirs and again no change. It tries to run the setup script and segfaults: 
marko@gershwin marko $ ooffice 
running openoffice.org setup...
/usr/bin/ooffice: line 178: 28192 Segmentation fault      /opt/OpenOffice.org/program/setup ${UPDATEFLAG} -R:/etc/openoffice/autoresponse-1.1.2.conf 1>&/dev/null
setup failed.. abort

Here's a gdb backtrace if it is of any help:
marko@gershwin marko $ gdb /opt/OpenOffice.org/program/setup.bin
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /opt/OpenOffice.org/program/setup.bin 
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIG32, Real-time event 32.
0x40fec4b0 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Marko Djukic 2004-09-26 07:46:09 UTC
Ok, noticed something strange. If I try running OOo as root it will run fine. No other user is able to run OOo. So I'm guessing it could be something trivial?
Comment 2 Marko Djukic 2004-09-26 08:10:03 UTC
Another bit of information if it is of any help. Tuxracer also segfaults when it is run as a user, but runs without problems when root. Here's the gdb output of tuxracer:

marko@gershwin marko $ gdb tuxracer
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/games/bin/tuxracer
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: shared library handler failed to enable breakpoint
Tux Racer 0.61 -- a Sunspire Studios Production (http://www.sunspirestudios.com)
(c) 1999-2000 Jasmin F. Patry <jfpatry@sunspirestudios.com>
"Tux Racer" is a trademark of Jasmin F. Patry
Tux Racer comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
See http://www.gnu.org/copyleft/gpl.html for details.


Program received signal SIGSEGV, Segmentation fault.
0x4029ec4b in ?? ()
(gdb) backtrace
#0  0x4029ec4b in ?? ()
#1  0x403985a0 in ?? ()
#2  0x40394643 in ?? ()
#3  0x405fdacf in ?? ()
#4  0x4060c308 in ?? ()
#5  0x40568523 in ?? ()
#6  0xbfc381ff in ?? ()
#7  0xbfffeb48 in ?? ()
#8  0x40567457 in ?? ()
#9  0xbfc381ff in ?? ()
#10 0x403985a0 in ?? ()
#11 0x403985a0 in ?? ()
#12 0x40394643 in ?? ()
#13 0x405fdacf in ?? ()
#14 0xffffffff in ?? ()
#15 0x4036686a in ?? ()
#16 0x40568523 in ?? ()
#17 0x00000001 in ?? ()
#18 0xbfffebb8 in ?? ()
#19 0xbfffebbc in ?? ()
#20 0xbfffeb8c in ?? ()
#21 0xbfffebf0 in ?? ()
(gdb)
Comment 3 Marko Djukic 2004-09-26 10:24:36 UTC
Just to let you know, I downgraded to 6.7.0-r2 and everything works fine now. So it is seems like something in the 6.8.0 build that is not right.
Comment 4 Craig Bradney 2004-10-14 13:08:56 UTC
oo.org 1.1.2 works with xorg 6.8.0r1 on x86, 1.1.3 craps out. forums may suggest a DRI issue.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-14 13:40:59 UTC
Could I get an strace of oo.o starting please
Comment 6 Craig Bradney 2004-10-14 15:10:41 UTC
http://forums.gentoo.org/viewtopic.php?t=224666&highlight=openoffice+xorg has some info.
Comment 7 Craig Bradney 2004-10-14 15:25:57 UTC
This is dumped to console. The oo.org crash handler comes up and asks if u want to send info to them

$ oowriter


Fatal exception: Signal 11
Stack:
/opt/OpenOffice.org/program/libsal.so.3[0x40bd93a8]
/opt/OpenOffice.org/program/libsal.so.3[0x40bd9532]
/opt/OpenOffice.org/program/libsal.so.3[0x40bd95f8]
/lib/libpthread.so.0[0x411353d1]
[0xffffe420]
/opt/OpenOffice.org/program/libpsp645li.so(_ZN3psp16PrintFontManager13Type1FontFile15queryMetricPageEiPN3utl17MultiAtomProviderE+0x53)[0x413ed027]
/opt/OpenOffice.org/program/libpsp645li.so(_ZNK3psp16PrintFontManager12getKernPairsEib+0xd6)[0x413fae76]
/opt/OpenOffice.org/program/libvcl645li.so(_ZN11SalGraphics14GetDevFontListEP15ImplDevFontList+0x77a)[0x402aab7c]
/opt/OpenOffice.org/program/libvcl645li.so(_ZNK12OutputDevice16ImplInitFontListEv+0x47)[0x4016b94f]
/opt/OpenOffice.org/program/libvcl645li.so(_ZN6Window24ImplUpdateGlobalSettingsER11AllSettingsh+0x4c)[0x40214b5e]
/opt/OpenOffice.org/program/libvcl645li.so(_ZN11Application19MergeSystemSettingsER11AllSettings+0x70)[0x400eb3cc]
/opt/OpenOffice.org/program/libofa645li.so(_ZN19OfaTabAppearanceCfg22SetApplicationDefaultsEP11Application+0x22f)[0x479fe66d]
/opt/OpenOffice.org/program/libofa645li.so(_ZN17OfficeApplication4InitEv+0x7e3)[0x479ff399]
/opt/OpenOffice.org/program/libsfx645li.so(_ZN14SfxApplication15Initialize_ImplEv+0xf5d)[0x48705195]
/opt/OpenOffice.org/program/libsfx645li.so(_ZN14SfxApplication6SetAppEPS_+0x8b)[0x487147ed]
/opt/OpenOffice.org/program/libofa645li.so(_ZN17OfficeApplicationC1Ev+0x265)[0x479f936b]
/opt/OpenOffice.org/program/libwrp645li.so[0x478fb381]
/opt/OpenOffice.org/program/libcppuhelpergcc3.so.3[0x40b710b8]
/opt/OpenOffice.org/program/libcppuhelpergcc3.so.3[0x40b71cd1]
/opt/OpenOffice.org/program/libcppuhelpergcc3.so.3[0x40b727cb]
/opt/OpenOffice.org/program/servicemgr.uno.so[0x46ad2190]
/opt/OpenOffice.org/program/servicemgr.uno.so[0x46ad26c8]
/opt/OpenOffice.org/program/soffice.bin(_ZN7desktop7Desktop4MainEv+0x13a7)[0x8065009]
/opt/OpenOffice.org/program/libvcl645li.so(_Z6SVMainv+0x49)[0x400efe97]
/opt/OpenOffice.org/program/libvcl645li.so(main+0x4c)[0x402b7524]
/lib/libc.so.6(__libc_start_main+0xc0)[0x412dc460]
/opt/OpenOffice.org/program/soffice.bin(_ZN6Window11RequestHelpERK9HelpEvent+0x3d)[0x805ea01]
Aborted


Comment 8 Craig Bradney 2004-10-14 15:36:13 UTC
Ok.. just tested.. works FINE as root.. even with DRI on.

When I move my .sversionrc and .openoffice dirs to new names and run oowriter I get:
running openoffice.org setup...
/usr/bin/oowriter: line 178: 28910 Segmentation fault      /opt/OpenOffice.org/program/setup ${UPDATEFLAG} -R:/etc/openoffice/autoresponse-1.1.3.conf >&/dev/null
setup failed.. abort
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-14 16:29:47 UTC
I don't need to get every post twice.
Comment 10 Craig Bradney 2004-10-23 06:55:35 UTC
Any progress on this? Ive just submitted 68631 because OO.org 1.1.2 has just been removed! See also 68174.
Comment 11 Adam Jackson 2004-10-23 14:16:43 UTC
this definitely sounds like

http://freedesktop.org/bugzilla/show_bug.cgi?id=1501

which i believe spyderous already knows about.  i'd expect this would get incorporated in the next ebuild bump, in the meantime make sure /dev/dri/card0 is mode 0666 before running GL apps.

why ooo wants libGL is a question i may not want to know the answer to.
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-23 22:18:34 UTC
I've added it to the currently not-ready 6.8.0-r2. Unfortunately, I probably don't have time to get it ready this weekend because I've got a big test Monday.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-29 09:00:23 UTC
*** Bug 69364 has been marked as a duplicate of this bug. ***
Comment 14 Vipul delwadia 2004-10-29 18:07:03 UTC
Unfortunately, I can't even run ooffice as root.

As root, I get:
tux root # ooffice
running openoffice.org setup...
setup failed.. abort

And as user, I get:
delwadvipu@tux delwadvipu $ ooffice
running openoffice.org setup...
/usr/bin/ooffice: line 178: 31987 Segmentation fault      /opt/OpenOffice.org/program/setup ${UPDATEFLAG} -R:/etc/openoffice/autoresponse-1.1.3.conf 1>&/dev/null
setup failed.. abort

Using openofficebin-1.1.3 (not enough free space to compile :( ) and xorg-x11-6.8.0-r1.

Anyone got any ideas, or should I just go to oo1.1.2 instead (only installed gentoo this week)

adthanksvance
Comment 15 Paul de Vrieze (RETIRED) gentoo-dev 2004-10-31 02:57:21 UTC
One comment on the openGL use by openoffice.org. Openoffice has the possibility to show 3d shapes of various kinds. It uses opengl for that, but loads it allways, not on demand.
Comment 16 Craig Bradney 2004-11-04 06:10:06 UTC
I have 0666 on /dev/dri/card0 and /dev/radeon and now all I get is the same output as in comment 8. Any ideas anyone?
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-04 10:12:37 UTC
You could try xorg 6.8.0-r2. It's hard-masked atm.
Comment 18 Craig Bradney 2004-11-05 14:37:52 UTC
ok.. using 6.8.0-r2 doesnt change a thing, even disabling DRI in xorg.conf doesnt fix it. I still get the crash as reported in comment 8. Anymore ideas before I return to 6.8.0-r1?
Comment 19 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-05 15:06:33 UTC
Ajax or anyone else, any more ideas? The patch mentioned in comment #11 apparently doesn't fix this.
Comment 20 Craig Bradney 2004-11-05 16:35:49 UTC
Alternatively, if you have Goudy Old Style font installed (mine is from a good quality source mind you, Corel CD), remove it and the crashes might stop. I had to installed oo.org 1.1.1 then hack (S&R) the setup checker script of 1.1.3 once reinstalled to make it look for my 1.1.1 setup dir as 1.1.2 is no longer installed on gentoo. Once I ran it, I was then getting the oo.org report crash back to oo.org dialog . From there I could get a good strace to find the font (which is good and works in 1.1.1 and 1.1.2)
Comment 21 Joshua Baergen (RETIRED) gentoo-dev 2004-11-12 15:28:37 UTC
If this helps any, I've been using OOo 1.1.3 and X.Org 6.8.0-r1 together for awhile and it worked fine until I updated something yesterday.  To me this suggests another dependency causing the issue, but I can't find anything in strace or remember all that I updated yesterday.  Currently I'm playing with DRM and opengl drivers and settings to see if it gets me anywhere.
Comment 22 Craig Bradney 2004-11-12 15:44:12 UTC
Didnt add a new font did you? OO.org seems to have become sensitive to some font files that are actually ok.
Comment 23 Joshua Baergen (RETIRED) gentoo-dev 2004-11-12 23:08:38 UTC
No new fonts.  I got it working again by enabling OpenGL support on the libsdl merge (and double checking my DRI drivers - they weren't set up correctly).  Don't  know which of these fixed it, but after rebooting it never gave me an issue.  I noticed before it had errors loading libGL.so (it only displayed these errors under root, where it loaded), and under user it chose to segfault instead.

Hope this helps.
Comment 24 David D. Huff Jr. 2004-11-30 15:47:01 UTC
FWIW - I had the same problems as described the only thing in recent history that changed was opengl-update so I ran it manually. Still didn't work so I removed ~/.openoffice and ~/.sversionrc then it worked. All software is current version. RE. daily emerge -Du world
Comment 25 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-03 12:28:58 UTC
This problem seems to have been fixed / worked around.