This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new b5ece7e8b5 GH-49767: [CI][C++] Disable mold on Ubuntu 24.04 to work 
around mold#1247 (#50033)
b5ece7e8b5 is described below

commit b5ece7e8b5b90ea307c08ee76b1bf702009c9c4a
Author: tadeja <[email protected]>
AuthorDate: Tue May 26 23:18:13 2026 +0200

    GH-49767: [CI][C++] Disable mold on Ubuntu 24.04 to work around mold#1247 
(#50033)
    
    ### Rationale for this change
    Fixes #49767 - intermittent SIGSEGV in the ODBC Linux CI job, the crash 
occurs during `_dl_relocate_object` before `main()` : 
https://github.com/apache/arrow/issues/49767#issuecomment-4520516388
    
    apt ships mold 2.30.0 on Ubuntu 24.04 'Noble Numbat'.
    mold 2.30.0 has a non-determinism bug in section placement that causes this 
crash ([rui314/mold#1247](https://github.com/rui314/mold/issues/1247)). Fixed 
upstream in [mold 2.31.0](https://github.com/rui314/mold/releases/tag/v2.31.0).
    
    ### What changes are included in this PR?
    Disable mold on Ubuntu 24.04 in `ubuntu-24.04-cpp.dockerfile` by setting 
`ARROW_USE_MOLD=OFF`.
    Re-enable if apt mold reaches 2.31+ - note that Ubuntu 24.04 'Noble Numbat' 
might never update to 2.31+ https://launchpad.net/ubuntu/noble/+source/mold - 
its mold release is over 2 years old.
    
    A follow-up issue tracking apt mold updates and other CI jobs using mold 
(more added with #49898/#49899) will be opened separately.
    
    ### Are these changes tested?
    Yes, ODBC Linux job runs complete successfully on fork: 
[1st](https://github.com/tadeja/arrow/actions/runs/26389905866/job/77676883090),
 
[2nd](https://github.com/tadeja/arrow/actions/runs/26389905866/job/77684025003) 
, 
[3rd](https://github.com/tadeja/arrow/actions/runs/26389905866/job/77685765548) 
, 
[4th](https://github.com/tadeja/arrow/actions/runs/26389905866/job/77693037433)
    
    ### Are there any user-facing changes?
    No.
    * GitHub Issue: #49767
    
    Authored-by: Tadeja Kadunc <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 ci/docker/ubuntu-24.04-cpp.dockerfile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ci/docker/ubuntu-24.04-cpp.dockerfile 
b/ci/docker/ubuntu-24.04-cpp.dockerfile
index 074301b472..3a98491ba8 100644
--- a/ci/docker/ubuntu-24.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-24.04-cpp.dockerfile
@@ -176,6 +176,11 @@ RUN /arrow/ci/scripts/install_sccache.sh 
unknown-linux-musl /usr/local/bin
 # provided by the distribution:
 # - Abseil is old and we require a version that has CRC32C
 # - opentelemetry-cpp-dev is not packaged
+#
+# Ubuntu 24.04 apt mold is 2.30.0 which has a non-determinism bug in section 
placement:
+# https://github.com/rui314/mold/issues/1247 fixed in mold 2.31.0.
+# See https://github.com/apache/arrow/issues/49767
+# Re-enable ARROW_USE_MOLD if 2.31+ is released for apt Ubuntu 24.04.
 ENV absl_SOURCE=BUNDLED \
     ARROW_ACERO=ON \
     ARROW_AZURE=ON \
@@ -197,7 +202,7 @@ ENV absl_SOURCE=BUNDLED \
     ARROW_SUBSTRAIT=ON \
     ARROW_USE_ASAN=OFF \
     ARROW_USE_CCACHE=ON \
-    ARROW_USE_MOLD=ON \
+    ARROW_USE_MOLD=OFF \
     ARROW_USE_UBSAN=OFF \
     ARROW_WITH_BROTLI=ON \
     ARROW_WITH_BZ2=ON \

Reply via email to