Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault in halite environment for 1 by 1 maps #185

Open
tomzx opened this issue Nov 12, 2016 · 0 comments
Open

Segfault in halite environment for 1 by 1 maps #185

tomzx opened this issue Nov 12, 2016 · 0 comments
Assignees

Comments

@tomzx
Copy link
Contributor

tomzx commented Nov 12, 2016

Environment v1.0

It appears that for some higher size maps this issue also occurs, more particularly when one of the sides is odd. It is 100% reproducible on a 1 by 1 map though.

Program received signal SIGSEGV, Segmentation fault.
0x00000000004140b0 in std::vector<hlt::Map::Map(short, short, unsigned char, unsigned int)::Region*, std::allocator<hlt::Map::Map(short, short, unsigned char, unsigned int)::Region*> >::size() const (this=0x0) at /usr/include/c++/6/bits/stl_vector.h:656
656           { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
(gdb) bt
#0  0x00000000004140b0 in std::vector<hlt::Map::Map(short, short, unsigned char, unsigned int)::Region*, std::allocator<hlt::Map::Map(short, short, unsigned char, unsigned int)::Region*> >::size() const (this=0x0) at /usr/include/c++/6/bits/stl_vector.h:656
#1  0x000000000040fafc in hlt::Map::Map(short, short, unsigned char, unsigned int)::Region::Region(int, int, std::function<double ()> const&) () at core/hlt.hpp:117
#2  0x0000000000410b96 in hlt::Map::Map (this=0x7fffffffddd0, width=1, height=1, numberOfPlayers=2 '\002', seed=3227030245) at core/hlt.hpp:166
#3  0x0000000000408657 in Halite::Halite (this=0x6a2d50, width_=1, height_=1, seed_=3227030245, networking_=..., shouldIgnoreTimeout=false) at core/Halite.cpp:212
#4  0x0000000000446559 in main (argc=5, argv=0x7fffffffe648) at main.cpp:123

I'm also able to 100% reproduce with the following arguments: -d "5 8" "python myBot.py" "python myBot.py" "python myBot.py" "python myBot.py" "python myBot.py" "python myBot.py" (6 bots or any higher amount).

@truell20 truell20 added this to the Sprint 2 milestone Nov 16, 2016
@truell20 truell20 removed this from the Sprint 2 (Before Pruning) milestone Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants