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

dump_syms and thread-local variables on OS X #632

Open
GoogleCodeExporter opened this issue Jul 29, 2015 · 0 comments
Open

dump_syms and thread-local variables on OS X #632

GoogleCodeExporter opened this issue Jul 29, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

It appears that dump_syms doesn't work with thread-local variables on OS X. The 
code below gives no symbols dumped:

======
__thread int v = 0;
int main()
{
  return v;
}  
======

Removing the __thread keyword fixes the issue. Please see the attached project 
for a working sample of the bug.

See here for the discussion regarding the issue: 
https://github.com/embree/embree/issues/23

This happens on OS X for me, but can also be an issue on any other unix-based 
platform. We used dump_syms built by Mozilla guys, not exactly sure about its 
version - it is not easy to build one from scratch.

Original issue reported on code.google.com by [email protected] on 3 Feb 2015 at 2:12

Attachments:

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

1 participant