[Bug sanitizer/91101] Possible performance regression in libasan with detect_stack_use_after_return=1

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 8 13:54:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91101

--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> ---
So the suspected allocation that happens is:

#0  0x00007ffff723abb2 in __asan::FakeStack::Allocate
(real_stack=140737488344072, class_id=0, stack_size_log=20,
this=0x7ffff25f7000) at ../../../../libsanitizer/asan/asan_fake_stack.cc:103
#1  __asan::OnMalloc (size=<optimized out>, class_id=0) at
../../../../libsanitizer/asan/asan_fake_stack.cc:208
#2  __asan_stack_malloc_0 (size=<optimized out>) at
../../../../libsanitizer/asan/asan_fake_stack.cc:234
#3  0x00007ffff6b5e6c5 in categorize_eol (c=120 'x', flags=(unknown: 0)) at
../src/basic/fileio.c:759
#4  0x00007ffff6b5eb01 in read_line_full (f=0x616000003f80, limit=1048576,
flags=(unknown: 0), ret=0x7ffff290b760) at ../src/basic/fileio.c:833
#5  0x00007ffff6a25be6 in read_line (f=0x616000003f80, limit=1048576,
ret=0x7ffff290b760) at ../src/basic/fileio.h:90
#6  0x00007ffff6a2818f in config_parse (unit=0x0, filename=0x7ffff290b320
"/tmp/test-conf-parser.gVYMCp", f=0x616000003f80, sections=0x60b300 "Section",
lookup=0x4020a0 <config_item_table_lookup@plt>, table=0x7ffff290b2a0,
flags=CONFIG_PARSE_WARN, userdata=0x0)
    at ../src/shared/conf-parser.c:309
#7  0x0000000000404967 in test_config_parse (i=15, s=0x409d20
"[Section]\nsetting1=", 'x' <repeats 181 times>...) at
../src/test/test-conf-parser.c:334
#8  0x0000000000404ef0 in main (argc=1, argv=0x7fffffffdc58) at
../src/test/test-conf-parser.c:392


More information about the Gcc-bugs mailing list