assam258-5892 · GitHub

Commits on Aug 22, 2026

  1. Exclude sanitizer flags from LLVM JIT bitcode generation

    The meson build passes c_args verbatim to the clang command that emits
    the JIT bitcode.  Under -fsanitize=address the instrumentation ends up
    in the bitcode and breaks the JIT: any JIT-compiled query crashes the
    backend with SIGILL.  The autoconf build is unaffected, as it builds
    BITCODE_CFLAGS from a whitelist that never includes CFLAGS.
    Filter sanitizer flags out of c_args during bitcode generation.
    Author: Matheus Alcantara <matheusssilv97@gmail.com>
    Reviewer: Henson Choi <assam258@gmail.com>

    authored and Commitfest Bot committed

    Aug 22, 2026
    Configuration menu

    Browse the repository at this point in the history

  2. Filter sanitizer flags from the LLVM JIT bitcode in the autoconf build

    Sanitizer instrumentation in the JIT bitcode corrupts the JIT code
    generator: any JIT-compiled query crashes the backend with SIGILL.  The
    autoconf build rebuilds BITCODE_CFLAGS from a whitelist and does not
    normally let sanitizer flags in, but filter them out of
    BITCODE_CFLAGS/BITCODE_CXXFLAGS explicitly to also cover flags supplied
    through those variables, and warn when any are stripped.
    Also add -g to the bitcode flags under --enable-debug so the JIT bitcode
    carries debug info; sanitizer flags stay excluded, so this is safe.
    Author: Henson Choi <assam258@gmail.com>
    Configuration menu

    Browse the repository at this point in the history

  3. Add jit regression test to exercise the LLVM JIT path

    The default is jit = off, so the regular regression suite no longer
    exercises the LLVM JIT.  Add a small test that turns jit on and sets
    jit_above_cost to zero, so that even a trivial query enables JIT and
    initializes the JIT provider.  On a working installation it returns the
    expected result.
    Author: Henson Choi <assam258@gmail.com>
    Configuration menu

    Browse the repository at this point in the history

  4. Configuration menu

    Browse the repository at this point in the history

Read the original on github.com ↗