Closed Quuxplusone closed 7 years ago
Bugzilla Link | PR31402 |
Status | RESOLVED FIXED |
Importance | P normal |
Reported by | Vedant Kumar (vsk@apple.com) |
Reported on | 2016-12-15 19:01:07 -0800 |
Last modified on | 2017-01-05 00:15:55 -0800 |
Version | unspecified |
Hardware | PC All |
CC | dexonsmith@apple.com, eric@efcs.ca, llvm-bugs@lists.llvm.org, mclow.lists@gmail.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Step 4 is wrong, the override should be:
export CCC_OVERRIDE_OPTIONS="+-I/Users/vk/Desktop/llvm/projects/libcxx/include"
Why are you reverting r264989?
Thoughts so far:
I can reproduce following the steps provided on Linux w/ ToT Clang.
I agree there is still a bug in __find_equal_key. Perhaps not in the downcast but in the subsequent dereference. I think I know how to fix it.
I haven't managed to write a reproducer small enough for the test suite. I have no idea why UBSAN sees the object size violation in that case but not in others. I know there are tests which exercise the offending line of code. Maybe the UBSAN flags used by the test suite are wrong?
Fix up for review as https://reviews.llvm.org/D28131.
Still can't write a test case though :-(
Fixed in r291087 (4.0)