Issue 80650 - Help: Crash when openening Help on patched Linux version
Summary: Help: Crash when openening Help on patched Linux version
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 680m225
Hardware: All Linux, all
: P2 Trivial (vote)
Target Milestone: OOo 2.3
Assignee: caolanm
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks: 80294 80669
  Show dependency tree
 
Reported: 2007-08-13 13:45 UTC by joerg.skottke
Modified: 2007-10-15 11:51 UTC (History)
3 users (show)

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


Attachments
maybe this is what is needed (795 bytes, patch)
2007-08-14 09:08 UTC, caolanm
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description joerg.skottke 2007-08-13 13:45:04 UTC
Automated test: Any help-test (e.g. f_updt_help.bas)

Reproduction:
- Install m124 fat as root
- Install patch for StarOffice m224, 225, or OOG over it
- Start application as normal user
- Open Menu "Help"
- Select "StarOffice Help (F1)"
-> The app crashes and dumps following string to the console:
soffice.bin: symbol lookup error: /usr/lib/libxslt.so.1: undefined symbol:
xmlXPathContextSetCache
/opt/staroffice8/program/soffice.bin: symbol lookup error:
/usr/lib/libxslt.so.1: undefined symbol: xmlXPathContextSetCache
Comment 1 joerg.skottke 2007-08-13 13:49:02 UTC
Set Prio 2
Comment 2 joerg.skottke 2007-08-13 13:49:41 UTC
Limit to platform Linux
Comment 3 joerg.skottke 2007-08-13 13:56:09 UTC
Fixed Summary to contain something like a complete sentence instead of just some
random words.
Comment 4 ab 2007-08-14 08:55:46 UTC
ab->cmc: The problem here obviously is that soffice.bin tries
to access a libxslt.so.1. But in the programm folder there is
no libxslt.so.1, only

libxslt.so.1.1.16.1.1  and a link
libxslt.so.1.1.16 -> libxslt.so.1.1.16.1.1

So the incompatible system lib /usr/lib/libxslt.so.1 is found.

Creating a new link libxslt.so.1. -> libxslt.so.1.1.16.1.1
in the program folder by hand fixes the problem.

According to cvs you've added "File gid_File_Lib_Xslt" to
file_library_ooo.scp in the scope of i30830 / libxslt02. 
Ingo Schmidt told me that the automatic mechanism that creates
the link libxslt.so.1.1.16 -> libxslt.so.1.1.16.1.1 only looks
at the base version string used there, ".1.1.16" in this case.
I don't know if there is a reason for this version here or if a
simple change to .1 can fix the problem. Please have a look.
Comment 5 caolanm 2007-08-14 09:08:02 UTC
On a normal install...

[caolan@Nom source]$ ls -asl /opt/openoffice.org2.3/program/libxml2.so*
   0 lrwxrwxrwx 1 root root      12 2007-08-13 10:50
/opt/openoffice.org2.3/program/libxml2.so -> libxml2.so.2
   0 lrwxrwxrwx 1 root root      17 2007-08-13 10:50
/opt/openoffice.org2.3/program/libxml2.so.2 -> libxml2.so.2.6.17
   0 lrwxrwxrwx 1 root root      19 2007-08-13 10:50
/opt/openoffice.org2.3/program/libxml2.so.2.6.17 -> libxml2.so.2.6.17.1
1156 -r--r--r-- 1 root root 1175960 2007-08-13 10:41
/opt/openoffice.org2.3/program/libxml2.so.2.6.17.1

[caolan@Nom source]$ ls -asl /opt/openoffice.org2.3/program/libxslt.so*
  0 lrwxrwxrwx 1 root root     12 2007-08-13 10:50
/opt/openoffice.org2.3/program/libxslt.so -> libxslt.so.1
  0 lrwxrwxrwx 1 root root     17 2007-08-13 10:50
/opt/openoffice.org2.3/program/libxslt.so.1 -> libxslt.so.1.1.16
  0 lrwxrwxrwx 1 root root     21 2007-08-13 10:50
/opt/openoffice.org2.3/program/libxslt.so.1.1.16 -> libxslt.so.1.1.16.1.1
280 -r--r--r-- 1 root root 280472 2007-08-13 10:41
/opt/openoffice.org2.3/program/libxslt.so.1.1.16.1.1

So I guess this is restricted to a patched version, something that OOo itself
doesn't provide, only the StarOffice thing. So I'm unsure of what to do. Maybe
the following patch is the right thing to do.
Comment 6 caolanm 2007-08-14 09:08:35 UTC
Created attachment 47521 [details]
maybe this is what is needed
Comment 7 caolanm 2007-08-14 09:12:36 UTC
cmc->hjs: I'm not sure how to check if this is the right fix, the patch stuff is
obscure to outsiders. Is this correct ?
Comment 8 ab 2007-08-14 09:56:12 UTC
hjs is on vacation until end of August, set is on cc

ab->is: Can you please have a look
Comment 9 ingo.schmidt-rosbiegal 2007-08-14 11:15:20 UTC
If you want to update a shortcut in the patch, the new flags are absolutely
correct. I do not know, if this fixes the problem, but the change in scp2 is
correct.
By the way: The link mechanism was introduced to be able to exchange single
files in a rpm. In the first release a file libabc in core03 was installed as
libabc.1 together with a link in core03u with name libabc pointing to libabc.1.
If libabc was included into the patch, a file libabc.1.1 was included into
core03u together with a link libabc pointing to libabc.1.1. Therefore only
core03u needed to be exchanged. The package core03 has never to be part of a
patch. And only files with flag PATCH were shifted from core03 to core03u (with
extension 1.1 instead of .1).

Comment 10 ab 2007-08-14 14:42:25 UTC
ab->cmc: Can you test your patch or is the StarOffice environment essential?
Comment 11 caolanm 2007-08-14 14:58:31 UTC
I don't know how to test this, afaik I think StarOffice is required.
Comment 12 ab 2007-08-14 15:32:33 UTC
ab->cmc: I can create a cws, apply the patch, build and check if it works
afterwards. If not, we will have to search for another solution anyway.
Comment 13 caolanm 2007-08-14 15:39:19 UTC
yeah, that'd be great. This is probably the fix, but if not, it's something
fairly trivial of this nature.
Comment 14 ab 2007-08-16 07:23:30 UTC
Built with applied patch, patch set can be found at
/cws/cws04/ab40\OOG680/src.m1/instset_native/unxlngi6.pro/StarOfficeMulti_patch

ab->jsk: As discussed, please check if this fixes the problem
Comment 15 joerg.skottke 2007-08-16 08:28:17 UTC
Verification for StarOffice on Linux (Patched) as root installation failed.
Comment 16 caolanm 2007-08-16 08:51:10 UTC
So still failure ?

Whats's the output of the equivalent, post patching of...

ls -asl /opt/openoffice.org2.3/program/libxml2.so*
ls -asl /opt/openoffice.org2.3/program/libxslt.so*

i.e. I'm trying to see what the difference between these two very similar libraries
Comment 17 joerg.skottke 2007-08-16 09:22:51 UTC
I handed over the testing machine to ab, so i cannot provide the requested info
right now.
Comment 18 ingo.schmidt-rosbiegal 2007-08-16 10:01:47 UTC
Ah, I see the problem. The file libxslt.so.1.1.16 was not part of the
installation set in src680 m124. It was added later. Therefore the two links
libxslt.so.1 and libxslt.so have to be part of the patch. They have to be
included into core05u instead of core05.  
Comment 19 ingo.schmidt-rosbiegal 2007-08-16 11:40:53 UTC
Fixed by adding two xslt links (libxslt.so and libxslt.so.1) into core05u package.
Comment 20 caolanm 2007-10-15 11:50:23 UTC
bfcoverity01 integrated
Comment 21 caolanm 2007-10-15 11:51:21 UTC
ab40 integrated