[
https://issues.apache.org/jira/browse/KUDU-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adar Dembo reopened KUDU-2378:
------------------------------
Assignee: Adar Dembo (was: Todd Lipcon)
Todd originally addressed this bug in commit 35940a12a, but it missed one
int128_t aligned load in types.h. I'm reopening the bug and resetting the
versioning to account for this.
> Crash due to unaligned loads when building with clang 6.0
> ---------------------------------------------------------
>
> Key: KUDU-2378
> URL: https://issues.apache.org/jira/browse/KUDU-2378
> Project: Kudu
> Issue Type: Improvement
> Affects Versions: 1.7.0
> Reporter: Todd Lipcon
> Assignee: Adar Dembo
> Priority: Major
> Fix For: 1.8.0, 1.7.1
>
>
> When I built the whole tree with clang 6.0, all_types-itest crashed due to an
> illegal instruction. Looking at assembly, it appeared to be that clang had
> generated a 'movaps' (aligned load) instruction for a
> *reinterpret_cast<int128_t>() call loading into an xmm register. We aren't
> careful with alignment about loading other integer types because unaligned
> loads of int64s don't have a high penalty, but unaligned load of int128
> causes a crash.
> This is likely to crash on other compilers too -- surprised we haven't seen
> it yet.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)