Welcome to the Builder Academy

Question Crash - need help

More
07 Mar 2018 15:54 #7662 by thomas
My bad. Should of course specify the core file...
Code:
gdb bin/circle lib/core -quiet -nx << EndOfInput bt quit EndOfInput

Please Log in or Create an account to join the conversation.

More
07 Mar 2018 16:03 - 07 Mar 2018 16:05 #7663 by JTP
crash still occurs with the same 1 line.


It seems to happend when i use aoe damage spell or aoe damage skill, then cast 'locate obj' = crash

Makes me think its the simple_list/random_from_list change you made a fix for ??
Last edit: 07 Mar 2018 16:05 by JTP.

Please Log in or Create an account to join the conversation.

More
07 Mar 2018 16:13 #7664 by JTP
And always crash on locate obj, not sanc or something else :(

I havent even made any changes lately so i dont get it

Please Log in or Create an account to join the conversation.

More
07 Mar 2018 16:20 #7665 by JTP
Strange i rolled back the 2 changes to iterator, killed some mobs and locate obj = crash

How can i figure this out with just a reference to the system file libc.so.6 that i cant even see

Please Log in or Create an account to join the conversation.

More
07 Mar 2018 16:40 #7666 by thomas
Ok, so the debugging won't work.

Time to roll a different approach - logging your way through this.
Add log statements to the beginning and end of the locate object function. If you hit the first, but not the second, bisect the code and add a new log statement in between.

You have a reproducible crash - this means that you can find the problem with this method. It will take some time, though.

Please Log in or Create an account to join the conversation.

More
07 Mar 2018 17:56 - 07 Mar 2018 18:02 #7667 by JTP
Ok that gave more info:
Code:
(gdb) #0 0x00329380 in strcpy () from /lib/libc.so.6 #1 0x0816a12c in isname_obj (search=0xbfb175ec "sword", list=0x0) at spells.c:239 #2 0x0816a241 in spell_locate_object (level=64, ch=0xa7d5e30, victim=0x0, obj=0xa7cb7f8) at spells.c:287 #3 0x081664da in call_magic (caster=0xa7d5e30, cvict=0x0, ovict=0xa7cb7f8, spellnum=31, level=64, casttype=0) at spell_parser.c:289 #4 0x08166b4d in cast_spell (ch=0xa7d5e30, tch=0x0, tobj=0xa7cb7f8, spellnum=31) at spell_parser.c:513 #5 0x08167b6c in do_cast (ch=0xa7d5e30, argument=0xbfb1e7a8 " ", cmd=475, subcmd=0) at spell_parser.c:668 #6 0x08107fed in command_interpreter (ch=0xa7d5e30, argument=0xbfb1e7a4 "cast ") at interpreter.c:671 #7 0x080b96d5 in game_loop (local_mother_desc=3) at comm.c:892 #8 0x080bab77 in init_game (argc=1886547811, argv=0xbfb1ed24) at comm.c:536 #9 main (argc=1886547811, argv=0xbfb1ed24) at comm.c:356
Last edit: 07 Mar 2018 18:02 by JTP.

Please Log in or Create an account to join the conversation.

Time to create page: 0.239 seconds