First: Double Free
=================================================================
==2415==ERROR: AddressSanitizer: attempting double-free on 0xb4c28b20 in 
thread T16777215:
*==2415==AddressSanitizer CHECK failed: 
../../../.././../gcc/gcc-4.9/libsanitizer/asan/asan_report.cc:586 
"((free_stack->size)) > ((0))" (0x0, 0x0)*
    #0 0xb67af94f (/system/lib/libasan.so.1+0x3f94f)
    #1 0xb67b2f8b (/system/lib/libasan.so.1+0x42f8b)
    #2 0xb67ae137 (/system/lib/libasan.so.1+0x3e137
    ...
    ... ...
    According to the asan code, free_stack maybe should not be empty, 
should print something like *“freed by thread T0 here:... ...previously 
allocated by thread T0 here:... ..."*
    And of cource It's important, for what reason we may lose this part log 
print or somethine went wrong on my asan?

Second: UseAfterFree
=================================================================
==4782==ERROR: AddressSanitizer: heap-use-after-free on address 0xadb64ff7 
at pc 0xb5916e87 bp 0xb09ff8bc sp 0xb09ff8b4
WRITE of size 1 at 0xadb64ff7 thread T16777215
    #0 0xb5916e85 (/system/lib/libstagefright.so+0x12ce85)
    #1 0xb59185b3 (/system/lib/libstagefright.so+0x12e5b3)
   ...

0xadb64ff7 is located 7 bytes inside of 8-byte region 
[0xadb64ff0,0xadb64ff8)
*==4782==AddressSanitizer CHECK failed: 
../../../.././../gcc/gcc-4.9/libsanitizer/asan/asan_allocator2.cc:234 
"((id)) != (0)" (0x0, 0x0)*
    #0 0xb65cd94f (/system/lib/libasan.so.1+0x3f94f)
    #1 0xb65d0f8b (/system/lib/libasan.so.1+0x42f8b)
    #2 0xb65a2637 (/system/lib/libasan.so.1+0x14637)
   ...
    #6 0xb58ff04f (/system/lib/libstagefright.so+0x12c04f)
    #7 0xb59273d3 (/system/lib/libstagefright.so+0x1543d3)
    This one is the "CHECK(id);" error, what this id for? And more, the 
stack printed first and second which I maked red colour is the same, this 
is werid, why?

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to