[Bug sanitizer/80963] UBSAN false positive with visibility=hidden

2017-06-08 Thread jengelh at inai dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963 --- Comment #5 from Jan Engelhardt --- >Where would those magic numbers come from? We don't have anything like that. Maybe something similar to .build-id?, i.e. randomly-generated IDs (per .so) that merely serve to distinguish two structs. >>

[Bug sanitizer/80963] UBSAN false positive with visibility=hidden

2017-06-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963 --- Comment #4 from Jakub Jelinek --- (In reply to Jan Engelhardt from comment #3) > The question is more like - can it be made to work even if (In reply to > Andrew Pinski from comment #1) > > > > That is Archive in the shared library and in th

[Bug sanitizer/80963] UBSAN false positive with visibility=hidden

2017-06-08 Thread jengelh at inai dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963 --- Comment #3 from Jan Engelhardt --- The question is more like - can it be made to work even if (In reply to Andrew Pinski from comment #1) > > That is Archive in the shared library and in the main executable are > considered two different cla

[Bug sanitizer/80963] UBSAN false positive with visibility=hidden

2017-06-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > To fix this you need to have the visibility default attribute on the class > Archive . And not just on factory.

[Bug sanitizer/80963] UBSAN false positive with visibility=hidden

2017-06-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963 --- Comment #1 from Andrew Pinski --- I think the error message is correct as the class has a linkage of hidden in the shared library. That is Archive in the shared library and in the main executable are considered two different classes. To fix