ERROR in 'spl-book.cc' at line 145: ASSERT failed: book of 44 out of range 0 (0) .. (int)ARRAYSZ(spellbook_templates) (43) Version: Dungeon Crawl Stone Soup 0.27-a0-200-g8ba0179 Platform: unix Bits: 64 Game mode: seeded Tiles: online Seed: 4264689176444865695, deterministic pregen: 1 Command line: /var/dcss/builds/dcss-trunk/latest/bin/dcss -name MercyWheel -rc /var/dcss/gamedata/dcss-weekly-challenge/rc-files/MercyWheel.rc -macro /var/dcss/gamedata/dcss-weekly-challenge/rc-files/MercyWheel.macro -morgue /var/dcss/gamedata/dcss/morgue/MercyWheel/ -extra-opt-first travel_delay=20 -extra-opt-first rest_delay=0 -dir /var/dcss/gamedata/dcss-weekly-challenge/save/ -webtiles-socket /var/dcss/sockets/MercyWheel:2021-01-29.11:26:03.sock -await-connection -extra-opt-last combo=DrWn -seed 4264689176444865695 RC options: restart_after_game = false Crash caused by signal #6: Aborted Obtained 20 stack frames. /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z17write_stack_traceP8_IO_FILE+0x38) [0x739428]: write_stack_trace(_IO_FILE*) /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z13do_crash_dumpv+0x3c7) [0x7405f7]: do_crash_dump() /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z20crash_signal_handleri+0x1f0) [0x739890]: crash_signal_handler(int) /lib/x86_64-linux-gnu/libc.so.6(+0x354c0) [0x7f672b6d74c0]: /lib/x86_64-linux-gnu/libpthread.so.0(raise+0x29) [0x7f672ba7d269]: /var/dcss/builds/dcss-trunk/latest/bin/dcss() [0x73fdb9] /var/dcss/builds/dcss-trunk/latest/bin/dcss() [0x7400c6] /var/dcss/builds/dcss-trunk/latest/bin/dcss() [0xb9a415] /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z14spells_in_bookRK8item_def+0x2a9) [0xb9ae49]: spells_in_book(item_def const&) /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z15is_useless_itemRK8item_defbb+0x44d) [0x8f036d]: is_useless_item(item_def const&, bool, bool) /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z17newgame_make_item17object_class_typeiiiib+0x13c) [0xad9b9c]: newgame_make_item(object_class_type, int, int, int, int, bool) /var/dcss/builds/dcss-trunk/latest/bin/dcss() [0xaddec6] /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z15create_wandererv+0x247) [0xade287]: create_wanderer() /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z17give_items_skillsRK11newgame_def+0xe) [0xada09e]: give_items_skills(newgame_def const&) /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z10setup_gameRK11newgame_defb+0x262) [0xadca22]: setup_game(newgame_def const&, bool) /var/dcss/builds/dcss-trunk/latest/bin/dcss(_Z12startup_stepv+0x14d0) [0xbf49c0]: startup_step() /var/dcss/builds/dcss-trunk/latest/bin/dcss() [0xd0dd98] /var/dcss/builds/dcss-trunk/latest/bin/dcss(main+0x17e) [0x6a0c4e]: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f672b6c2840]: /var/dcss/builds/dcss-trunk/latest/bin/dcss(_start+0x29) [0x6a16c9]: Trying to run gdb. GNU gdb (Ubuntu 8.2-0ubuntu1~16.04.1) 8.2 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0x00007f672ba7cf2a in __waitpid (pid=10280, stat_loc=stat_loc@entry=0x0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29 #0 0x00007f672ba7cf2a in __waitpid (pid=10280, stat_loc=stat_loc@entry=0x0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29 resultvar = 18446744073709551104 sc_ret = #1 0x00000000007392a5 in call_gdb (file=file@entry=0x7f672ba67540 <_IO_2_1_stderr_>) at crash.cc:436 gdb = attach_cmd = "attach 10274\000\000\000\000\000\000\000" #2 0x0000000000740613 in do_crash_dump () at dbg-asrt.cc:685 t = 1611919564 dir = "/var/dcss/gamedata/dcss/morgue/MercyWheel/" name = "/var/dcss/gamedata/dcss/morgue/MercyWheel/crash-MercyWheel-20210129-112604.txt", '\000' signal_info = "Crash caused by signal #6: Aborted" cause_msg = "ERROR in 'spl-book.cc' at line 145: ASSERT failed: book of 44 out of range 0 (0) .. (int)ARRAYSZ(spellbook_templates) (43)" file = 0x7f672ba67540 <_IO_2_1_stderr_> #3 0x0000000000739890 in crash_signal_handler (sig_num=6) at crash.cc:196 No locals. #4 No locals. #5 0x00007f672ba7d269 in raise (sig=6) at ../sysdeps/unix/sysv/linux/pt-raise.c:35 resultvar = 0 pid = #6 0x000000000073fdb9 in _BreakStrToDebugger (mesg=mesg@entry=0x7ffdf8091870 "ERROR in 'spl-book.cc' at line 145: ASSERT failed: book of 44 out of range 0 (0) .. (int)ARRAYSZ(spellbook_templates) (43)", assert=false) at dbg-asrt.cc:817 No locals. #7 0x00000000007400c6 in die (file=file@entry=0xd424f2 "spl-book.cc", line=line@entry=145, format=format@entry=0xdb34b8 "ASSERT failed: book of %ld out of range 0 (%ld) .. (int)ARRAYSZ(spellbook_templates) (%ld)") at dbg-asrt.cc:877 tmp = "ASSERT failed: book of 44 out of range 0 (0) .. (int)ARRAYSZ(spellbook_templates) (43)", '\000' mesg = "ERROR in 'spl-book.cc' at line 145: ASSERT failed: book of 44 out of range 0 (0) .. (int)ARRAYSZ(spellbook_templates) (43)", '\000' args = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7ffdf8092160, reg_save_area = 0x7ffdf8092090}} #8 0x0000000000b9a415 in spellbook_template (book=) at spl-book.cc:145 No locals. #9 0x0000000000b9ae49 in spellbook_template (book=) at spl-book.cc:140 No locals. #10 spells_in_book (book=...) at spl-book.cc:128 ret = std::vector of length 0, capacity 0 props = @0x11af970: {, std::allocator >, CrawlStoreValue, std::less, std::allocator > >, std::allocator, std::allocator > const, CrawlStoreValue> > >> = std::map with 0 elements, } spells = #11 0x00000000008f036d in is_useless_item (item=..., temp=temp@entry=false, ident=ident@entry=true) at item-name.cc:3144 st = __for_range = __for_begin = __for_end = useless = true #12 0x0000000000ad9b9c in newgame_make_item (force_tutorial=, force_ego=, plus=, qty=, sub_type=, base=) at ng-setup.cc:149 slot = 1 item = @0x11af920: {base_type = OBJ_BOOKS, sub_type = 44 ',', {plus = 0, mon_type = MONS_PROGRAM_BUG, skill = SK_FIGHTING, charges = 0, net_durability = 0, tithe_state = 0}, {plus2 = 0, net_placed = 0, skill_points = 0, stash_freshness = 0}, {special = 0, unrand_idx = 0, subtype_rnd = 0, brand = 0, freshness = 0}, rnd = 0 '\000', quantity = 1, flags = 0, pos = {x = 0, y = 0}, link = 27000, slot = 0, orig_place = {branch = BRANCH_DUNGEON, depth = -1}, orig_monnum = 0, inscription = "", props = {, std::allocator >, CrawlStoreValue, std::less, std::allocator > >, std::allocator, std::allocator > const, CrawlStoreValue> > >> = std::map with 0 elements, }} slot = item = item = which_spell = #13 newgame_make_item (base=base@entry=OBJ_BOOKS, sub_type=sub_type@entry=44, qty=qty@entry=1, plus=plus@entry=0, force_ego=force_ego@entry=0, force_tutorial=force_tutorial@entry=false) at ng-setup.cc:94 slot = item = item = which_spell = #14 0x0000000000addec6 in _give_wanderer_minor_book (skill=) at ng-wanderer.cc:378 school = spschool::transmutation item = school = item = value = #15 _wanderer_decent_equipment (skill=, gift_skills=...) at ng-wanderer.cc:627 combined_weapon_skills = {SK_TRANSMUTATIONS, SK_MACES_FLAILS, SK_BOWS, SK_CROSSBOWS, SK_SHORT_BLADES, SK_LONG_BLADES, SK_STAVES, SK_UNARMED_COMBAT, SK_POLEARMS} #16 0x0000000000ade287 in create_wanderer () at ng-wanderer.cc:742 wn_rng = {current = {state_ = 16884988969946041564, inc_ = 10291729316502690315, count_ = 22}, previous = 0x0, previous_main = rng::GAMEPLAY} primary_role = STAT_INT secondary_role = util_skills = {SK_THROWING, SK_STEALTH, SK_SHIELDS, SK_EVOCATIONS} util_size = 4 primary_skill_levels = 5 secondary_skill_levels = 3 util_skill1 = util_skill2 = gift_skills = std::set with 1 element = {[0] = SK_SPELLCASTING} good_equipment = SK_SPELLCASTING selected_role = STAT_INT sk_1 = SK_TRANSMUTATIONS sk_2 = decent_1 = SK_TRANSMUTATIONS decent_2 = SK_SPELLCASTING #17 0x0000000000ada09e in give_items_skills (ng=...) at ng-setup.cc:236 No locals. #18 0x0000000000adca22 in _setup_generic (normal_dungeon_setup=true, ng=...) at ng-setup.cc:465 no_more = no_more = quiet = i = item = item = __for_range = __for_begin = __for_end = sb_ammo = fire_flags = f = __for_range = __for_begin = __for_end = #19 setup_game (ng=..., normal_dungeon_setup=normal_dungeon_setup@entry=true) at ng-setup.cc:396 No locals. #20 0x0000000000bf49c0 in startup_step () at startup.cc:1074 choice = {name = "MercyWheel", type = GAME_TYPE_NORMAL, filename = "MercyWheel.cs", seed = 0, pregenerate = false, map = "", arena_teams = "", allowed_combos = std::vector of length 1, capacity 1 = {"DrWn"}, allowed_species = std::vector of length 0, capacity 0, allowed_jobs = std::vector of length 0, capacity 0, allowed_weapons = std::vector of length 0, capacity 0, species = SP_BASE_DRACONIAN, job = JOB_WANDERER, weapon = WPN_UNKNOWN, fully_random = false} defaults = {name = "", type = GAME_TYPE_NORMAL, filename = "", seed = 0, pregenerate = false, map = "", arena_teams = "", allowed_combos = std::vector of length 0, capacity 0, allowed_species = std::vector of length 1, capacity 1 = {SP_PALENTONGA}, allowed_jobs = std::vector of length 1, capacity 1 = {JOB_VENOM_MAGE}, allowed_weapons = std::vector of length 0, capacity 0, species = SP_PALENTONGA, job = JOB_VENOM_MAGE, weapon = WPN_UNKNOWN, fully_random = false} newchar = false ng = {name = "MercyWheel", type = GAME_TYPE_NORMAL, filename = "", seed = 0, pregenerate = false, map = "", arena_teams = "", allowed_combos = std::vector of length 0, capacity 0, allowed_species = std::vector of length 0, capacity 0, allowed_jobs = std::vector of length 0, capacity 0, allowed_weapons = std::vector of length 0, capacity 0, species = SP_BASE_DRACONIAN, job = JOB_WANDERER, weapon = WPN_UNKNOWN, fully_random = false} #21 0x0000000000d0dd98 in _launch_game () at main.cc:413 game_start = ccon = #22 0x00000000006a0c4e in _launch_game_loop () at main.cc:385 game_ended = false game_ended = ge = fe = E = #23 main (argc=, argv=0x7ffdf8092ed8) at main.cc:337 echo = {prev_state = MB_MAYBE} [Inferior 1 (process 10274) detached] Compilation info: <<<<<<<<<<< Compiled with GCC 9.3.0 Build platform: x86_64-linux-gnu Platform: x86_64-linux-gnu CFLAGS: -O2 -pipe -DUSE_TILE -DUSE_TILE_WEB -Wall -Wformat-security -Wundef -Wextra -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-type-limits -Wno-uninitialized -Wno-array-bounds -Wno-format-zero-length -Wmissing-declarations -Wredundant-decls -Wno-parentheses -Wwrite-strings -Wshadow -pedantic -Wuninitialized -Iutil -I. -isystem /usr/include/lua5.1 -g -DWIZARD -DASSERTS -DCLUA_BINDINGS -DDGAMELAUNCH -DWEB_DIR_PATH="/web/" -D_GNU_SOURCE -isystem /usr/include/ncursesw LDFLAGS: -rdynamic -fuse-ld=gold -O2 >>>>>>>>>>> Place info: branch = 0, depth = 1 Level id: D:1 Level build method = ABSENT, level layout type = ABSENT, absdepth0 = 0 Markers: <<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>> Messages: <<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>> Version history: No version history (current version is 0.27-a0-200-g8ba0179) Game state: mouse_enabled: 0, waiting_for_command: 0, terminal_resized: 0 io_inited: 1, need_save: 0, saving_game: 0, updating_scores: 0: seen_hups: 1, map_stat_gen: 0, type: 9, arena_suspended: 0 prev_cmd = CMD_NO_CMD repeat_cmd = CMD_NO_CMD Player: {{{{{{{{{{{ Name: [MercyWheel] Species: Draconian Job: Wanderer HP: 0/0; mods: 0/0 MP: 0/0; mod: 0 Stats: 15 (15) 12 (12) 9 (9) Position: (0, 0) , god: No God (0), turn_is_over: 0, banished: 0 Skills (mode: auto) Name | can_currently_train | train | training | level | points | progress Fighting | | 0 | 0 | 0 | 0 | 0/42 Short Blades | | 0 | 0 | 0 | 0 | 0/50 Long Blades | | 0 | 0 | 0 | 0 | 0/50 Axes | | 0 | 0 | 0 | 0 | 0/50 Maces & Flails | | 0 | 0 | 0 | 0 | 0/50 Polearms | | 0 | 0 | 0 | 0 | 0/50 Staves | | 0 | 0 | 0 | 0 | 0/50 Slings | | 0 | 0 | 0 | 0 | 0/59 Bows | | 0 | 0 | 0 | 0 | 0/59 Crossbows | | 0 | 0 | 0 | 0 | 0/59 Throwing | | 0 | 0 | 0 | 0 | 0/59 Dodging | | 0 | 0 | 0 | 0 | 0/59 Stealth | | 0 | 0 | 1 | 0 | -50/100 Shields | | 0 | 0 | 1 | 0 | -50/100 Unarmed Combat | | 0 | 0 | 0 | 0 | 0/50 Spellcasting | | 0 | 0 | 6 | 0 | -1248/416 Conjurations | | 0 | 0 | 0 | 0 | 0/50 Hexes | | 0 | 0 | 0 | 0 | 0/59 Summonings | | 0 | 0 | 0 | 0 | 0/50 Necromancy | | 0 | 0 | 0 | 0 | 0/50 Translocations | | 0 | 0 | 1 | 0 | -50/100 Transmutations | | 0 | 0 | 1 | 0 | -50/100 Fire Magic | | 0 | 0 | 0 | 0 | 0/50 Ice Magic | | 0 | 0 | 0 | 0 | 0/50 Air Magic | | 0 | 0 | 0 | 0 | 0/50 Earth Magic | | 0 | 0 | 0 | 0 | 0/50 Poison Magic | | 0 | 0 | 0 | 0 | 0/50 Invocations | | 0 | 0 | 0 | 0 | 0/42 Evocations | | 0 | 0 | 0 | 0 | 0/50 Spell bugs: Durations: Attributes: #59: 1 Mutations: cold-blooded: 1 (innate) Inventory bugs: slot #0: item 'book of Minor Magic' has invalid link 27000 slot #0: item 'book of Minor Magic' has invalid pos (0, 0) slot #1: item 'book of Fixed Theme' has invalid link 27000 slot #1: item 'book of Fixed Theme' has invalid pos (0, 0) Equipment: }}}}}}}}}}} Webtiles message buffer: Webtiles JSON stack: Screenshot: @ clua stack: dlua stack: Lua persistent data: <<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>> Lua marker contents: <<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>