Skip to content

[Feat] Improve library discovery (libpython) when running inside a Conda environment #687

Description

@oswaldblockdev

Problem
I installed cargo-afl and cargo-test-fuzz inside a Conda environment (Python 3.13). Running cargo test-fuzz fails with error while loading shared libraries: libpython3.13.so.1.0.

afl-fuzz is dynamically linked to Conda's python lib, but Conda doesn't set LD_LIBRARY_PATH by default. So I need to manually set LD_LIBRARY_PATH as the workaound:

export LD_LIBRARY_PATH=$CONDA_PREFIX/lib

suggestion
Could afl.rs either:

  • Attempt to static link libpython?
  • Automatically detect $CONDA_PREFIX and augment the library search path when invoking afl-fuzz?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions