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

Segmentation fault when restarting craft with ruined components #32694

Closed
pjf opened this issue Jul 28, 2019 · 0 comments · Fixed by #36762
Closed

Segmentation fault when restarting craft with ruined components #32694

pjf opened this issue Jul 28, 2019 · 0 comments · Fixed by #36762
Labels
Crafting / Construction / Recipes Includes: Uncrafting / Disassembling <Crash / Freeze> Fatal bug that results in hangs or crashes.
Milestone

Comments

@pjf
Copy link
Contributor

pjf commented Jul 28, 2019

Describe the bug

Desperate to have a welder, my survivor with mechanics 1 attempts to craft a makeshift welder using a book for reference. Expected failures occur, requiring additional heating elements. On the third restart of the craft, the game segfaults and dies.

Stacktrace - click to expand
The program has crashed.
See the log file for a stack trace.
CRASH LOG FILE: /home/pjf/.cataclysm-dda/config/crash.log
VERSION: 0.D-5944-gfc34e6cd31
TYPE: Signal
MESSAGE: SIGSEGV: Segmentation fault
STACK TRACE:

	./cataclysm-tiles(_Z21debug_write_backtraceRSo+0x23) [0xa79e42]
	./cataclysm-tiles() [0xa678ee]
	./cataclysm-tiles() [0xa6755c]
	/lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7fb376cc44b0]
	./cataclysm-tiles(_ZNK4item15find_armor_dataEv+0xc) [0xbf51a4]
	./cataclysm-tiles(_ZNK4item8is_armorEv+0x11) [0xc16521]
	./cataclysm-tiles(_ZNK4item5tnameB5cxx11Ejbj+0xc6) [0xbf1c90]
	./cataclysm-tiles(_ZNK4item10get_makingEv+0x34) [0xbf614c]
	./cataclysm-tiles(_ZN4iuse5craftEP6playerP4itembRK8tripoint+0xe2) [0xca122c]
	./cataclysm-tiles(_ZNK21iuse_function_wrapper3useER6playerR4itembRK8tripoint+0x10) [0xc5af50]
	./cataclysm-tiles(_ZNK5itype6invokeER6playerR4itemRK8tripointRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x7c) [0xc6df9c]
	./cataclysm-tiles(_ZN6player11invoke_itemEP4itemRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK8tripoint+0x55) [0x10409a5]
	./cataclysm-tiles(_ZN6player3useE13item_location+0x257) [0x10403c1]
	./cataclysm-tiles(_ZN6player3useEi+0x58) [0x103f70c]
	./cataclysm-tiles(_ZN4game8use_itemEi+0x149) [0xb23fd5]
	./cataclysm-tiles(_ZN4game13handle_actionEv+0x16ab) [0xb82367]
	./cataclysm-tiles(_ZN4game7do_turnEv+0x57c) [0xb1b20e]
	./cataclysm-tiles(main+0x10b1) [0xd283c5]
	/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fb376caf830]
	./cataclysm-tiles(_start+0x29) [0x8d54a9]

	Attempting to repeat stack trace using debug symbols...
	debug_write_backtrace(std::ostream&)
	??:?
	log_crash(char const*, char const*)
	crash.cpp:?
	signal_handler(int)
	crash.cpp:?
	??
	??:0
	item::find_armor_data() const
	??:?
	item::is_armor() const
	??:?
	item::tname[abi:cxx11](unsigned int, bool, unsigned int) const
	??:?
	item::get_making() const
	??:?
	iuse::craft(player*, item*, bool, tripoint const&)
	??:?
	iuse_function_wrapper::use(player&, item&, bool, tripoint const&) const
	??:?
	itype::invoke(player&, item&, tripoint const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const
	??:?
	player::invoke_item(item*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tripoint const&)
	??:?
	player::use(item_location)
	??:?
	player::use(int)
	??:?
	game::use_item(int)
	??:?
	game::handle_action()
	??:?
	game::do_turn()
	??:?
	main
	??:?
	__libc_start_main
	/build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325
	_start
	??:?

Steps To Reproduce

Have not yet been able to reproduce.

Expected behavior

Game allows resumed craft.

Versions and configuration

  • OS: Ubuntu 16.04 LTS
  • Game version: 666b2ec with MSX tilesets applied
  • Graphics version: Tiles
  • Mods:
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Filthy Clothing [filthy_morale],
    Alternative Map Key [alt_map_key],
    [DP_MOD] Indicators: REMIX [DP_REMIX_INDICATORS],
    sees-player icon, +attitude [sees_player],
    Modular Turrets [modular_turrets],
    Salvaged Robots [Salvaged_Robots],
    Sleep Deprivation [sleepdeprivation],
    Bionic Slots [cbm_slots]
@KorGgenT KorGgenT added <Crash / Freeze> Fatal bug that results in hangs or crashes. Crafting / Construction / Recipes Includes: Uncrafting / Disassembling labels Jul 28, 2019
@kevingranade kevingranade added this to the 0.E milestone Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crafting / Construction / Recipes Includes: Uncrafting / Disassembling <Crash / Freeze> Fatal bug that results in hangs or crashes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants