Details
Description
Steps to reproduce:
1) configure Qt build with CXXFLAGS='-D_GLIBCXX_DEBUG' and build it
2) run the sharedmemory example (qtbase/examples/corelib/ipc/sharedmemory/sharedmemory)
3) Click on the "Load Image from File..." button
Result:
Crash. This is shown on stderr:
usr/include/c++/13/debug/safe_iterator.h:492: In function: bool gnu_debug::operator!=(const _Safe_iterator<std::_Rb_tree_const_iterator<std::pair<const QSettingsKey, QVariant> >, std::debug::map<QSettingsKey, QVariant, std::less<QSettingsKey>, std::allocator<std::pair<const QSettingsKey, QVariant> > >, std::forward_iterator_tag>::_Self&, const _Safe_iterator<std::_Rb_tree_const_iterator<std::pair<const QSettingsKey, QVariant> >, std::debug::map<QSettingsKey, QVariant, std::less<QSettingsKey>, std::allocator<std::pair<const QSettingsKey, QVariant> > >, std::forward_iterator_tag>::_Self&)Error: attempt to compare a singular iterator to a singular (value-initialized) iterator.Objects involved in the operation: iterator "lhs" @ 0x7ffe8e811550 { type = std::_Rb_tree_const_iterator<std::pair<QSettingsKey const, QVariant> > (constant iterator); state = singular; } iterator "rhs" @ 0x7ffe8e811670 { type = std::_Rb_tree_const_iterator<std::pair<QSettingsKey const, QVariant> > (constant iterator); state = singular (value-initialized); } Aborted (core dumped)