https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #15 from jonne <gcc at zutt dot org> --- I ran the below command to check memory usage. After an initial quick increase it doesn't seem to grow much. $ while true; sleep 1; do ps -p $(pgrep -fl ./a.out | awk '{ print $1 }') -o pmem,rss,vsize,pid; done %MEM RSS VSZ PID 23.3 3906860 21477314476 3003 %MEM RSS VSZ PID 32.0 5363024 21477314476 3003 %MEM RSS VSZ PID 31.9 5347572 21477314476 3003 ... snip ... 31.6 5293268 21477314476 3003 %MEM RSS VSZ PID 31.5 5287440 21477314476 3003 %MEM RSS VSZ PID 31.6 5293988 21477314476 3003 %MEM RSS VSZ PID 31.5 5290748 21477314476 3003 I'm afraid I'm still unable to provide a useful stacktrace. (gdb) run Starting program: /private/tmp/a.out [New Thread 0x1403 of process 3338] warning: unhandled dyld version (15) ==3338==AddressSanitizer: libc interceptors initialized || `[0x200000000000, 0x7fffffffffff]` || HighMem || || `[0x140000000000, 0x1fffffffffff]` || HighShadow || || `[0x120000000000, 0x13ffffffffff]` || ShadowGap || || `[0x100000000000, 0x11ffffffffff]` || LowShadow || || `[0x000000000000, 0x0fffffffffff]` || LowMem || MemToShadow(shadow): 0x120000000000 0x123fffffffff 0x128000000000 0x13ffffffffff redzone=16 max_redzone=2048 quarantine_size_mb=256M malloc_context_size=30 SHADOW_SCALE: 3 SHADOW_GRANULARITY: 8 SHADOW_OFFSET: 0x100000000000 ==3338==Installed the sigaction for signal 11 ==3338==Installed the sigaction for signal 10 ==3338==SetCurrentThread: 0x0001035c9000 for thread 0x7fffd10413c0 ==3338==T0: stack [0x7fff5f400000,0x7fff5fc00000) size 0x800000; local=0x7fff5fbfb88c ==3338==AddressSanitizer Init done ^C Thread 2 received signal SIGINT, Interrupt. 0x00007fffc8342bc9 in ?? () (gdb) bt #0 0x00007fffc8342bc9 in ?? () #1 0x00007fff5fbfd520 in ?? () #2 0x0000000100479300 in ?? () #3 0x0000000000000000 in ?? ()