Subject: bug#66416: GDB output from new crash

From: Yuchen Guo <[email-masked]>
Date: Sun, 15 Oct 2023 05:54:02 +0000

Po Lu <[email-masked]> writes:

> What if you insert -fsanitize-recover=all in CFLAGS?

No luck, unfortunately.  The following text is the output with fsanitize-recover=all.

  ELC      textmodes/makeinfo.elc
  ELC      textmodes/mhtml-mode.elc
  ELC      textmodes/nroff-mode.elc
  ELC      textmodes/page-ext.elc

=================================================================
==14796==ERROR: LeakSanitizer: detected memory leaks

Indirect leak of 1528 byte(s) in 2 object(s) allocated from:
    #0 0x7ffff79d7de7 in __interceptor_calloc (/nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib/lib/libasan.so.8+0xbbde7)
    #1 0x789f82 in lmalloc /build/source/src/alloc.c:1365

Indirect leak of 1392 byte(s) in 8 object(s) allocated from:
    #0 0x7ffff79d83ff in __interceptor_malloc (/nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib/lib/libasan.so.8+0xbc3ff)
    #1 0x789faf in lmalloc /build/source/src/alloc.c:1365

SUMMARY: AddressSanitizer: 2920 byte(s) leaked in 10 allocation(s).
make[3]: *** [Makefile:332: progmodes/typescript-ts-mode.elc] Error 1
make[3]: *** Waiting for unfinished jobs....

=================================================================
==14882==ERROR: LeakSanitizer: detected memory leaks

Indirect leak of 1528 byte(s) in 2 object(s) allocated from:
    #0 0x7ffff79d7de7 in __interceptor_calloc (/nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib/lib/libasan.so.8+0xbbde7)
    #1 0x789f82 in lmalloc /build/source/src/alloc.c:1365

Indirect leak of 1392 byte(s) in 8 object(s) allocated from:
    #0 0x7ffff79d83ff in __interceptor_malloc (/nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib/lib/libasan.so.8+0xbc3ff)
    #1 0x789faf in lmalloc /build/source/src/alloc.c:1365

SUMMARY: AddressSanitizer: 2920 byte(s) leaked in 10 allocation(s).
make[3]: *** [Makefile:332: textmodes/mhtml-mode.elc] Error 1
make[3]: Leaving directory '/build/source/lisp'
make[2]: *** [Makefile:366: compile-main] Error 2
make[2]: Leaving directory '/build/source/lisp'
make[1]: *** [Makefile:533: lisp] Error 2