CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.27k stars 4.12k forks source link

Game crash during Portal Storm #70795

Open RobinSyl opened 8 months ago

RobinSyl commented 8 months ago

Describe the bug

The program has crashed. See the log file for a stack trace. CRASH LOG FILE: ./config/crash.log VERSION: d6e3fc6 TYPE: St12out_of_range MESSAGE: bitset::test: __position (which is 18446744073635596746) >= _Nb (which is 21) STACK TRACE:

0

(dbghelp: @0x7ff65e9e43d8[cataclysm-tiles.exe+0x2843d8]), 
(libbacktrace: debug_write_backtrace(std::ostream&)+0xa8@0x1402843d8),
0x1402843d8    /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.gcc12/12.2.0/include/c++/bits/ios_base.h:1125    debug_write_backtrace(std::ostream&)

1

(dbghelp: @0x7ff65e9c40dc[cataclysm-tiles.exe+0x2640dc]), 
(libbacktrace: log_crash+0x1de@0x1402640dc),
0x1402640dc    src/crash.cpp:918    std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::str() const
0x1402640dc    /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.gcc12/12.2.0/include/c++/bits/exception_ptr.h:86    log_crash

2

(dbghelp: @0x7ff65e9c431f[cataclysm-tiles.exe+0x26431f]), 
(libbacktrace: crash_terminate_handler()+0xa8@0x14026431f),
0x14026431f    /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.gcc12/12.2.0/include/c++/bits/exception_ptr.h:170    crash_terminate_handler

3

(dbghelp: @0x7ff65f7ab506[cataclysm-tiles.exe+0x104b506]), 
(libbacktrace: __cxxabiv1::__terminate(void (*)())+0x6@0x14104b506),
0x14104b506    [unknown src]:0    [unknown func]

4

(dbghelp: @0x7ff65fccb263[cataclysm-tiles.exe+0x156b263]), 
(libbacktrace: std::terminate()+0x13@0x14156b263),
0x14156b263    [unknown src]:0    [unknown func]

5

(dbghelp: @0x7ff65fcdc146[cataclysm-tiles.exe+0x157c146]), 
(libbacktrace: _cxa_throw+0x46@0x14157c146),
0x14157c146    [unknown src]:0    [unknown func]

6

(dbghelp: @0x7ff65fcc274f[cataclysm-tiles.exe+0x156274f]), 
(libbacktrace: std::__throw_out_of_range_fmt(char const*, ...)+0x7f@0x14156274f),
0x14156274f    [unknown src]:0    [unknown func]

7

(dbghelp: @0x7ff65faae2a9[cataclysm-tiles.exe+0x134e2a9]), 
(libbacktrace: std::bitset<21ull>::test(unsigned long long) const+0x29@0x14134e2a9),
0x14134e2a9    /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.gcc12/12.2.0/include/c++/bits/predefined_ops.h:407    std::_Base_bitset<1ull>::_S_maskbit(unsigned long long)
0x14134e2a9    /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.gcc12/12.2.0/include/c++/bits/predefined_ops.h:1066    std::bitset<21ull>::_Unchecked_test(unsigned long long) const
0x14134e2a9    /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.gcc12/12.2.0/include/c++/bits/predefined_ops.h:1326    std::bitset<21ull>::test(unsigned long long) const

8

(dbghelp: @0x7ff65eeecc05[cataclysm-tiles.exe+0x78cc05]), 
(libbacktrace: monster::plan()+0x815@0x14078cc05),
0x14078cc05    /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.gcc12/12.2.0/include/c++/bits/std_function.h:629    operator()
0x14078cc05    src/omdata.h:226    operator()
0x14078cc05    src/omdata.h:201    find_reachable<monster::plan()::<lambda(const mfaction_id&)>, creature_tracker::for_each_reachable<monster::plan()::<lambda(const mfaction_id&)>, monster::plan()::<lambda(Creature*)> >(const Creature&, monster::plan()::<lambda(const mfaction_id&)>&&, monster::plan()::<lambda(Creature*)>&&)::<lambda(Creature*)> >
0x14078cc05    src/omdata.h:224    for_each_reachable<monster::plan()::<lambda(const mfaction_id&)>, monster::plan()::<lambda(Creature*)> >
0x14078cc05    /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.gcc12/12.2.0/include/c++/bits/std_function.h:624    monster::plan()

9

(dbghelp: @0x7ff65ea3d99c[cataclysm-tiles.exe+0x2dd99c]), 
(libbacktrace: do_turn()+0xed4@0x1402dd99c),
0x1402dd99c    src/gamemode.h:274    monmove
0x1402dd99c    src/gamemode.h:610    do_turn()

10

(dbghelp: @0x7ff65fed4757[cataclysm-tiles.exe+0x1774757]), 
(libbacktrace: main+0x2484@0x141774757),
0x141774757    src/main.cpp:798    main

11

(dbghelp: @0x7ff65e7613ae[cataclysm-tiles.exe+0x13ae]), 
(libbacktrace: _tmainCRTStartup+0x22e@0x1400013ae),
0x1400013ae    /opt/mxe/tmp-gcc-x86_64-w64-mingw32.static.gcc12/gcc-12.2.0.build_/mingw-w64-v10.0.0/mingw-w64-crt/crt/crtexe.c:323    __tmainCRTStartup

12

(dbghelp: @0x7ff65e7614c6[cataclysm-tiles.exe+0x14c6]), 
(libbacktrace: WinMainCRTStartup+0x16@0x1400014c6),
0x1400014c6    /opt/mxe/tmp-gcc-x86_64-w64-mingw32.static.gcc12/gcc-12.2.0.build_/mingw-w64-v10.0.0/mingw-w64-crt/crt/crtexe.c:178    WinMainCRTStartup

13

(dbghelp: BaseThreadInitThunk+0x14@0x7ff910de7344[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),

14

(dbghelp: RtlUserThreadStart+0x21@0x7ff9120c26b1[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),

Attach save file

Pidcoke-trimmed.tar.gz

Steps to reproduce

Unsure of what caused it, was following portal storm, killed two amalgs and picked up two relics. Was skipping turns and following storm until it crashed.

Expected behavior

N/A

Screenshots

No response

Versions and configuration

Additional context

No response

RenechCDDA commented 8 months ago

This stack trace looks similar to the other reachability crashes we had recently (#70649), but not quite the same.

Regardless your version is a week old and predates the PRs fixing those, you should update.