[MDEV-28091] PERFORMANCE_SCHEMA unit tests fail due to memory misalignment Created: 2022-03-16 Updated: 2022-03-16 Resolved: 2022-03-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Performance Schema, Tests |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 |
| Fix Version/s: | 10.2.44, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | alignment | ||
| Environment: |
Debian GNU/Linux AMD64, clang-13 or clang-14 -march=native -mtune=native |
||
| Description |
|
On my system, 3 unit tests for performance_schema failed with SIGSEGV, on MariaDB Server 10.9. The reason turned out to be that the SIMD instruction MOVAPS was executed in create_thread() on a pointer that was only aligned to 128 bits (16 bytes), not the required 256 or 512 bits. The reason turned out to be that the mocked up pfs_malloc() failed to return properly aligned memory (64 bytes or 512 bits in the case of AMD64):
|