We have a lot of regressiontests about seafaring (for a reason :-) ./regression_test.py -b ./widelands
FAILs
test/maps/ship_transportation.wmf/scripting/test_rip_ports_with_worker_in_transit.lua ... test/maps/ship_transportation.wmf/scripting/test_rip_first_port_with_worker_in_portdock.lua ... test/maps/ship_transportation.wmf/scripting/test_rip_first_port_with_ware_in_portdock.lua ... test/maps/ship_transportation.wmf/scripting/test_rip_second_port_with_ware_in_portdock.lua ... test/maps/ship_transportation.wmf/scripting/test_rip_farm_with_ware_and_worker_in_transit.lua ... test/maps/ship_transportation.wmf/scripting/test_rip_ports_with_ware_in_transit.lua ...
test/maps/ship_transportation.wmf/scripting/test_rip_second_port_with_worker_in_portdock.lua ...
One hard crash from ASAN with: ==14492==ERROR: AddressSanitizer: heap-use-after-free on address 0x6040020e6798 at pc 0x000107e3088e bp 0x7ffeea4f2790 sp 0x7ffeea4f2788 READ of size 8 at 0x6040020e6798 thread T0 #0 0x107e3088d in std::__1::__tree_end_node<std::__1::__tree_node_base<void*>*>* std::__1::__tree_next_iter<std::__1::__tree_end_node<std::__1::__tree_node_base<void*>*>*, std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*) __tree:176 #1 0x107e1c53a in std::__1::__tree_const_iterator<Widelands::Ship*, std::__1::__tree_node<Widelands::Ship*, void*>*, long>::operator++() __tree:920 #2 0x107e1bc2c in Widelands::PortDock::cleanup(Widelands::EditorGameBase&) portdock.cc:200 #3 0x1074fcef2 in Widelands::MapObject::remove(Widelands::EditorGameBase&) map_object.cc:465 #4 0x1078b2d7c in Widelands::Warehouse::cleanup(Widelands::EditorGameBase&) warehouse.cc:638 ... previously allocated by thread T0 here: ... #4 0x107e3340f in std::__1::unique_ptr<std::__1::__tree_node<Widelands::Ship*, void*>, std::__1::__tree_node_destructor<std::__1::allocator<std::__1::__tree_node<Widelands::Ship*, void*> > > > std::__1::__tree<Widelands::Ship*, std::__1::less<Widelands::Ship*>, std::__1::allocator<Widelands::Ship*> >::__construct_node<Widelands::Ship*>(Widelands::Ship*&&) __tree:2201 #5 0x107e32bfc in std::__1::pair<std::__1::__tree_iterator<Widelands::Ship*, std::__1::__tree_node<Widelands::Ship*, void*>*, long>, bool> std::__1::__tree<Widelands::Ship*, std::__1::less<Widelands::Ship*>, std::__1::allocator<Widelands::Ship*> >::__emplace_unique_key_args<Widelands::Ship*, Widelands::Ship*>(Widelands::Ship* const&, Widelands::Ship*&&) __tree:2147 #6 0x107e327ab in std::__1::__tree<Widelands::Ship*, std::__1::less<Widelands::Ship*>, std::__1::allocator<Widelands::Ship*> >::__insert_unique(Widelands::Ship*&&) __tree:1276 #7 0x107e1eb3f in std::__1::set<Widelands::Ship*, std::__1::less<Widelands::Ship*>, std::__1::allocator<Widelands::Ship*> >::insert(Widelands::Ship*&&) set:635 #8 0x107e1e3af in Widelands::PortDock::ship_coming(Widelands::Ship&, bool) portdock.cc:330 #9 0x10772d84b in Widelands::Ship::push_destination(Widelands::Game&, Widelands::PortDock&) ship.cc:763 #10 0x107df0509 in Widelands::Fleet::push_next_destinations(Widelands::Game&, Widelands::Ship&, Widelands::PortDock const&) fleet.cc:872 #11 0x107e1fa50 in Widelands::PortDock::ship_arrived(Widelands::Game&, Widelands::Ship&) portdock.cc:374 #12 0x10772239d in Widelands::Ship::ship_update_transport(Widelands::Game&, Widelands::Bob::State&) ship.cc:315 #13 0x107720fb8 in Widelands::Ship::ship_update(Widelands::Game&, Widelands::Bob::State&) ship.cc:265 #14 0x107458bff in Widelands::Bob::do_act(Widelands::Game&) bob.cc:194
Caused by FAIL: test/maps/ship_transportation.wmf/scripting/test_rip_portdock_with_worker_and_ware_in_transit.lua
Please tell me how I may help you....
« Back to merge proposal
We have a lot of regressiontests about seafaring (for a reason :-) test.py -b ./widelands
./regression_
FAILs
test/maps/ ship_transporta tion.wmf/ scripting/ test_rip_ ports_with_ worker_ in_transit. lua ... ship_transporta tion.wmf/ scripting/ test_rip_ first_port_ with_worker_ in_portdock. lua ... ship_transporta tion.wmf/ scripting/ test_rip_ first_port_ with_ware_ in_portdock. lua ... ship_transporta tion.wmf/ scripting/ test_rip_ second_ port_with_ ware_in_ portdock. lua ... ship_transporta tion.wmf/ scripting/ test_rip_ farm_with_ ware_and_ worker_ in_transit. lua ... ship_transporta tion.wmf/ scripting/ test_rip_ ports_with_ ware_in_ transit. lua ...
test/maps/
test/maps/
test/maps/
test/maps/
test/maps/
test/maps/ ship_transporta tion.wmf/ scripting/ test_rip_ second_ port_with_ worker_ in_portdock. lua ...
One hard crash from ASAN with: 1::__tree_ end_node< std::__ 1::__tree_ node_base< void*>* >* std::__ 1::__tree_ next_iter< std::__ 1::__tree_ end_node< std::__ 1::__tree_ node_base< void*>* >*, std::__ 1::__tree_ node_base< void*>* >(std:: __1::__ tree_node_ base<void* >*) __tree:176 1::__tree_ const_iterator< Widelands: :Ship*, std::__ 1::__tree_ node<Widelands: :Ship*, void*>*, long>::operator++() __tree:920 :PortDock: :cleanup( Widelands: :EditorGameBase &) portdock.cc:200 :MapObject: :remove( Widelands: :EditorGameBase &) map_object.cc:465 :Warehouse: :cleanup( Widelands: :EditorGameBase &) warehouse.cc:638 1::unique_ ptr<std: :__1::_ _tree_node< Widelands: :Ship*, void*>, std::__ 1::__tree_ node_destructor <std::_ _1::allocator< std::__ 1::__tree_ node<Widelands: :Ship*, void*> > > > std::__ 1::__tree< Widelands: :Ship*, std::__ 1::less< Widelands: :Ship*> , std::__ 1::allocator< Widelands: :Ship*> >::__construct_ node<Widelands: :Ship*> (Widelands: :Ship*& &) __tree:2201 1::pair< std::__ 1::__tree_ iterator< Widelands: :Ship*, std::__ 1::__tree_ node<Widelands: :Ship*, void*>*, long>, bool> std::__ 1::__tree< Widelands: :Ship*, std::__ 1::less< Widelands: :Ship*> , std::__ 1::allocator< Widelands: :Ship*> >::__emplace_ unique_ key_args< Widelands: :Ship*, Widelands: :Ship*> (Widelands: :Ship* const&, Widelands::Ship*&&) __tree:2147 1::__tree< Widelands: :Ship*, std::__ 1::less< Widelands: :Ship*> , std::__ 1::allocator< Widelands: :Ship*> >::__insert_ unique( Widelands: :Ship*& &) __tree:1276 1::set< Widelands: :Ship*, std::__ 1::less< Widelands: :Ship*> , std::__ 1::allocator< Widelands: :Ship*> >::insert( Widelands: :Ship*& &) set:635 :PortDock: :ship_coming( Widelands: :Ship&, bool) portdock.cc:330 :Ship:: push_destinatio n(Widelands: :Game&, Widelands: :PortDock& ) ship.cc:763 :Fleet: :push_next_ destinations( Widelands: :Game&, Widelands::Ship&, Widelands::PortDock const&) fleet.cc:872 :PortDock: :ship_arrived( Widelands: :Game&, Widelands::Ship&) portdock.cc:374 :Ship:: ship_update_ transport( Widelands: :Game&, Widelands: :Bob::State& ) ship.cc:315 :Ship:: ship_update( Widelands: :Game&, Widelands: :Bob::State& ) ship.cc:265 :Bob::do_ act(Widelands: :Game&) bob.cc:194
==14492==ERROR: AddressSanitizer: heap-use-after-free on address 0x6040020e6798 at pc 0x000107e3088e bp 0x7ffeea4f2790 sp 0x7ffeea4f2788
READ of size 8 at 0x6040020e6798 thread T0
#0 0x107e3088d in std::__
#1 0x107e1c53a in std::__
#2 0x107e1bc2c in Widelands:
#3 0x1074fcef2 in Widelands:
#4 0x1078b2d7c in Widelands:
...
previously allocated by thread T0 here:
...
#4 0x107e3340f in std::__
#5 0x107e32bfc in std::__
#6 0x107e327ab in std::__
#7 0x107e1eb3f in std::__
#8 0x107e1e3af in Widelands:
#9 0x10772d84b in Widelands:
#10 0x107df0509 in Widelands:
#11 0x107e1fa50 in Widelands:
#12 0x10772239d in Widelands:
#13 0x107720fb8 in Widelands:
#14 0x107458bff in Widelands:
Caused by FAIL: test/maps/ ship_transporta tion.wmf/ scripting/ test_rip_ portdock_ with_worker_ and_ware_ in_transit. lua
Please tell me how I may help you....