Hi,

I am using asan to detect our app's memory problems, but when run our app 
with asan,
the SEGV happened,  the backtrace is like the following
-----------------------------------------------------
(gdb) bt
#0  0x0000007fb72ce304 in __asan::Allocate (size=<optimized out>, 
    size@entry=67, alignment=<optimized out>, alignment@entry=0, 
    stack=stack@entry=0x7fab1fd650, 
    alloc_type=alloc_type@entry=__asan::FROM_NEW, 
    can_fill=can_fill@entry=true)
    at 
/home/user/Downloads/cross_compile_gcc/gcc-linara-5.4.0/libsanitizer/asan/asan_allocator2.cc:332
#1  0x0000007fb72ceecc in __asan::asan_memalign 
(alignment=alignment@entry=0, 
    size=size@entry=67, stack=stack@entry=0x7fab1fd650, 
    alloc_type=alloc_type@entry=__asan::FROM_NEW)
    at 
/home/user/Downloads/cross_compile_gcc/gcc-linara-5.4.0/libsanitizer/asan/asan_allocator2.cc:581
#2  0x0000007fb733f0e4 in operator new (size=67)
    at 
/home/user/Downloads/cross_compile_gcc/gcc-linara-5.4.0/libsanitizer/asan/asan_new_delete.cc:60
#3  0x0000007fb72379b4 in std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, 
unsigned long, char const*, unsigned long) () from /usr/lib64/libstdc++.so.6
#4  0x0000007fb7238e68 in std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >::_M_append(char const*, 
unsigned long) ()
   from /usr/lib64/libstdc++.so.6
#5  0x00000000004a02bc in std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >::append (__str=..., 
this=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at 
../../../../platform/linux/agl_common/include/c++/5.3.0/bits/basic_string.h:984
#6  std::operator+<char, std::char_traits<char>, std::allocator<char> > (
    __rhs=..., __lhs=...)
    at 
../../../../platform/linux/agl_common/include/c++/5.3.0/bits/basic_string.h:4789
#7  ZmDvrTitle::getImg (this=this@entry=0x7fae713990, prop=..., bmpName=...)
    at ../../../../projects/product/node/dvr/zm_dvr_title.cpp:119
---------------------------------------------------------------
Any ideas about it? is it the problem of our app or problem of asan?
how can I know them? thanks in advance

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/address-sanitizer/cca45a03-59d6-491f-98c6-6c4aa7837bc1n%40googlegroups.com.

Reply via email to