Issue 4395 - soffice crashes when displaying to XDarwin 1.1 (MacOS X)
Summary: soffice crashes when displaying to XDarwin 1.1 (MacOS X)
Status: CLOSED DUPLICATE of issue 6635
Alias: None
Product: ui
Classification: Code
Component: ui (show other issues)
Version: OOo 1.0.0
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: christof.pintaske
QA Contact: issues@ui
URL:
Keywords:
: 5601 (view as issue list)
Depends on:
Blocks:
 
Reported: 2002-05-02 21:55 UTC by Unknown
Modified: 2003-03-11 17:55 UTC (History)
2 users (show)

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


Attachments
libvcl with trace messages for the gnome wm adaptor (1.37 MB, application/octet-stream)
2003-01-16 12:21 UTC, christof.pintaske
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-05-02 21:55:02 UTC
install and soffice dump core when displaying to XDarwin 1.1 on MacOS 10.1.4 in rootless mode:

[linux] [22:50] ~> setenv DISPLAY iMac:0.0
[linux] [22:52] ~> /usr/local/OpenOffice.org1.0/program/soffice
Abort (core dumped)
[linux] [22:52] ~> 

I tried to run it in gdb, but then it tried to draw to :0.0.
Comment 1 Joost Andrae 2002-05-03 14:31:37 UTC
Joost->Christof: can you please have a look at this ? Reassigned to you...
Comment 2 christof.pintaske 2002-06-06 11:29:15 UTC
*** Issue 5601 has been marked as a duplicate of this issue. ***
Comment 3 christof.pintaske 2002-06-10 13:51:31 UTC
Cannot reproduce. You indicated that there is a core dump. Can you
provide a stack trace ?
Comment 4 Unknown 2002-06-30 20:51:46 UTC
OK, here is the traceback.  I just found out that the command "soffice" displays just fine, "swriter" dumps core.

[ganesha] [21:38] ~> file /usr/local/OpenOffice.org1.0/program/soffice.bin      /usr/local/OpenOffice.org1.0/program/soffice.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
[ganesha] [21:38] ~> gdb !$ core
gdb /usr/local/OpenOffice.org1.0/program/soffice.bin core
GNU gdb 5.0mdk-11mdk Linux-Mandrake 8.0
Copyright 2001 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 "i386-mandrake-linux"...
Core was generated by `/usr/local/OpenOffice.org1.0/program/soffice.bin private:factory/swriter      '.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/OpenOffice.org1.0/program/libsvl641li.so...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libsvl641li.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libvcl641li.so...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libvcl641li.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libcppu.so.3...done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libcppu.so.3
Reading symbols from /usr/local/OpenOffice.org1.0/program/libcppuhelper3gcc3.so...done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libcppuhelper3gcc3.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libtl641li.so...done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libtl641li.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libvos2gcc3.so...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libvos2gcc3.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libsal.so.3...done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libsal.so.3
Reading symbols from /usr/local/OpenOffice.org1.0/program/libutl641li.so...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libutl641li.so
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/local/OpenOffice.org1.0/program/libucbhelper1gcc3.so...done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libucbhelper1gcc3.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libcomphelp2.so...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libcomphelp2.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libsalhelper3gcc3.so...done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libsalhelper3gcc3.so
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...done.

warning: Unable to set global thread event mask: generic error
[New Thread 1024 (LWP 9356)]
Error while reading shared library symbols:
Cannot enable thread event reporting for Thread 1024 (LWP 9356): generic error
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/local/OpenOffice.org1.0/program/libstlport_gcc.so...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libstlport_gcc.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libstdc++.so.3...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libstdc++.so.3
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/OpenOffice.org1.0/program/libgcc_s.so.1...done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libgcc_s.so.1
Reading symbols from /usr/local/OpenOffice.org1.0/program/libpsp641li.so...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libpsp641li.so
Reading symbols from /usr/local/OpenOffice.org1.0/program/libsot641li.so...
done.
Loaded symbols for /usr/local/OpenOffice.org1.0/program/libsot641li.so
---Type <return> to continue, or q <return> to quit---
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x40b1d2d1 in kill () from /lib/libc.so.6
(gdb) where
#0  0x40b1d2d1 in kill () from /lib/libc.so.6
#1  0x409a413b in raise (sig=6) at signals.c:65
#2  0x40b1e703 in abort () from /lib/libc.so.6
#3  0x4056b01c in CallSystemHandler ()
   from /usr/local/OpenOffice.org1.0/program/libsal.so.3
#4  0x4056b159 in SignalHandlerFunction ()
   from /usr/local/OpenOffice.org1.0/program/libsal.so.3
#5  0x409a447b in pthread_sighandler (signo=6, ctx=
      {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi = 1083873504, esi = 9356, ebp = 3221216792, esp = 3221216748, ebx = 9356, edx = 1083900316, ecx = 6, eax = 0, trapno = 0, err = 0, eip = 1085395665, cs = 35, __csh = 0, eflags = 582, esp_at_signal = 3221216748, ss = 43, __ssh = 0, fpstate = 0x0, oldmask = 2147483648, cr2 = 0}) at signals.c:97
#6  0x40b1d128 in killpg () from /lib/libc.so.6
#7  0x40b1e703 in abort () from /lib/libc.so.6
#8  0x403597c5 in SalXLib::XError(_XDisplay*, XErrorEvent*) ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#9  0x40358c7d in sal_XErrorHdl ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#10 0x408e3713 in _XError () from /usr/X11R6/lib/libX11.so.6
#11 0x408e237d in _XReply () from /usr/X11R6/lib/libX11.so.6
#12 0x408cac15 in XGetWindowProperty () from /usr/X11R6/lib/libX11.so.6
#13 0x4036c624 in vcl_sal::GnomeWMAdaptor::GnomeWMAdaptor(SalDisplay*) ()
---Type <return> to continue, or q <return> to quit---
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#14 0x4036ae7d in vcl_sal::WMAdaptor::createWMAdaptor(SalDisplay*) ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#15 0x4035ba1d in SalDisplay::Init(unsigned long, XVisualInfo const*) ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#16 0x4035a83e in SalDisplay::SalDisplay(_XDisplay*, Visual*, unsigned long) ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#17 0x4035961c in SalXLib::Init(int*, char**) ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#18 0x40359249 in SalData::Init(int*, char**) ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#19 0x40361f96 in InitSalMain() ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#20 0x401f303a in InitVCL(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&) ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#21 0x401f2f2b in SVMain() ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#22 0x40358bca in main ()
   from /usr/local/OpenOffice.org1.0/program/libvcl641li.so
#23 0x40b0c1f0 in __libc_start_main () from /lib/libc.so.6
(gdb) 

Hope this helps
Comment 5 christof.pintaske 2002-12-06 13:04:59 UTC
dan, ed, is this something where you can help ? I had MacOS X 10.1.4
and now I have 10.2.2 but it just works
Comment 6 fa 2002-12-06 15:35:56 UTC
Hi,

Let me get the situation straight...  You're running soffice on the
Linux box and attempting to have it displayed on the iMac?  Is that right?

Dan
Comment 7 fa 2002-12-06 18:02:35 UTC
Christof,

Would there be any issue with creating the WMAdapter?  Most Macs will not have Gnome or KDE installed as they are not yet working on OS X/XDarwin (KDE is almost there).  I must admit I'm a bit fuzzy about OOo's WM integration beyond standard X11 window managers.

Dan
Comment 8 christof.pintaske 2002-12-06 18:22:50 UTC
OOo tries to instanciate a GnomeWM Adapter. It does so to check the
existance of certain properties. Trying to do so shouldn't harm on any
Window Manager (the code is in vcl/unx/source/app/wmadaptor.cxx). 

What puzzles me is that we get an XError. This shouldn't really happen
here. 

It would help if you simply could reproduce the bug. I'm pretty sure
that I can get this issue straight with a little bit of debug code and
assertions. If only I could reproduce it ...

if that doesn't work, of course please reassign the bug to me.
Comment 9 fa 2002-12-06 18:53:04 UTC
I don't have a Linux box handy to test with, can we do this over
Internet?  If you could point it to my machine which would be running
X then perhaps you could debug in real time.  I can even boot up in
10.1.5 to do it since I'm running dual-boot.

Dan
Comment 10 christof.pintaske 2002-12-09 16:22:06 UTC
Dan, I have no idea about how to come through our firewall with X.
Essentially I don't think this is a Linux issue, but more our handling
of the specific XServer WindowManager. You *should* be able to
reproduce the issue with a Mac client as well or not at all.(This try
is more on the desperate side)

Comment 11 fa 2002-12-17 08:30:15 UTC
Attempted to reproduce on localhost with 10.2.2, XFree86 4.2.1,
XDarwin 1.1.0.1.

[Jade:/ooo-install/program] dan% setenv DISPLAY 144.89.185.182:0.0
[Jade:/ooo-install/program] dan% /ooo-install/program/soffice

Worked fine but this might be too lame a test.  I suppose I could try
my 10.1.5 install on dual boot and see if that helps in reproduction
of this issue.

Can we still attempt this over internet or is that out?
Comment 12 fa 2002-12-17 08:31:41 UTC
Erg.  To bad I can't scrub out the IP address now...  oh well.
Comment 13 christof.pintaske 2003-01-14 18:15:06 UTC
thanks for being so patient with me. I'll provide a library with debug
info that provides some info what exactly the problem is. Please kick
me if I dont't ;-)
What OO.o version do you currently have (1.0.1 / 1.0) ?
Comment 14 christof.pintaske 2003-01-16 12:21:43 UTC
Created attachment 4319 [details]
libvcl with trace messages for the gnome wm adaptor
Comment 15 christof.pintaske 2003-01-16 12:24:41 UTC
Geert,

can you please exchange your libvcl641li.so (in the program dir of you
OOo installation) file with the one I have attached. It will printout
some tracemessages that should help to localize the error. Please note
that my libvcl is tinkered together in a very rude way and should not
be used for production ;-)
Comment 16 Unknown 2003-01-16 20:55:21 UTC
OK; ganesha is my linux box (Mandrake 8.0), srikandi my MacOS X 10.1.5 lampshade.

[ganesha] [21:42] ~> setenv DISPLAY srikandi:0.0
[ganesha] [21:42] ~> ll /usr/local/OpenOffice.org1.0/program/libvcl641li.so*
-rwxr-xr-x    1 gj       gj        4397319 Jan 16 21:41 /usr/local/OpenOffice.org1.0/program/libvcl641li.so*
-rwxr-xr-x    1 gj       root      4023659 Apr 29  2002 /usr/local/OpenOffice.org1.0/program/libvcl641li.so.org*
[ganesha] [21:43] ~> swriter 
initAtoms() done
WIN_SUPPORTING_WM_CHECK success
WIN_SUPPORTING_WM_CHECK (ii) success
getNetWmName() success
-- 
WIN_PROTOCOLS Abort (core dumped)

I am running the OroboxOSX-v0.8b window manager on the Mac side.  Hope this helps.
Comment 17 christof.pintaske 2003-01-20 12:22:59 UTC
this is already fixed ;-) thanx for your commitment

*** This issue has been marked as a duplicate of 6635 ***
Comment 18 michael.bemmer 2003-03-11 17:16:46 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details. First step in IssueZilla is
unfortunately to set them to verified.
Comment 19 michael.bemmer 2003-03-11 17:55:07 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details.