Skip to content

leak sanitizer reports are painfully slow under docker in some circumstances #59112

Open
@avikivity

Description

@avikivity

Under docker, the process can sometimes start with elevated RLIMIT_NOFILE (ulimit -n). Then, if a leak is detected (even if suppressed) this loop will spend minutes of CPU time closing billions of files:

for (int fd = sysconf(_SC_OPEN_MAX); fd > 2; fd--) internal_close(fd);

Much better to use close_range() if available.

Semi-related: #48067

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions