Skip to content

Segfault on reloading acetylene torch #70363

Open
@actually-a-cat

Description

Describe the bug

crashy crashy

Attach save file

Landover-trimmed.tar.gz

Steps to reproduce

  1. load save
  2. press reload
  3. choose acetylene torch
  4. choose first welding tank on list
  5. get prompted to dispose of wielded item, choose to drop (no other choice)
  6. crash

Expected behavior

no crashy

Screenshots

No response

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.19045.3803 (22H2)
  • Game Version: 0.G-5914-gff04cc2b1a [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Portal Storms Ignore NPCs [personal_portal_storms],
    Slowdown Fungal Growth [no_fungal_growth]
    ]

Additional context

The program has crashed.
See the log file for a stack trace.
CRASH LOG FILE: ./config/crash.log
VERSION: 0.G-5914-gff04cc2b1a
TYPE: Signal
MESSAGE: SIGSEGV: Segmentation fault
STACK TRACE:

  #0
    (dbghelp: @0x7ff6f7fe2fdf[cataclysm-tiles.exe+0x612fdf]), 
    (libbacktrace: debug_write_backtrace(std::ostream&)+0x6f@0x140612fdf),
    0x140612fdf    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/ext/aligned_buffer.h:1125    debug_write_backtrace(std::ostream&)
  #1
    (dbghelp: @0x7ff6f7f93742[cataclysm-tiles.exe+0x5c3742]), 
    (libbacktrace: log_crash+0x412@0x1405c3742),
    0x1405c3742    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/sstream:537    std::basic_streambuf<char, std::char_traits<char> >::pptr() const
    0x1405c3742    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/basic_ios.h:432    std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_high_mark() const
    0x1405c3742    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/basic_ios.h:245    std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const
    0x1405c3742    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/basic_ios.h:918    std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::str() const
    0x1405c3742    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/basic_string.tcc:86    log_crash
  #2
    (dbghelp: @0x7ff6f7f93f80[cataclysm-tiles.exe+0x5c3f80]), 
    (libbacktrace: signal_handler+0x40@0x1405c3f80),
    0x1405c3f80    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/basic_string.tcc:143    signal_handler
  #3
    (dbghelp: @0x7ff6f984b812[cataclysm-tiles.exe+0x1e7b812]), 
    (libbacktrace: gnu_exception_handler+0x182@0x141e7b812),
    0x141e7b812    ../gcc-11.4.0.build_/mingw-w64-v11.0.1/mingw-w64-crt/crt/crt_handler.c:214    _gnu_exception_handler
  #4
    (dbghelp: _C_specific_handler+0x98@0x7ff978337ff8[msvcrt.dll+0x27ff8]), 
    (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
    (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
  #5
    (dbghelp: _chkstk+0x11f@0x7ff97a0723af[ntdll.dll+0xa23af]), 
    (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
    (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
  #6
    (dbghelp: RtlRaiseException+0x484@0x7ff97a0214b4[ntdll.dll+0x514b4]), 
    (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
    (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
  #7
    (dbghelp: KiUserExceptionDispatcher+0x2e@0x7ff97a070ebe[ntdll.dll+0xa0ebe]), 
    (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
    (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
  #8
    (dbghelp: @0x7ff6f855d1a0[cataclysm-tiles.exe+0xb8d1a0]), 
    (libbacktrace: item_contents::get_pockets(std::function<bool (item_pocket const&)> const&)+0x10@0x140b8d1a0),
    0x140b8d1a0    src/input.h:947    std::__cxx11::list<item_pocket, std::allocator<item_pocket> >::begin()
    0x140b8d1a0    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/invoke.h:1971    item_contents::get_pockets(std::function<bool (item_pocket const&)> const&)
  #9
    (dbghelp: @0x7ff6f855d34e[cataclysm-tiles.exe+0xb8d34e]), 
    (libbacktrace: item_contents::get_all_standard_pockets()+0x4e@0x140b8d34e),
    0x140b8d34e    src/character.h:243    std::_Function_base::~_Function_base()
    0x140b8d34e    src/character.h:334    std::function<bool (item_pocket const&)>::~function()
    0x140b8d34e    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/invoke.h:2004    item_contents::get_all_standard_pockets()
  #10
    (dbghelp: @0x7ff6f849fda2[cataclysm-tiles.exe+0xacfda2]), 
    (libbacktrace: item::get_all_standard_pockets()+0x12@0x140acfda2),
    0x140acfda2    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/optional:9741    item::get_all_standard_pockets()
  #11
    (dbghelp: @0x7ff6f9fbbe8a[cataclysm-tiles.exe+0x25ebe8a]), 
    (libbacktrace: item_location::impl::item_in_container::parent_pocket() const+0x6a@0x1425ebe8a),
    0x1425ebe8a    src/item_location.cpp:704    std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
    0x1425ebe8a    src/item_location.cpp:1154    std::__shared_ptr<item_location::impl, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr()
    0x1425ebe8a    src/item_location.h:122    std::shared_ptr<item_location::impl>::~shared_ptr()
    0x1425ebe8a    src/talker.h:30    item_location::~item_location()
    0x1425ebe8a    src/talker.h:30    item_location::impl::item_in_container::parent_pocket() const
  #12
    (dbghelp: @0x7ff6f9fbc041[cataclysm-tiles.exe+0x25ec041]), 
    (libbacktrace: item_location::impl::item_in_container::check_parent_capacity_recursive() const+0x21@0x1425ec041),
    0x1425ec041    src/item_location.cpp:739    item_location::impl::item_in_container::volume_capacity() const
    0x1425ec041    src/item_location.cpp:747    item_location::impl::item_in_container::check_parent_capacity_recursive() const
  #13
    (dbghelp: @0x7ff6f7a4ad13[cataclysm-tiles.exe+0x7ad13]), 
    (libbacktrace: reload_activity_actor::finish(player_activity&, Character&)+0x3a3@0x14007ad13),
    0x14007ad13    src/point.h:4553    reload_activity_actor::finish(player_activity&, Character&)
  #14
    (dbghelp: @0x7ff6f8fe30b7[cataclysm-tiles.exe+0x16130b7]), 
    (libbacktrace: player_activity::do_turn(Character&)+0xcd7@0x1416130b7),
    0x1416130b7    src/talker.h:381    player_activity::do_turn(Character&)
  #15
    (dbghelp: @0x7ff6f80c6bc3[cataclysm-tiles.exe+0x6f6bc3]), 
    (libbacktrace: do_turn()+0x373@0x1406f6bc3),
    0x1406f6bc3    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/invoke.h:486    do_turn()
  #16
    (dbghelp: @0x7ff6fa66562d[cataclysm-tiles.exe+0x2c9562d]), 
    (libbacktrace: main+0x26fd@0x142c9562d),
    0x142c9562d    …/src/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/11.4.0/include/c++/bits/invoke.h:798    main
  #17
    (dbghelp: @0x7ff6f79d12f1[cataclysm-tiles.exe+0x12f1]), 
    (libbacktrace: _tmainCRTStartup+0x171@0x1400012f1),
    0x1400012f1    ../gcc-11.4.0.build_/mingw-w64-v11.0.1/mingw-w64-crt/crt/crtexe.c:273    __tmainCRTStartup
  #18
    (dbghelp: @0x7ff6f79d13e6[cataclysm-tiles.exe+0x13e6]), 
    (libbacktrace: WinMainCRTStartup+0x16@0x1400013e6),
    0x1400013e6    ../gcc-11.4.0.build_/mingw-w64-v11.0.1/mingw-w64-crt/crt/crtexe.c:164    WinMainCRTStartup
  #19
    (dbghelp: BaseThreadInitThunk+0x14@0x7ff978867344[KERNEL32.DLL+0x17344]), 
    (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
    (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
  #20
    (dbghelp: RtlUserThreadStart+0x21@0x7ff97a0226b1[ntdll.dll+0x526b1]), 
    (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
    (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),

This is on a custom build with some patches but I tested that it reproduces on a stock build.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    (S2 - Confirmed)Bug that's been confirmed to exist<Crash / Freeze>Fatal bug that results in hangs or crashes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions