https://bz.apache.org/ooo/show_bug.cgi?id=128621

          Issue ID: 128621
        Issue Type: DEFECT
           Summary: Wrong resolution of symbols at first startup
           Product: General
           Version: 4.1.15
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

When using the Linux distribution openSUSE Leap 15.6, the first time OpenOffice
is started it crashes with the following output:

Application Error

Fatal exception: Signal 6
Stack:
/opt/openoffice4/program/libuno_sal.so.3(+0x37c3a)[0x7fb11b837c3a]
/opt/openoffice4/program/libuno_sal.so.3(+0x37d6c)[0x7fb11b837d6c]
/opt/openoffice4/program/libuno_sal.so.3(+0x37e09)[0x7fb11b837e09]
/lib64/libc.so.6(+0x57900)[0x7fb11a857900]
/lib64/libc.so.6(+0xa8dfc)[0x7fb11a8a8dfc]
/lib64/libc.so.6(raise+0x14)[0x7fb11a857842]
/lib64/libc.so.6(abort+0xd5)[0x7fb11a83f5cf]
/opt/openoffice4/program/libvcl.so(+0x1557e5)[0x7fb1163557e5]
/opt/openoffice4/program/libsofficeapp.so(+0x2351b)[0x7fb11b42351b]
/opt/openoffice4/program/libvcl.so(+0x17fec6)[0x7fb11637fec6]
/opt/openoffice4/program/libuno_sal.so.3(+0x36a02)[0x7fb11b836a02]
/opt/openoffice4/program/libuno_sal.so.3(+0x37dea)[0x7fb11b837dea]
/lib64/libc.so.6(+0x57900)[0x7fb11a857900]
/usr/bin/soffice: line 121:  6289 Aborted                 (core dumped)
"$sd_prog/$sd_binary" "$@"

The crash is given by a wrong symbol resolution: fontcontfig (system library)
initializes expat (system library). Expat initialization calls function
XML_ParserCreate_MM(). Such function is not resolved from the same system-level
Expat library, but rather from an AOO's .so file: program/libhelplinker.so

This is wrong, because the system-level expat (called from fontconfig) is
different from AOO's statically linked expat.

AOO can be started by setting the LD_PRELOAD environment variable, such as:
$ LD_PRELOAD=/usr/lib64/libexpat.so.1 soffice

After being started for the first time, AOO will resolve the
XML_ParserCreate_MM() symbol correctly on future invocations, probably because
fontconfig is initialized at a different point during startup.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to