Skip to content

excessive compile-time and memory usage with -fsanitize=undefined #132554

Open
@firewave

Description

@firewave

Some (mostly generated) files from https://github.com/mamedev/mame take several minutes to compile with -fsanitize=undefined - e.g. src/devices/cpu/m68000/m68000-sdf.cpp.

They also consume a lot of memory during compilation:

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                         
3190941 user      20   0 2333788   2,1g 151380 R 100,0  14,1   1:00.92 clang++

I do not now what information to provide for this to proceed so I am waiting for feedback.

IIRC this also applies to -fsanitize=address.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler-rt:ubsanUndefined behavior sanitizerincompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)slow-compile

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions