Skip to content

gn-native segfaults on scarthgap on Fedora 41 #905

@xyzzy42

Description

@xyzzy42

The gn-native segfaults when run, pretty much instantly, before producing any output or parsing the command line.

Building up the the install stage produces a gn binary in: $BBPATH/tmp/work/x86_64-linux/gn-native/132.0.6834.83/image/.../recipe-sysroot-native/usr/bin/gn

It works fine.

Then executing the populate_sysroot stage produces new gn binaries (the same file) in:

$BBPATH/tmp/sysroots-components/x86_64/gn-native/usr/bin/gn
${WORKDIR}/sysroot-destdir/.../recipe-sysroot-native/usr/bin/gn

This file is stripped. Also the DT_RUNPATH value has been changed. This executable will not run and just segfaults.

Stripping the working executable doesn't break it. Changing the DT_RUNPATH with patchelf to the same path as the broken executable causes it to not find libc++abi, which is expected. Setting LD_LIBRARY_PATH to allow it to find the library allows it to work. The broken executable still does not work when run this way.

I don't know what else populate_sysroot did to modify the binary, but something broke it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions