Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

sporadic crash with aligned_allocator_adaptor with libc++

Open
#23 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
backend

Research direction

Start at boost/align/aligned_allocator_adaptor.hpp:144 and reproduce the reported std::vector destruction crash with libc++, ASAN, and Boost 1.88. Compare the adaptor with boost::aligned_allocator and std::allocator, then confirm that the failure is understood and destruction no longer crashes.

Written by the indexing model from the issue text.

Description

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

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

Dominant language
C++
Stars
17
Forks
42
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.