AwakeMUD icon indicating copy to clipboard operation
AwakeMUD copied to clipboard

Crashbug on completion of iedit for a wielded, affecting weapon

Open luciensadi opened this issue 4 years ago • 0 comments

I iedited the Dominator's description, and when I saved it crashed:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000420071 in affect_total (ch=0xdda5f0) at handler.cpp:705
705	  GET_MAX_MENTAL(ch) -= GET_MENTAL_LOSS(ch) * 100;
#0  0x0000000000420071 in affect_total (ch=0xdda5f0) at handler.cpp:705
#1  0x0000000000563b4b in objList::UpdateObjs (this=0x9dd360 <ObjList>, proto=0xddbcb0, rnum=895) at dblist.cpp:121
#2  0x00000000004d343a in iedit_parse (d=0xe91080, arg=0x65b03a "y") at iedit.cpp:1370
#3  0x00000000004d45bc in iedit_parse (d=0xe91080, arg=0x7fffffffd3b0 "q") at iedit.cpp:1552
#4  0x00000000005ef401 in nanny (d=0xe91080, arg=0x7fffffffd3b0 "q") at interpreter.cpp:2215
#5  0x00000000005ad6c9 in game_loop (mother_desc=3) at comm.cpp:743
#6  0x00000000005ab5cf in init_game (port=4000) at comm.cpp:378
#7  0x00000000005ab51e in main (argc=3, argv=0x7fffffffdee8) at comm.cpp:250

That line refers to ch->points.max_mental and ch->player_specials->mental_loss. Apparently, one of these pointers was invalid at the time of crash.

luciensadi avatar Jun 19 '20 17:06 luciensadi