tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

curses with ASAN (was: Re: curses: wmove(window, ...) doesn't set physical cursor)



christos%astron.com@localhost (Christos Zoulas) wrote:

> I used this as the Makefile, and I can't reproduce it (current/amd64)
> 
> $ cat Makefile 
> LDFLAGS=-lcurses
> CFLAGS=-g -fsanitize=address
> 
> all: main
> 
> clean:
>         rm -f main

Only for a short time I could use ASAN, now it crashes again, also with your Makefile.  The output is:

==3916==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61a00001f1a3 at pc 0x75bd3b62378d bp 0x7f7fff3ce8f0 sp 0x7f7fff3ce0a0
READ of size 1315 at 0x61a00001f1a3 thread T0
LLVMSymbolizer: error reading file: No such file or directory.
    #0 0x75bd3b62378c  (libasan.so.1+0x2378c)
LLVMSymbolizer: error reading file: No such file or directory.
    #1 0x75bd3a204af4  (libterminfo.so.1+0x4af4)
LLVMSymbolizer: error reading file: No such file or directory.
    #2 0x75bd3a2052e1  (libterminfo.so.1+0x52e1)
LLVMSymbolizer: error reading file: No such file or directory.
    #3 0x75bd3a205376  (libterminfo.so.1+0x5376)
LLVMSymbolizer: error reading file: No such file or directory.
    #4 0x75bd3a2047f6  (libterminfo.so.1+0x47f6)
LLVMSymbolizer: error reading file: No such file or directory.
    #5 0x75bd3b213ad7  (libcurses.so.7+0x13ad7)
LLVMSymbolizer: error reading file: No such file or directory.
    #6 0x75bd3b2122e4  (libcurses.so.7+0x122e4)
LLVMSymbolizer: error reading file: No such file or directory.
    #7 0x75bd3b20ded4  (libcurses.so.7+0xded4)
    #8 0x401128  (<unknown module>)
    #9 0x40103a  (<unknown module>)

0x61a00001f1a3 is located 0 bytes to the right of 1315-byte region [0x61a00001ec80,0x61a00001f1a3)
allocated by thread T0 here:
LLVMSymbolizer: error reading file: No such file or directory.
    #0 0x75bd3b615a9c  (libasan.so.1+0x15a9c)
LLVMSymbolizer: error reading file: No such file or directory.
    #1 0x75bd3a205857  (libterminfo.so.1+0x5857)

LLVMSymbolizer: error reading file: No such file or directory.
SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 ??
Shadow bytes around the buggy address:
  0x0c347fffbde0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c347fffbdf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c347fffbe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c347fffbe10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c347fffbe20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c347fffbe30: 00 00 00 00[03]fa fa fa fa fa fa fa fa fa fa fa
  0x0c347fffbe40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c347fffbe50: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c347fffbe60: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c347fffbe70: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c347fffbe80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
==3916==ABORTING


Home | Main Index | Thread Index | Old Index