Skip to content

Should build using -DPERL_USE_SAFE_PUTENV on Linux #19399

Closed
@leonerd

Description

@leonerd

This compiletime flag affects the way perl interacts with the putenv() libc call.

Without it, subtle memory corruption happens if both perl and some other C library attempt to putenv() within the same program. This corruption is only detected at destruction time, and only on thready+debugging builds.

An example of this can be seen in https://rt.cpan.org/Ticket/Display.html?id=140138

I believe the solution is simply that Perl should build using this flag all the time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions