Summary: | GCC address sanitizer breaks 16-byte alignment of glibc malloc | ||
---|---|---|---|
Product: | Eigen | Reporter: | Takaki Makino <t-eigen-bugzilla> |
Component: | Core - general | Assignee: | Nobody <eigen.nobody> |
Status: | RESOLVED FIXED | ||
Severity: | Unknown | CC: | gael.guennebaud, jacob.benoit.1 |
Priority: | Normal | ||
Version: | 3.2 | ||
Hardware: | x86 - 64-bit | ||
OS: | Linux | ||
Whiteboard: | |||
Bug Depends on: | |||
Bug Blocks: | 387 |
Description
Takaki Makino
2013-02-08 16:40:05 UTC
Good catch! In fact, I think that we should just remove EIGEN_GLIBC_MALLOC_ALREADY_ALIGNED altogether: it doesn't buy us much as we're able to use aligned malloc functions just as well, and it's likely to cause other problems with other kinds of malloc instrumentation. It still looks better to simply rely on malloc when possible, so: https://bitbucket.org/eigen/eigen/commits/fade198d789b/ changeset: fade198d789b user: ggael date: 2013-02-25 19:17:13 summary: Fix bug 552: disable EIGEN_GLIBC_MALLOC_ALREADY_ALIGNED when compiling with -fsanitize=address, and allow users to manually tell whether EIGEN_MALLOC_ALREADY_ALIGNED. -- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/552. |