Skip to content

Instantly share code, notes, and snippets.

@gahr
Created June 7, 2021 13:10
Show Gist options
  • Select an option

  • Save gahr/1a3e0ac85e1ea12913b91a801df1f2fc to your computer and use it in GitHub Desktop.

Select an option

Save gahr/1a3e0ac85e1ea12913b91a801df1f2fc to your computer and use it in GitHub Desktop.
=================================================================
==22812==ERROR: AddressSanitizer: heap-use-after-free on address 0x60e000000f78 at pc 0x0000005f08f8 bp 0x7fffffffc720 sp 0x7fffffffc718
READ of size 8 at 0x60e000000f78 thread T0
#0 0x5f08f7 in window_get_focus /usr/home/gahr/github/neomutt/gui/mutt_window.c:775:22
#1 0x5f0874 in window_is_focused /usr/home/gahr/github/neomutt/gui/mutt_window.c:762:34
#2 0x5ea424 in msgwin_recalc /usr/home/gahr/github/neomutt/gui/msgwin.c:55:7
#3 0x5f0532 in window_recalc /usr/home/gahr/github/neomutt/gui/mutt_window.c:705:5
#4 0x5f0416 in window_redraw /usr/home/gahr/github/neomutt/gui/mutt_window.c:747:3
#5 0x5ead6b in msgwin_set_text /usr/home/gahr/github/neomutt/gui/msgwin.c:183:3
#6 0x49112c in log_disp_curses /usr/home/gahr/github/neomutt/mutt_logging.c:191:5
#7 0x6c7717 in imap_logout_all /usr/home/gahr/github/neomutt/imap/imap.c:579:5
#8 0x46b3a0 in main /usr/home/gahr/github/neomutt/main.c:1266:5
0x60e000000f78 is located 88 bytes inside of 152-byte region [0x60e000000f20,0x60e000000fb8)
freed by thread T0 here:
#0 0x383cfd in free /wrkdirs/usr/ports/devel/llvm90/work/compiler-rt-9.0.1.src/lib/asan/asan_malloc_linux.cc:123:3
#1 0x842159 in mutt_mem_free /usr/home/gahr/github/neomutt/mutt/memory.c:75:5
#2 0x5ec652 in mutt_window_free /usr/home/gahr/github/neomutt/gui/mutt_window.c:226:3
#3 0x46b37a in main /usr/home/gahr/github/neomutt/main.c:1261:7
#4 0x32d0ff in _start /usr/src/lib/csu/amd64/crt1_c.c:75:7
#5 0x800882007 (<unknown module>)
previously allocated by thread T0 here:
#0 0x383fe2 in calloc /wrkdirs/usr/ports/devel/llvm90/work/compiler-rt-9.0.1.src/lib/asan/asan_malloc_linux.cc:154:3
#1 0x84201f in mutt_mem_calloc /usr/home/gahr/github/neomutt/mutt/memory.c:55:13
#2 0x5ebd39 in mutt_window_new /usr/home/gahr/github/neomutt/gui/mutt_window.c:188:28
#3 0x51dbe4 in index_pager_init /usr/home/gahr/github/neomutt/index/index.c:4284:7
#4 0x46b0c3 in main /usr/home/gahr/github/neomutt/main.c:1251:32
#5 0x32d0ff in _start /usr/src/lib/csu/amd64/crt1_c.c:75:7
#6 0x800882007 (<unknown module>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment