Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEGV error with Address Sanitizer #1375

Closed
anastasiyaant opened this issue Feb 18, 2021 · 2 comments
Closed

SEGV error with Address Sanitizer #1375

anastasiyaant opened this issue Feb 18, 2021 · 2 comments

Comments

@anastasiyaant
Copy link

Face with this problem/ Started with ASAN_OPTIONS=halt_on_error=0 /usr/sbin/myprog

SAN:DEADLYSIGNAL

==75793==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x6e13c025a3a8 bp 0x7ffdb7575dd0 sp 0x7ffdb7575d60 T0)
#0 0x6e13c025a3a7 (/usr/sbin/myprog+0x11b3a7)
#1 0x6e13c0260de3 (/usr/sbin/myprog+0x121de3)
#2 0x6e13c0219d1a (/usr/sbin/myprog+0xdad1a)
#3 0x6e13c021a376 (/usr/sbin/myprogt+0xdb376)
#4 0x6e13c01e6093 (/usr/sbin/myprog+0xa7093)
#5 0x7d00b32842e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
#6 0x6e13c0205cc9 (/usr/sbin/myprog+0xc6cc9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/sbin/myprog+0x11b3a7)
==75793==ABORTING

With gdb I get:

(gdb) step
std::pair<long const, Service>::pair (this=) at /usr/include/c++/6/bits/stl_pair.h:288
288 constexpr pair(const pair&) = default;
(gdb) step

Program received signal SIGSEGV, Segmentation fault.
0x000055555566f3a8 in std::pair<long const, Service>::pair (this=) at /usr/include/c++/6/bits/stl_pair.h:288
288 constexpr pair(const pair&) = default;
(gdb) step
ASAN:DEADLYSIGNAL

Also can't get code text and number of string in trace. ASAN_SYMBOLIZER_PATH is set, ASAN_OPTIONS=symbolize=1 is also set, gcc option -g is set.
Function on step 0 in sanitizer code. Have no problem without sanitizer.
Please help me with this problems.

@DavidWzh
Copy link

DavidWzh commented May 4, 2022

hello,for this “SEGV ERROR”,would you tell me how to slove .

@DavidWzh
Copy link

DavidWzh commented May 4, 2022

i met these error many times, i do not know if it is false positive。 because if i do not use Asan, my program is ok。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants