Skip to content

Segmentation fault #124

@chrisburr

Description

@chrisburr

I've seen a segfault in a larger application which I've managed to simplify down to this reproducer:

$ LD_PRELOAD=$PWD/target/release/libbytehound.so ldd /usr/bin/bash
/usr/bin/ldd: line 98: 444613 Segmentation fault      (core dumped) ( output=$(eval $add_env '"$@"' 2>&1; rc=$?; printf 'x'; exit $rc); rc=$?; printf '%s' "${output%x}"; return $rc )
fish: Job 1, 'LD_PRELOAD=$PWD/target/release/…' terminated by signal SIGSEGV (Address boundary error)

The use of /usr/bin/bash doesn't matter, passing anything here has a similar effect.

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