Skip to content

libbacktrace testsuite fails with mold #402

Closed
@marxin

Description

@marxin

Reproducer:

git clone https://github.com/ianlancetaylor/libbacktrace.git
cd libbacktrace
./configure
make check -j16

Note I used GCC 12.
then if I use mold for one of the tests:

$ gcc -funwind-tables -frandom-seed=ctesta_alloc -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -fuse-ld=mold -Wl,--compress-debug-sections=zlib-gabi -o ctesta_alloc ctesta_alloc-btest.o ctesta_alloc-testlib.o  ./.libs/libbacktrace_alloc.a  -fuse-ld=mold
$ ./ctesta_alloc
test1: [0]: missing file name or function name
FAIL: backtrace_full noinline
test2: [0]: missing file name or function name
FAIL: backtrace_full inline
test3: [0]: missing file name or function name
FAIL: backtrace_simple noinline
test4: [0]: missing file name or function name
FAIL: backtrace_simple inline
PASS: backtrace_syminfo variable

It's related to --compress-debug-sections=zlib-gabi as --compress-debug-sections=none is fine even with mold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions