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

pthread_cond_init interceptor fails #297

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

pthread_cond_init interceptor fails #297

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

Comments

@ramosian-glider
Copy link
Member

Originally reported on Google Code with ID 297

The sanitized code failed with segfault when the libc.so is configured to support only
latest versions of symbols. The pthread_cond_init interceptor is trying to get the
symbol versioned as "GLIBC_2.3.2" while the libc.so has only "pthread_cond_init@@GLIBC_2.4"
symbol. 

What steps will reproduce the problem?
1. Configure and install libc.so with oldest abi support disabled.
2. Call pthread_cond_init 

What is the expected output? What do you see instead?
ASAN:SIGSEGV
=================================================================
==149==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc 0x00000000 sp
0xbeac8b60 bp 0xbeac8b84 T0)

AddressSanitizer can not provide additional info.

What version of the product are you using? On what operating system?
gcc 4.8



Reported by mguseva2 on 2014-04-16 08:37:28

@ramosian-glider
Copy link
Member Author

In addition to this glibc may be built with unversioned symbols.

Reported by tetra2005 on 2014-04-16 08:56:54

@ramosian-glider
Copy link
Member Author

We need to pthread_cond interceptors from asan/msan.
Tsan does need them, but we don't have a good solution.

Reported by dvyukov@google.com on 2014-04-16 09:02:10

  • Status changed: Accepted

@ramosian-glider
Copy link
Member Author

s/need to pthread_cond/need to remove pthread_cond/

See https://code.google.com/p/thread-sanitizer/issues/detail?id=58

Reported by konstantin.s.serebryany on 2014-04-16 09:05:12

@ramosian-glider
Copy link
Member Author

Should be fixed by r206423.

Reported by samsonov@google.com on 2014-04-16 23:37:54

  • 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:14:08

  • 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