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 entering a lab. #10619

Closed
Griffinhart opened this issue Dec 24, 2014 · 3 comments
Closed

Segfault entering a lab. #10619

Griffinhart opened this issue Dec 24, 2014 · 3 comments
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes.

Comments

@Griffinhart
Copy link
Contributor

Version: 0.B-1775-gca14431
Built on Win 7 Pro x64, Cygwin x86.

Tried to enter a lab (don't think it was ice; if it was, the temperature drop at the surface wasn't noticeable through my character's clothing), segfault occurred after the new level loaded in.

I'll try and get a save file; I hadn't saved in a while when the crash occurred. Grumble

gdb bt:

#0  std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string (this=0x28a628, __str=...)
    at /usr/src/debug/gcc-4.8.3-4/i686-pc-cygwin/libstdc++-v3/include/bits/basic_string.tcc:173
#1  0x009f1234 in item::item (this=0x28a600) at src/item.h:101
#2  0x0096ec15 in process_item<std::_List_iterator<item> > (items=..., n=..., location=..., activate=false) at src/map.cpp:3056
#3  0x00961072 in process_map_items (items=..., n=..., location=...) at src/map.cpp:3072
#4  0x009efb73 in map::process_items_in_submap<bool (*)(item_stack&, std::_List_iterator<item>&, point, std::string)> (this=0xfff400a8, current_submap=0x826e5248, gridx=5,
    gridy=3, processor=0x961038 <process_map_items(item_stack&, std::list<item, std::allocator<item> >::iterator&, point, std::string)>, signal=...) at src/map.cpp:3134
#5  0x009ef9df in map::process_items<bool (*)(item_stack&, std::_List_iterator<item>&, point, vehicle*, int, std::string), bool (*)(item_stack&, std::_List_iterator<item>&, point, std::string)> (this=0xfff400a8, active=true,
    veh_processor=0x9610a0 <process_vehicle_items(item_stack&, std::list<item, std::allocator<item> >::iterator&, point, vehicle*, int, std::string)>,
    map_processor=0x961038 <process_map_items(item_stack&, std::list<item, std::allocator<item> >::iterator&, point, std::string)>, signal=...) at src/map.cpp:3113
#6  0x00961430 in map::process_active_items (this=0xfff400a8) at src/map.cpp:3099
#7  0x005fb137 in game::do_turn (this=0xfff40008) at src/game.cpp:1476
#8  0x00971ee2 in main (argc=0, argv=0x28ac30) at src/main.cpp:296
@Rivet-the-Zombie Rivet-the-Zombie added the <Crash / Freeze> Fatal bug that results in hangs or crashes. label Dec 24, 2014
@KA101
Copy link
Contributor

KA101 commented Dec 24, 2014

Looks like the same bug as we were hitting in #10580. >_< Leaving it open for the backtrace, thanks.

@macrosblackd
Copy link
Contributor

Adding mine too:
Save: https://dl.dropboxusercontent.com/u/3742332/save.7z

#0  0x00ccc94e in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) ()
#1  0x00c2a2b9 in item::item (this=0xd9bf720) at D:/Cataclysm-DDA.git/src/item.h:101
#2  0x0076c08d in process_item<std::_List_iterator<item> > (items=..., n=..., location=..., activate=false) at D:\Cataclysm-DDA.git\src\map.cpp:3056
#3  0x00759e5f in process_map_items (items=..., n=..., location=...) at D:\Cataclysm-DDA.git\src\map.cpp:3072
#4  0x00c284e4 in map::process_items_in_submap<bool (*)(item_stack&, std::_List_iterator<item>&, point, std::string)> (this=0x198a8a60, current_submap=0x1e38d320, gridx=10, gridy=5, processor=0x759dea <process_map_items(item_stack&, std::list<item, std::allocator<item> >::iterator&, point, std::string)>, signal=...) at D:\Cataclysm-DDA.git\src\map.cpp:3134
#5  0x00c2829a in map::process_items<bool (*)(item_stack&, std::_List_iterator<item>&, point, vehicle*, int, std::string), bool (*)(item_stack&, std::_List_iterator<item>&, point, std::string)> (this=0x198a8a60, active=true, veh_processor=0x759eb1 <process_vehicle_items(item_stack&, std::list<item, std::allocator<item> >::iterator&, point, vehicle*, int, std::string)>, map_processor=0x759dea <process_map_items(item_stack&, std::list<item, std::allocator<item> >::iterator&, point, std::string)>, signal=...) at D:\Cataclysm-DDA.git\src\map.cpp:3113
#6  0x0075a414 in map::process_active_items (this=0x198a8a60) at D:\Cataclysm-DDA.git\src\map.cpp:3099
#7  0x0052df99 in game::do_turn (this=0x198a89c0) at D:\Cataclysm-DDA.git\src\game.cpp:1476
#8  0x00737fb8 in main (argc=0, argv=0xde32fec) at D:\Cataclysm-DDA.git\src\main.cpp:296

@kevingranade
Copy link
Member

Should have been fixed, regardless not enough information to pinpoint the exact cause.
The proximate cause is an invalid item iterator, but the actual cause is whatever invalidated it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes.
Projects
None yet
Development

No branches or pull requests

5 participants