Program segfaults with address sanitizer
Closed this issue · 4 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Compile program with: gcc -g -std=c11 shm_nofutex.c -pthread -pie -fPIC
-fsanitize=thread
2. Execute program
3. Observe segmentation fault
What is the expected output? What do you see instead?
> requesting: 3
> was replied with: 5
What version of the product are you using? On what operating system?
> $ gcc --version
> gcc (GCC) 4.9.1
> Copyright (C) 2014 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> $ uname -a
> Linux alonzo 3.13.0-32-generic #1trisquel1 SMP Mon Aug 4 23:49:11 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
Please provide any additional information below.
Original issue reported on code.google.com by StevensE...@gmail.com
on 8 Aug 2014 at 9:40
Attachments:
GoogleCodeExporter commented
Sorry, I meant thread sanitizer obviously.
Original comment by StevensE...@gmail.com
on 8 Aug 2014 at 9:41
GoogleCodeExporter commented
The program works fine for me with gcc 4.10.0 20140516.
Looks like the issue is already fixed on tip.
It prints nothing both with and without -fsanitize=thread.
Original comment by dvyu...@google.com
on 11 Aug 2014 at 1:53
GoogleCodeExporter commented
Let's consider it fixed until proven otherwise.
Original comment by dvyu...@google.com
on 2 Sep 2014 at 2:06
- Changed state: Fixed
GoogleCodeExporter commented
Adding Project:ThreadSanitizer as part of GitHub migration.
Original comment by gli...@google.com
on 30 Jul 2015 at 9:21
- Added labels: ProjectThreadSanitizer