Skip to content

ASAN: debug build fails #47698

@maleadt

Description

@maleadt
Member

Trying to make a debug build of Julia under ASAN I'm running into:

ERROR: Unable to load dependent library libjulia-internal-debug.so.1
Message: libjulia-internal-debug.so.1: undefined symbol: __libc_siglongjmp

Use of this symbol was introduced by @Keno in #46336, and is intended to bypass the ASAN hook and directly call siglongjmp from glibc. I'm not sure why it isn't working; @vtjnash commented that this symbol has been named like that for 25 years. Disabling the redefinition and just using siglongjmp works around the compilation error.

objdump output:

objdump -t libjulia-internal-debug.so.1 | grep siglong
0000000000000000       F *UND*  0000000000000000              siglongjmp@GLIBC_2.2.5
0000000000000000         *UND*  0000000000000000              __libc_siglongjmp

Activity

added
bugIndicates an unexpected problem or unintended behavior
on Nov 24, 2022
topolarity

topolarity commented on Jun 14, 2023

@topolarity
Member

On my system (Ubuntu 22.04), the symbol is still present in libc (you can see it in the objdump output of libc.so.6) but it's not published to the symbol tables.

I expect it's intended not to be exported, and we need to find another way to bypass the interceptor for siglongjmp

added a commit that references this issue on Nov 20, 2023
5cb0e51
added a commit that references this issue on Dec 9, 2023
4f39714
added a commit that references this issue on Oct 7, 2024
f3257a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @maleadt@brenhinkeller@topolarity

      Issue actions

        ASAN: debug build fails · Issue #47698 · JuliaLang/julia