boostorg / boostorg/align

sporadic crash with aligned_allocator_adaptor with libc++

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17
Forks
42
PR merge metrics
No merged PRs in 30d

Description

I have a `std::vector>` which occasionnally crashes on destruction.
QPointF is basically `struct { double x, y; }`

#0 0x7b185afe6c1f in boost::alignment::aligned_allocator_adaptor, 32ul>::deallocate(QPointF*, unsigned long) /usr/include/boost/align/aligned_allocator_adaptor.hpp:144:22
#1 0x7b185afe645c in std::__1::allocator_traits, 32ul>>::deallocate[abi:ne200100](boost::alignment::aligned_allocator_adaptor, 32ul>&, QPointF*, unsigned long) /usr/bin/../include/c++/v1/__memory/allocator_traits.h:302:9
#2 0x7b185afe623f in std::__1::vector, 32ul>>::__destroy_vector::operator()[abi:ne200100]() /usr/bin/../include/c++/v1/__vector/vector.h:250:9
#3 0x7b185afe49fa in std::__1::vector, 32ul>>::~vector[abi:ne200100]() /usr/bin/../include/c++/v1/__vector/vector.h:259:67

ASAN stack trace looks like this ^

normal std::allocator works fine, as well as boost::aligned_allocator directly

boost 1.88

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.