To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=105898
                 Issue #|105898
                 Summary|[sal] LD_PRELOAD broken due to -Bsymbolic-functions
               Component|udk
                 Version|DEV300m58
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mst
             Reported by|mst





------- Additional comments from m...@openoffice.org Wed Oct 14 11:16:27 +0000 
2009 -------
issue 85679 introduced the usage of the linker flag -Bsymbolic-functions on
unxlng platforms.

unfortunately this breaks LD_PRELOAD, and thus valgrind (which  only works if
libsalalloc_malloc.so is in LD_PRELOAD):

==23266==  Address 0xbd2b538 is 8 bytes before a block of size 28 alloc'd
==23266==    at 0x4CA1FDE: malloc (vg_replace_malloc.c:207)
==23266==    by 0x4CBB624: rtl_allocateMemory (in
/so/ws/DEV300/unxlngi6/lib.m58/libsalalloc_malloc.so.3)
==23266==    by 0x90808BB: (within
/export/home/ms/inst/SO_m58_DEV300_li/opt/openoffice.org/basis3.2/program/libtlli.so)

==23266== Invalid read of size 4
==23266==    at 0x6D8C1B1: rtl_freeMemory (in
/export/home/ms/inst/SO_m58_DEV300_li/opt/openoffice.org/ure/lib/libuno_sal.so.3)
==23266==    by 0x6D74630: rtl_uString_release (in
/export/home/ms/inst/SO_m58_DEV300_li/opt/openoffice.org/ure/lib/libuno_sal.so.3)

so, in the first case, rtl_allocateMemory is properly found in
libsalalloc_malloc.so, but in the second case (from the same session!),
rtl_freeMemory is found in libuno_sal.so.
of course the office will segfault during startup under such conditions.

so our build results in a libsalalloc_malloc.so which is in practice unusable.

to solve this we could either
1) special-case sal and link without -Bsymbolic-functions
2) simply not build a broken libsalalloc_malloc any more, so if you want to
valgrind, rebuild sal:
    (cd rtl/source && dmake killobj) && build -- ALLOC=SYS_ALLOC

---------------------------------------------------------------------
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: issues-unsubscr...@udk.openoffice.org
For additional commands, e-mail: issues-h...@udk.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to