ASSERT(weight > 0) in 'randbook.cc' at line 1086 failed. Version: Dungeon Crawl Stone Soup: Circus Animals 1.7-37-g2c94cca Platform: unix Bits: 64 Game mode: normal Tiles: online Command line: /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss -name AlphaGone -rc /opt/dgl-chroot/var/gamedata/dcss-trunk/rc-files/AlphaGone.rc -macro /opt/dgl-chroot/var/gamedata/dcss-trunk/rc-files/AlphaGone.macro -morgue /opt/dgl-chroot/var/gamedata/dcss/morgue/AlphaGone/ -dir /opt/dgl-chroot/var/gamedata/dcss-dcssa/save/ -webtiles-socket /opt/dgl-chroot/tmp/dcss-sockets/AlphaGone:2016-08-26.22:24:02.sock -await-connection RC options: restart_after_game = false Crash caused by signal #6: Aborted Obtained 30 stack frames. /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z17write_stack_traceP8_IO_FILEi+0x38) [0x6674c8]: write_stack_trace(_IO_FILE*, int) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z13do_crash_dumpv+0x357) [0x66f807]: do_crash_dump() /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z20crash_signal_handleri+0x9c) [0x6677ec]: crash_signal_handler(int) /lib/x86_64-linux-gnu/libc.so.6(+0x354a0) [0x7fdc815504a0]: /lib/x86_64-linux-gnu/libpthread.so.0(raise+0x29) [0x7fdc818f52a9]: /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss() [0x66efa9] /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss() [0x66f22b] /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z23acquire_themed_randbookR8item_defi+0x7ce) [0xa1c27e]: acquire_themed_randbook(item_def&, int) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z23acquirement_create_item17object_class_typeibRK9coord_defb+0x1ad2) [0x5f08c2]: acquirement_create_item(object_class_type, int, bool, coord_def const&, bool) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z11acquirement17object_class_typeibPib+0x2b9) [0x5f12f9]: acquirement(object_class_type, int, bool, int*, bool) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z11do_god_giftb+0xc1b) [0xa2feeb]: do_god_gift(bool) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z10gain_pietyiib+0x3dd) [0xa3508d]: gain_piety(int, int, bool) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z15did_god_conduct12conduct_typeibPK7monster+0x1c0) [0x76bb90]: did_god_conduct(conduct_type, int, bool, monster const*) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss() [0x91fb8d] /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z11monster_dieP7monster11killer_typeibbb+0x11d7) [0x929357]: monster_die(monster*, killer_type, int, bool, bool, bool) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_ZN4bolt14affect_monsterEP7monster+0x1188) [0x6286d8]: bolt::affect_monster(monster*) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_ZN4bolt11affect_cellEv+0xff) [0x628ecf]: bolt::affect_cell() /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_ZN4bolt7do_fireEv+0x1fc) [0x62ca0c]: bolt::do_fire() /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_ZN4bolt4fireEv+0x11e0) [0x62e460]: bolt::fire() /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z7zapping8zap_typeiR4boltbPKcb+0xe7) [0x62e947]: zapping(zap_type, int, bolt&, bool, char const*, bool) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss() [0xa67a75] /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z11your_spells10spell_typeibbb+0xb34) [0xa6d564]: your_spells(spell_type, int, bool, bool, bool) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z12cast_a_spellb10spell_type+0x561) [0xa708a1]: cast_a_spell(bool, spell_type) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z17do_cast_spell_cmdb+0x12) [0xa70ca2]: do_cast_spell_cmd(bool) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_Z15process_command12command_type+0x77a) [0xbbc4fa]: process_command(command_type) /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss() [0xbbf107] /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss() [0xbbfc35] /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(main+0x304) [0x5d5744]: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fdc8153b830]: /opt/dgl-chroot/usr/lib/dcss-dcssa/bin/dcss(_start+0x29) [0x5d5be9]: Trying to run gdb. GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1 Copyright (C) 2016 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". 0x00007fdc818f4f6a in __waitpid (pid=24204, stat_loc=stat_loc@entry=0x0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29 #0 0x00007fdc818f4f6a in __waitpid (pid=24204, stat_loc=stat_loc@entry=0x0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29 resultvar = 18446744073709551104 #1 0x0000000000667beb in call_gdb (file=0x7fdc818df540 <_IO_2_1_stderr_>, file@entry=0x7fdc825ca1c0 <_nc_prescreen>) at crash.cc:420 gdb = attach_cmd = "attach 24087\000\000\000\000\000\000\000" #2 0x000000000066f823 in do_crash_dump () at dbg-asrt.cc:714 t = 140729584450368 dir = "/opt/dgl-chroot/var/gamedata/dcss/morgue/AlphaGone/" name = "/opt/dgl-chroot/var/gamedata/dcss/morgue/AlphaGone/crash-AlphaGone-20160826-222535.txt", '\000' file = 0x7fdc825ca1c0 <_nc_prescreen> #3 0x00000000006677ec in crash_signal_handler (sig_num=6) at crash.cc:193 No locals. #4 No locals. #5 0x00007fdc818f52a9 in raise (sig=6) at ../sysdeps/unix/sysv/linux/pt-raise.c:35 resultvar = 0 pid = #6 0x000000000066efa9 in _BreakStrToDebugger (mesg=mesg@entry=0x7ffe28e40640 "ASSERT(weight > 0) in 'randbook.cc' at line 1086 failed.", assert=assert@entry=true) at dbg-asrt.cc:838 No locals. #7 0x000000000066f22b in AssertFailed (expr=expr@entry=0xbf0294 "weight > 0", file=file@entry=0xbf014c "randbook.cc", line=line@entry=1086, text=text@entry=0x0) at dbg-asrt.cc:876 mesg = "ASSERT(weight > 0) in 'randbook.cc' at line 1086 failed.\000\000\000\000\000\000\000\000\033", '\000' , "\300\006\344(\376\177", '\000' , "\340\006\344(\376\177\000\000\a\000\000\000\000\000\000\000@hands@\000\000\000\000\000\000\000\000\000\060\261]\002\000\000\000\000\033\000\000\000\000\000\000\000\033\000\000\000\000\000\000\000"... args = fileName = #8 0x0000000000a1c27e in _randbook_spell_weight (agent=9, spell=) at randbook.cc:1086 skill_weight = weight = seen_weight = 1 Spc = difficult_weight = 0 total_skill = num_skills = 1 #9 _get_weighted_randbook_spells (agent=9, possible_spells=std::map with 1 elements = {...}) at randbook.cc:1115 spell = SPELL_MAGIC_DART i = 3 #10 acquire_themed_randbook (book=..., agent=agent@entry=9) at randbook.cc:1201 possible_spells = std::map with 1 elements = {[SPELL_CAUSE_FEAR] = 1} discipline_1 = SPTYP_NONE discipline_2 = SPTYP_NONE spells = std::vector of length 0, capacity 0 owner = #11 0x00000000005f08c2 in _do_book_acquirement (agent=9, book=...) at acquire.cc:1043 choice = #12 acquirement_create_item (class_wanted=class_wanted@entry=OBJ_BOOKS, agent=agent@entry=9, quiet=quiet@entry=true, pos=..., debug=debug@entry=false) at acquire.cc:1396 want_arts = rejection_reason = "" oldflags = type_wanted = acq_item = item_tries = divine = thing_created = 143 quant = 1 #13 0x00000000005f12f9 in acquirement (class_wanted=class_wanted@entry=OBJ_BOOKS, agent=agent@entry=9, quiet=quiet@entry=true, item_index=0x7ffe28e4139c, item_index@entry=0x0, debug=debug@entry=false) at acquire.cc:1614 bad_class = {data = std::bitset} acq_classes = {{type = OBJ_WEAPONS, name = 0xbca095 "Weapon"}, {type = OBJ_ARMOUR, name = 0xbca0b8 "Armour"}, {type = OBJ_JEWELLERY, name = 0xbca0bf "Jewellery"}, {type = OBJ_BOOKS, name = 0xbca0c9 "Book"}, {type = OBJ_STAVES, name = 0xbca0ce "Staff "}, {type = OBJ_WANDS, name = 0xbca0d5 "Wand"}, {type = OBJ_MISCELLANY, name = 0xbca0da "Misc. Evocable"}, {type = OBJ_GOLD, name = 0xbca0e9 "Gold"}} thing_created = 27000 #14 0x0000000000a2feeb in do_god_gift (forced=forced@entry=false) at religion.cc:1895 gift = NUM_BOOKS gifts = gdact = {god = GOD_SIF_MUNA} success = false #15 0x0000000000a3508d in _gain_piety_point () at religion.cc:2257 No locals. #16 gain_piety (original_gain=, denominator=denominator@entry=60, should_scale_piety=should_scale_piety@entry=true) at religion.cc:2420 pgn = #17 0x0000000000769a4e in _handle_piety_penance (piety_change=, piety_denom=piety_denom@entry=60, penance=penance@entry=0, thing_done=DID_KILL_LIVING) at godconduct.cc:96 No locals. #18 0x000000000076bb90 in like_response::operator() (victim=0x14c79c8 , level=, thing_done=DID_KILL_LIVING, this=0x198b818) at godconduct.cc:613 denom = 60 gain = 14 #19 _handle_your_gods_response (victim=0x14c79c8 , known=true, level=, thing_done=DID_KILL_LIVING) at godconduct.cc:1045 like = 0x198b818 #20 did_god_conduct (thing_done=DID_KILL_LIVING, level=, known=, victim=0x14c79c8 ) at godconduct.cc:1072 No locals. #21 0x000000000091fb8d in _fire_kill_conducts (mons=..., killer=killer@entry=KILL_YOU_MISSILE, killer_index=killer_index@entry=27001, maybe_good_kill=maybe_good_kill@entry=true) at mon-death.cc:1758 your_kill = pet_kill = blameworthy = holiness = #22 0x0000000000929357 in monster_die (mons=mons@entry=0x14c79c8 , killer=, killer_index=, killer_index@entry=27001, silent=, silent@entry=false, wizard=wizard@entry=false, fake=fake@entry=false) at mon-death.cc:2268 was_visible = true was_hostile_and_seen = true mp_freeze = 0 mons_mid = 67404 duration = -1 summoned = monster_killed = timeout = false gives_player_xp = true drop_items = submerged = false in_transit = false was_banished = false mons_reset = summ_ench = {ench = ENCH_NONE, degree = 0, duration = 0, maxduration = 0, who = KC_OTHER, source = 0} summon_spell = undead_minion = false leaves_corpse = true dead_monster_hd = 21 pet_kill = false did_death_message = death_message = true anon = false targ_holy = {<_enum_bitfield_exponent_base<7, true>> = {static last_exponent = }, flags = 2} corpse = player_xp = mwhere = {x = 686039136, y = 32766} #23 0x00000000006286d8 in bolt::affect_monster (this=this@entry=0x7ffe28e43240, mon=mon@entry=0x14c79c8 ) at beam.cc:5174 ref_killer = kindex = 27001 engulfs = messages = std::vector of length 0, capacity 0 preac = 120 postac = 112 final = 112 conducts = {{conduct = NUM_CONDUCTS, pgain = 0, known = true, enabled = true, victim = std::unique_ptr containing 0x0}, {conduct = NUM_CONDUCTS, pgain = 0, known = true, enabled = true, victim = std::unique_ptr containing 0x0}, {conduct = NUM_CONDUCTS, pgain = 0, known = true, enabled = true, victim = std::unique_ptr containing 0x0}} beam_hit = r = {bits = std::vector of length 0, capacity 0, children = std::map with 0 elements} rand_ev = defl = from_player = to_player = false roll = #24 0x0000000000628ecf in bolt::affect_cell (this=this@entry=0x7ffe28e43240) at beam.cc:1117 ignored = false m = 0x14c79c8 hit_player = #25 0x000000000062ca0c in bolt::do_fire (this=this@entry=0x7ffe28e43240) at beam.cc:1317 feat = DNGN_FLOOR was_seen = coff = {cstate = false, smartcstate = false} #26 0x000000000062e460 in bolt::fire (this=this@entry=0x7ffe28e43240) at beam.cc:1172 No locals. #27 0x000000000062e947 in zapping (ztype=ztype@entry=ZAP_STONE_ARROW, power=208, pbolt=..., needs_tracer=needs_tracer@entry=true, msg=msg@entry=0x0, fail=fail@entry=false) at beam.cc:265 No locals. #28 0x0000000000a67a75 in _do_cast (spell=spell@entry=SPELL_STONE_ARROW, powc=powc@entry=208, spd=..., beam=..., god=god@entry=GOD_NO_GOD, fail=, potion=-1) at spl-cast.cc:1787 ret = zap = ZAP_STONE_ARROW target = {x = 82, y = 0} #29 0x0000000000a6d564 in your_spells (spell=spell@entry=SPELL_STONE_ARROW, powc=, powc@entry=0, allow_fail=allow_fail@entry=true, evoked=evoked@entry=false, fake_spell=fake_spell@entry=false) at spl-cast.cc:1588 wiz_cast = spd = {isValid = true, isTarget = true, isEndpoint = false, isCancel = false, choseRay = true, target = {x = 53, y = 45}, delta = {x = 0, y = 0}, ray = {r = {start = {x = 52.5, y = 45.5}, dir = {x = 1, y = 0}}, on_corner = false, cycle_idx = 0}} beam = {origin_spell = SPELL_STONE_ARROW, range = 4, glyph = 96, colour = 7 '\a', flavour = BEAM_MMISSILE, real_flavour = BEAM_MMISSILE, drop_item = false, item = 0x0, source = {x = 52, y = 45}, target = {x = 53, y = 45}, damage = {num = 3, size = 31}, ench_power = 50, hit = 28, thrower = KILL_YOU_MISSILE, ex_size = 0, source_id = 4294967295, source_name = "", name = "stone arrow", short_name = "", hit_verb = "hits", loudness = 3, hit_noise_msg = "", explode_noise_msg = "", pierce = false, is_explosion = false, aimed_at_spot = false, aux_source = "", affects_nothing = false, effect_known = true, effect_wanton = false, draw_delay = 15, explode_delay = 50, special_explosion = 0x0, was_missile = false, evoked = false, animate = true, ac_rule = AC_NORMAL, obvious_effect = true, seen = true, heard = true, path_taken = std::vector of length 1, capacity 1 = {{x = 53, y = 45}}, extra_range_used = 0, is_tracer = false, is_targeting = false, aimed_at_feet = false, msg_generated = false, noise_generated = true, passed_target = true, in_explosion_phase = false, attitude = ATT_FRIENDLY, foe_ratio = 100, hit_count = std::map with 1 elements = {[67404] = 1}, foe_info = {count = 1, power = 14, hurt = 1, helped = 0, dont_stop = false}, friend_info = {count = 0, power = 0, hurt = 0, helped = 0, dont_stop = false}, chose_ray = true, beam_cancelled = false, dont_stop_player = false, dont_stop_trees = false, bounces = 0, bounce_pos = {x = 0, y = 0}, reflections = 0, reflector = 0, use_target_as_pos = false, auto_hit = false, ray = {r = {start = {x = 53.5, y = 45.5}, dir = {x = 1, y = 0}}, on_corner = false, cycle_idx = 0}, tile_beam = -1, can_see_invis = false, nightvision = false, message_cache = std::set with 0 elements} flags = 524289 potion = -1 god = GOD_NO_GOD fail = 0 antimagic = false old_target = true cast_result = #30 0x0000000000a708a1 in cast_a_spell (check_range=, spell=SPELL_STONE_ARROW, spell@entry=SPELL_NO_SPELL) at spl-cast.cc:909 cost = 2 freeze_cost = full_cost = 2 cast_result = #31 0x0000000000a70ca2 in do_cast_spell_cmd (force=force@entry=true) at spl-cast.cc:688 No locals. #32 0x0000000000bbc4fa in process_command (cmd=cmd@entry=CMD_FORCE_CAST_SPELL) at main.cc:2406 player_moved = #33 0x0000000000bbf107 in _input () at main.cc:1528 cmd = CMD_FORCE_CAST_SPELL player_disabled = {was_disabled = false} #34 0x0000000000bbfc35 in _launch_game () at main.cc:505 game_start = false #35 0x00000000005d5744 in _launch_game_loop () at main.cc:382 game_ended = false #36 main (argc=14, argv=0x7ffe28e45928) at main.cc:338 No locals.