This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch AOO50X in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 5306711b290b340334fdccddd662bc4d912468d9 Author: Piotr Kubaj <[email protected]> AuthorDate: Thu Oct 22 16:09:30 2026 +0200 FreeBSD PowerPC64 bridge: drop the glibc stack protector code call.s was generated by gcc on a glibc system with -fstack-protector, so callVirtualMethod and privateSnippetExecutor keep their stack canary at -28688(r13), the slot where glibc stores the stack guard. On FreeBSD that slot is the first word of the thread control block, the DTV pointer. rtld replaces the DTV when a thread first uses TLS after a library with TLS was loaded, so a bridged call during which that happens fails the check and aborts in __stack_chk_fail. Saving a document from Python over the URP bridge was enough to trigger it. Remove the canary code from both functions. Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 2179eea7d9fea48d22cf819555044ba35d1280a4) --- .../source/cpp_uno/gcc3_freebsd_powerpc64/call.s | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/main/bridges/source/cpp_uno/gcc3_freebsd_powerpc64/call.s b/main/bridges/source/cpp_uno/gcc3_freebsd_powerpc64/call.s index 3803f5e888..c42f8ecd6a 100644 --- a/main/bridges/source/cpp_uno/gcc3_freebsd_powerpc64/call.s +++ b/main/bridges/source/cpp_uno/gcc3_freebsd_powerpc64/call.s @@ -56,9 +56,6 @@ callVirtualMethod: stw 9,296(31) ld 9,304(31) std 9,96(31) - ld 9,-28688(13) - std 9,184(31) - li 9,0 lwz 9,280(31) cmpwi 0,9,0 beq 0,.L2 @@ -198,14 +195,6 @@ callVirtualMethod: bl MapReturn nop nop - ld 9,184(31) - ld 10,-28688(13) - xor. 9,9,10 - li 10,0 - beq 0,.L5 - bl __stack_chk_fail - nop -.L5: addi 1,31,208 .cfi_def_cfa 1, 0 ld 0,16(1) @@ -241,9 +230,6 @@ privateSnippetExecutor: .cfi_offset 31, -8 mr 31,1 .cfi_def_cfa_register 31 - ld 0,-28688(13) - std 0,248(31) - li 0,0 std 3,80(31) std 4,88(31) std 5,96(31) @@ -392,14 +378,6 @@ stfd 13, 96(9) nop .L17: nop - ld 9,248(31) - ld 10,-28688(13) - xor. 9,9,10 - li 10,0 - beq 0,.L18 - bl __stack_chk_fail - nop -.L18: addi 1,31,272 .cfi_def_cfa 1, 0 ld 0,16(1)
