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

asan fails to unwind from memcmp #46

Closed
ramosian-glider opened this issue Aug 31, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@ramosian-glider
Copy link
Member

commented Aug 31, 2015

Originally reported on Google Code with ID 46

clang -faddress-sanitizer    output_tests/memcmp_test.cc && ./a.out  2>&1 | ./scripts/asan_symbolize.py
/

READ of size 1 at 0x7fffb2721024 thread T0
    #0 0x407fcd in memcmp _asan_rtl_
    #1 0x402140 in _start ??:0

The second frame should be main(). 

I guess this is because asan-rt is built w/o frame pointers.
I wonder if we can fix it w/o using frame pointers. 

Reported by konstantin.s.serebryany on 2012-03-13 01:12:40

@ramosian-glider

This comment has been minimized.

Copy link
Member Author

commented Aug 31, 2015

I thought -funwind-tables is enough. Do you have the .eh_frame section in your binary?

BTW any reason for us not to use frame pointers? The overhead is minor, especially
compared to debugging benefits.

Reported by ramosian.glider on 2012-03-13 07:54:20

@ramosian-glider

This comment has been minimized.

Copy link
Member Author

commented Aug 31, 2015

I thought we use fast unwind on linux, why do we need unwind tables?

Reported by eugenis@google.com on 2012-03-13 08:30:51

@ramosian-glider

This comment has been minimized.

Copy link
Member Author

commented Aug 31, 2015

Ah, your're right. Unwind tables are used for exceptions, so we still need them, but
they have nothing to do with stack unwinding in the runtime.

Reported by ramosian.glider on 2012-03-13 09:02:58

@ramosian-glider

This comment has been minimized.

Copy link
Member Author

commented Aug 31, 2015

Should be fixed by r152768.
We don't need nor want frame pointers in asan-rt. 

Reported by konstantin.s.serebryany on 2012-03-15 01:41:39

  • Status changed: Fixed
@ramosian-glider

This comment has been minimized.

Copy link
Member Author

commented Aug 31, 2015

Adding Project:AddressSanitizer as part of GitHub migration.

Reported by ramosian.glider on 2015-07-30 09:12:58

  • Labels added: ProjectAddressSanitizer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.