To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=61335
                  Issue #:|61335
                  Summary:|KAB: load KDE-dependent libraries NOW, not LAZY
                Component:|Database access
                  Version:|680m150
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|none
              Assigned to:|fs
              Reported by:|fs





------- Additional comments from [EMAIL PROTECTED] Sun Jan 29 23:36:06 -0800 
2006 -------
As described in issue 60062 we had some problems with running the KDE Address
Book (KAB) driver on systems with a wrong KDE version. We solved those by
introducing a runtime-check for the KDE version, and refusing connection when a
wrong version (i.e. one not known to work) is encountered.

The deeper cause for the problem however was the following:
Part of the KAB driver is linked against KDE libraries, which are present in the
system and not shipped with OOo. Now if those libraries are incompatible with
the ones used at the time the KAB driver was built, then certain symbols
required by the driver are not found. Originally, this resulted in a crash of
the whole OOo process, since the symbols were not resolved at the time the KAB
driver is loaded, but at the time the symbols were needed.

Not that this situation can still happen, since our version check introduced in
issue 60062 relies on API introduced in KDE 3.1. In earlier versions, those API
is not present, which will again leave us with unresolved symbols.

The fact that we fail at symbol-use time, instead of library-load time, is a
consequence of not using the RTLD_NOW parameter. As "man dlopen" tells, symbols
are resolved at library-load time when RTLD_NOW is specified, and at symbol
use-time when RTLD_LAZY is defined.

So, to be on the safe side against all possibly-incompatible KDE versions, we
should ensure that the KAB driver is loaded with RTLD_NOW. In this case, its
loading will fail immediately, instead of OOo crashing later on.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to