Bug #16113
Support #16096: Fix problems found when attempting to build with gcc 6.3.0
ProviderList test fails in larcore
Description
Tested with debug
qualifiers, the test ends in a segmentation fault.
Associated revisions
Fixed bug on erase of items from a provider list.
It turns out that std::unordered_map::erase() invalidates the iterator
it is erasing, which makes some sense.
This should solve issue #16113.
Fixed bug on erase of items from a provider list.
It turns out that std::unordered_map::erase() invalidates the iterator
it is erasing, which makes some sense.
This should solve issue #16113.
Fixed bug on erase of items from a provider list.
It turns out that std::unordered_map::erase() invalidates the iterator
it is erasing, which makes some sense.
This should solve issue #16113.
History
#1 Updated by Gianluca Petrillo almost 4 years ago
- Status changed from New to Assigned
#2 Updated by Gianluca Petrillo almost 4 years ago
The method std::unordered_map::erase
, called on an iterator, invalidates that iterator.
I was using that same iterator to find out the next element, which obviously fails.
#3 Updated by Gianluca Petrillo almost 4 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
#4 Updated by Gianluca Petrillo almost 4 years ago
- Description updated (diff)
#5 Updated by Lynn Garren over 3 years ago
- Status changed from Resolved to Closed
Fixed bug on erase of items from a provider list.
It turns out that std::unordered_map::erase() invalidates the iterator
it is erasing, which makes some sense.
This should solve issue #16113.