Skip to content

Instantly share code, notes, and snippets.

@gahr
Created June 28, 2021 06:39
Show Gist options
  • Select an option

  • Save gahr/2ad0a9cdb78acf8f4a6ae2f7b56e6721 to your computer and use it in GitHub Desktop.

Select an option

Save gahr/2ad0a9cdb78acf8f4a6ae2f7b56e6721 to your computer and use it in GitHub Desktop.
=================================================================
==37535==ERROR: AddressSanitizer: heap-use-after-free on address 0x607000001238 at pc 0x00000052a8c6 bp 0x7fffffff6130 sp 0x7fffffff6128
READ of size 8 at 0x607000001238 thread T0
#0 0x52a8c5 in index_shared_data_set_context /usr/home/gahr/github/neomutt/index/shared_data.c:194:47
#1 0x52135f in change_folder_mailbox /usr/home/gahr/github/neomutt/index/dlg_index.c:746:5
#2 0x521cdd in change_folder_string /usr/home/gahr/github/neomutt/index/dlg_index.c:848:3
#3 0x50be81 in mutt_index_menu /usr/home/gahr/github/neomutt/index/dlg_index.c:2522:11
#4 0x4706e9 in main /usr/home/gahr/github/neomutt/main.c:1261:7
0x607000001238 is located 40 bytes inside of 80-byte region [0x607000001210,0x607000001260)
freed by thread T0 here:
#0 0x388cfd in free /wrkdirs/usr/ports/devel/llvm90/work/compiler-rt-9.0.1.src/lib/asan/asan_malloc_linux.cc:123:3
#1 0x84d929 in mutt_mem_free /usr/home/gahr/github/neomutt/mutt/memory.c:75:5
#2 0x7c0d7b in account_free /usr/home/gahr/github/neomutt/core/account.c:150:3
#3 0x7c387c in neomutt_account_remove /usr/home/gahr/github/neomutt/core/neomutt.c:127:5
#4 0x4b0b5f in mx_ac_remove /usr/home/gahr/github/neomutt/mx.c:1778:5
#5 0x4b09d8 in mx_fastclose_mailbox /usr/home/gahr/github/neomutt/mx.c:462:5
#6 0x4b3bf0 in mx_mbox_close /usr/home/gahr/github/neomutt/mx.c:807:5
#7 0x520bce in change_folder_mailbox /usr/home/gahr/github/neomutt/index/dlg_index.c:694:33
#8 0x521cdd in change_folder_string /usr/home/gahr/github/neomutt/index/dlg_index.c:848:3
#9 0x50be81 in mutt_index_menu /usr/home/gahr/github/neomutt/index/dlg_index.c:2522:11
#10 0x4706e9 in main /usr/home/gahr/github/neomutt/main.c:1261:7
#11 0x3320ff in _start /usr/src/lib/csu/amd64/crt1_c.c:75:7
#12 0x80088d007 (<unknown module>)
previously allocated by thread T0 here:
#0 0x388fe2 in calloc /wrkdirs/usr/ports/devel/llvm90/work/compiler-rt-9.0.1.src/lib/asan/asan_malloc_linux.cc:154:3
#1 0x84d7ef in mutt_mem_calloc /usr/home/gahr/github/neomutt/mutt/memory.c:55:13
#2 0x7bf399 in account_new /usr/home/gahr/github/neomutt/core/account.c:47:23
#3 0x4ad247 in mx_mbox_ac_link /usr/home/gahr/github/neomutt/mx.c:279:9
#4 0x4adc20 in mx_mbox_open /usr/home/gahr/github/neomutt/mx.c:318:10
#5 0x470289 in main /usr/home/gahr/github/neomutt/main.c:1243:10
#6 0x3320ff in _start /usr/src/lib/csu/amd64/crt1_c.c:75:7
#7 0x80088d007 (<unknown module>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment