On 03/12/2012 09:21 PM, Michael Stahl wrote:
On 12/03/12 15:09, Jonathan Adams wrote:
# truss output of the specific saxparser command:
( LD_LIBRARY_PATH="/home/sal/LibreOffice/libo/solver/unxsoli/lib"
truss -f /home/sal/LibreOffice/libo/solver/unxsoli/bin/saxparser af_NA
/home/sal/LibreOffice/libo/i18npool/source/localedata/data/af_NA.xml
localedata_af_NA_invis.cxx
file:///home/sal/LibreOffice/libo/workdir/unxsoli/CustomTarget/i18npool/source/localedata/saxparser.rdb
/home/sal/LibreOffice/libo/solver/unxsoli/bin/types.rdb
-env:LO_LIB_DIR=file:///home/sal/LibreOffice/libo/solver/unxsoli/lib
2>&1 )> saxparser.log
so it opens
/home/sal/LibreOffice/libo/workdir/unxsoli/CustomTarget/i18npool/source/localedata/saxparser.rdb
to file descriptor 3 successfully, closes it again, spawns a thread,
then opens the same file again to fd 3 succesfully, mmaps the file
succesfully, closes it again, then complains that it couldn't open a
registry file... that's rather odd. perhaps the rdb file is broken or
something?
Opening it twice is ok. The code in SimpleRegistry::open
(stoc/source/simpleregistry/simpleregisty.cxx) first tries to open it as
an old style (binary) .rdb, and if that's the wrong format then opens it
again as new style (XML). Looks like the XML parsing results in an
exception (that is then unfortunately labelled as "could not be open
readonly" in an outer level).
Please apply the below patch to see where parsing fails:
diff --git a/stoc/source/simpleregistry/textualservices.cxx
b/stoc/source/simpleregistry/textualservices.cxx
index 37540c8..baa88d4 100644
--- a/stoc/source/simpleregistry/textualservices.cxx
+++ b/stoc/source/simpleregistry/textualservices.cxx
@@ -1236,7 +1236,8 @@ TextualServices::TextualServices(rtl::OUString const & uri):
{
try {
Parser(uri, data_);
- } catch (css::container::NoSuchElementException &) {
+ } catch (css::container::NoSuchElementException &e) {
+fprintf(stderr,"caught <%s>\n",rtl::OUStringToOString(e.Message,RTL_TEXTENCODING_UTF8).getStr());
throw css::registry::InvalidRegistryException(
(uri +
rtl::OUString(
Stephan
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.