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

AsanStackTrace::FastUnwindStack reads wild addresses #44

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

AsanStackTrace::FastUnwindStack reads wild addresses #44

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

Comments

@ramosian-glider
Copy link
Member

Originally reported on Google Code with ID 44

We've heard about this from external users.
Now I have a repro, thanks to csmith (http://embed.cs.utah.edu/csmith/)

1. Build asan-ified clang
2. run 
  for((i=0; i<16; i++)); do clang -g -O2 small.c -w -o $i.o & done ; wait

clang will eventually crash with 
==25320== ERROR: AddressSanitizer crashed on unknown address 0x7fffc0f10006 (pc 0x000004bc8c10
sp 0x7fffc0f06580 bp 0x7fffc0f067d0 T0)

where the PC is inside AsanStackTrace::FastUnwindStack 

Reported by konstantin.s.serebryany on 2012-03-08 22:00:23

@ramosian-glider
Copy link
Member Author

Reported by konstantin.s.serebryany on 2012-03-08 22:00:50


- _Attachment: [small.c](https://storage.googleapis.com/google-code-attachments/address-sanitizer/issue-44/comment-1/small.c)_

@ramosian-glider
Copy link
Member Author

With ASAN_OPTIONS=verbosity=1 I can see this: 

==25843== T0: stack [0x7fff5ea70000,0x7fff5f270000) ...
==25843== ERROR: AddressSanitizer crashed on unknown address 0x7fff5f270006 ...

The faulting address is clearly 6 bytes above the stack. 



Reported by konstantin.s.serebryany on 2012-03-08 22:05:47

@ramosian-glider
Copy link
Member Author

Fixed by LLVM r152347

Reported by konstantin.s.serebryany on 2012-03-08 22:34:28

  • Status changed: Fixed

@ramosian-glider
Copy link
Member Author

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
Projects
None yet
Development

No branches or pull requests

1 participant