Both with recent releases such as 3.0.5 and code built locally corresponding to 3.0.5.1
Backtrace below was for a testnet wallet
#1 0x002a7ea0 in std::_Rb_tree_iterator<std::pair<uint256 const, CWalletTx> >::operator-- (this=) at /usr/include/c++/5/bits/stl_tree.h:220
#2 std::_Rb_tree<uint256, std::pair<uint256 const, CWalletTx>, std::_Select1st<std::pair<uint256 const, CWalletTx> >, std::less, std::allocator<std::pair<uint256 const, CWalletTx> > >::_M_get_insert_hint_unique_pos (__k=..., __position=..., this=0xda50600) at /usr/include/c++/5/bits/stl_tree.h:1924
#3 std::_Rb_tree<uint256, std::pair<uint256 const, CWalletTx>, std::_Select1st<std::pair<uint256 const, CWalletTx> >, std::less, std::allocator<std::pair<uint256 const, CWalletTx> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<uint256 const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<uint256 const, CWalletTx> >, std::piecewise_construct_t const&, std::tuple<uint256 const&>&&, std::tuple<>&&) (this=this@entry=0xda50600, __pos=...) at /usr/include/c++/5/bits/stl_tree.h:2174
#4 0x002c8438 in std::map<uint256, CWalletTx, std::less, std::allocator<std::pair<uint256 const, CWalletTx> > >::operator[] (this=0xda50600, __k=...)
at /usr/include/c++/5/bits/stl_map.h:483
#5 0x002bb174 in CWallet::AddToWallet (this=this@entry=0xda50430, wtxIn=..., fFromLoadWallet=fFromLoadWallet@entry=true) at wallet.cpp:664
#6 0x002dc29a in ReadKeyValue (pwallet=pwallet@entry=0xda50430, ssKey=..., ssValue=..., wss=..., strType="tx", strErr="") at walletdb.cpp:463
Both with recent releases such as 3.0.5 and code built locally corresponding to 3.0.5.1
Backtrace below was for a testnet wallet
#1 0x002a7ea0 in std::_Rb_tree_iterator<std::pair<uint256 const, CWalletTx> >::operator-- (this=) at /usr/include/c++/5/bits/stl_tree.h:220
#2 std::_Rb_tree<uint256, std::pair<uint256 const, CWalletTx>, std::_Select1st<std::pair<uint256 const, CWalletTx> >, std::less, std::allocator<std::pair<uint256 const, CWalletTx> > >::_M_get_insert_hint_unique_pos (__k=..., __position=..., this=0xda50600) at /usr/include/c++/5/bits/stl_tree.h:1924
#3 std::_Rb_tree<uint256, std::pair<uint256 const, CWalletTx>, std::_Select1st<std::pair<uint256 const, CWalletTx> >, std::less, std::allocator<std::pair<uint256 const, CWalletTx> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<uint256 const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<uint256 const, CWalletTx> >, std::piecewise_construct_t const&, std::tuple<uint256 const&>&&, std::tuple<>&&) (this=this@entry=0xda50600, __pos=...) at /usr/include/c++/5/bits/stl_tree.h:2174
#4 0x002c8438 in std::map<uint256, CWalletTx, std::less, std::allocator<std::pair<uint256 const, CWalletTx> > >::operator[] (this=0xda50600, __k=...)
at /usr/include/c++/5/bits/stl_map.h:483
#5 0x002bb174 in CWallet::AddToWallet (this=this@entry=0xda50430, wtxIn=..., fFromLoadWallet=fFromLoadWallet@entry=true) at wallet.cpp:664
#6 0x002dc29a in ReadKeyValue (pwallet=pwallet@entry=0xda50430, ssKey=..., ssValue=..., wss=..., strType="tx", strErr="") at walletdb.cpp:463