Unable to create a core file with ASan Address Sanitizer

Solution Verified - Updated -

Issue

  • How do I configure coredumpctl to allow core dumps of programs compiled with AddressSanitizer?
  • As documented by clang, the virtual size is about 20 TiB:
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
1234567 username  20   0   20.0t  12345  12345 S   0.0   0.6   0:00.00 processname
  • Dumping core fails with the journal reading:
systemd-coredump[PID]: Resource limits disable core dumping for process 1234567 (processname)

Environment

  • Red Hat Enterprise Linux 9
  • Clang/LLVM with AddressSanitzier (ASan)
  • systemd-coredump to capture application core files

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content