Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 391 by [email protected]: AddressSanitizer: while reporting a
bug found another one. Ignoring.
https://code.google.com/p/address-sanitizer/issues/detail?id=391
Build *.so with Application.mk:
1. MEMORY_SANITIZE := true
APP_STL := c++_shared
APP_CPPFLAGS := -frtti -fexceptions -std=c++14
APP_CFLAGS += -Qunused-arguments
ifeq ($(MEMORY_SANITIZE), true)
APP_OPTIM := debug
# https://code.google.com/p/address-sanitizer/wiki/Android
APP_CFLAGS := -fsanitize=address -fno-omit-frame-pointer
APP_CFLAGS += -O1 -g
APP_STL := c++_shared
APP_LDFLAGS := -fsanitize=address
LIBCXX_FORCE_REBUILD := true
endif
APP_ABI := armeabi-v7a x86
APP_PLATFORM := android-14
NDK_TOOLCHAIN_VERSION=clang3.6
2. prepare device(with root) with asan script from NDK10e
3. if I switch to APP_STL := gnustl_shared all works
4. prepare minimal bug in code:
int* ptr = new int[100]();
ptr[101] = 0xF0F0F0F0;
Logger::Info("just after memory corruption!!!!! %d", &ptr[101]);
if I use APP_STL := c++_shared I got:
06-05 16:46:52.046: I/(6946):
=================================================================
06-05 16:46:52.056: I/(6946): ==6946==ERROR: AddressSanitizer:
heap-buffer-overflow on address 0x43d0fbd4 at pc 0x6f22bf4c bp 0x70517a68
sp 0x70517a60
06-05 16:46:52.056: I/(6946): WRITE of size 4 at 0x43d0fbd4 thread T618
06-05 16:46:52.056: I/(6946): ==6946==AddressSanitizer: while reporting a
bug found another one. Ignoring.
Is any way to find out correct address to put it to addr2line?
I want use c++11 and c++14 with current last NDK10e so try use c++_shared
with -fsanitize=address but output looks bad
thanks in advance
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
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.