Skip to content

Segfault on building TSAN-enabled Julia #48031

Closed

Description

I am unable to build a TSAN-enabled Julia on any recent version of Julia on Ubuntu 20.04 with an x86_64 architecture. However, I can build an ASAN-enabled version; just not a TSAN-enabled version (recommended by @vtjnash for debugging #47957).

I am building inside a dockerfile for reproducibility:

FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    cmake \
    git \
    wget \
    ca-certificates \
    curl \
    gpg-agent \
    software-properties-common \
    python3 \
    python3-dev \
    tar \
    xz-utils \
    gfortran

RUN wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 13

ARG JLVERSION=1.8.3

WORKDIR /downloads

RUN git clone https://github.com/JuliaLang/julia && \
    cd julia && \
    git checkout v${JLVERSION}

# Build:
RUN mkdir -p /workspace && cd julia && contrib/tsan/build.sh /workspace

With this, one builds a TSAN-enabled Julia, version 1.8.4, with docker build --build-arg JLVERSION=1.8.4 -t julia .. On 1.8.3 and 1.8.4, I see the following segfault during the build:

    JULIA /workspace/tsan/usr/lib/julia/corecompiler.ji
Segmentation fault (core dumped)
make[1]: *** [/downloads/julia/sysimage.mk:61: /workspace/tsan/usr/lib/julia/corecompiler.ji] Error 139
make: *** [/downloads/julia/Makefile:82: julia-sysimg-ji] Error 2
The command '/bin/sh -c mkdir -p /workspace && cd julia && contrib/tsan/build.sh /workspace' returned a non-zero code: 2

I am unable to build older versions due to this issue: #43896 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    buildingBuild system, or building Julia or its dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions