On Mon, Jul 28, 2014 at 2:04 PM, ji wang <[email protected]> wrote:
>>> Do we have to use LD_PRELOAD to preload this asan run-time Dso to the
>> >process before this Asan instrumented executable run?And why?
>> >I've tried not preload the asan run-time at first, and I got the
>
>>Please give more context: where did you try that and what exactly did you
>> do.
>
> I am using Asan DSO enabled GCC4.9 android toolchain to test one shared lib
> on android platform. And only this lib recompiled with Asan.
>
> When I loaded this recompiled lib and got "AddressSanitizer: failed to
> intercept 'memcpy'" error, LD_PRELOAD can fix it but I don't want
> use it because in some situation I really don't know where to place this
> LD_PRELOAD thing and even I know the place still a litte diffcult to use it.
> So I modified the code like I post in my last reply.
> And now I want to know do we have to use LD_PRELOAD to preload the asan DSO?
> so the same on android,arm,X86 platform? and why? and does my modification
> have any side effect?

The instructions about using DSO are really about regular Linux, not Android
(Which is Evgeniy's land. Please make sure the asan-Android wiki is up to date)

--kcc


>
> --
> 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.

-- 
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