23 Jul, 2014, Liko wrote in the 1st comment:
Votes: 0
Hello,
I have downloaded the latest version of TbaMUD.

It seems when adding a new help file with hedit it crashes.

Here is the gdb output:
82        OLC_NUM(d) = 0;
83 OLC_STORAGE(d) = strdup(arg);
84
85 OLC_ZNUM(d) = search_help(OLC_STORAGE(d), LVL_IMPL);
86
87 if (help_table[OLC_ZNUM(d)].duplicate) {
88 for (i = 0; i < top_of_helpt; i++)
89 if (help_table[i].duplicate == 0 && help_table[i].entry == help_table[OLC_ZNUM(d)].entry) {
90 OLC_ZNUM(d) = i;
91 break;


On the crash it points to line 87.

Now if I comment out line 87-95(can't see lines 92-95, they just are the exiting bit for the block of code). The hedit works fine. Even makes new files.
23 Jul, 2014, Omega wrote in the 2nd comment:
Votes: 0
What does the backtrace show?
23 Jul, 2014, Liko wrote in the 3rd comment:
Votes: 0
Here is the first message that shows when it crashes:

0x080d8af9 in do_oasis_hedit (ch=0x83a4078, argument=0xbffff1cd " liko",
cmd=512, subcmd=0) at hedit.c:87
87 if (help_table[OLC_ZNUM(d)].duplicate) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12.2-1.i686 nss-soft okn-freebl-3.12.9-5.fc13.i686

Here is BT:

(gdb) bt
#0 0x080d8af9 in do_oasis_hedit (ch=0x83a4078, argument=0xbffff1cd " liko",
cmd=512, subcmd=0) at hedit.c:87
#1 0x080ea84a in command_interpreter (ch=0x83a4078,
argument=0xbffff1c8 "hedit liko") at interpreter.c:584
#2 0x0809d34b in game_loop (local_mother_desc=7) at comm.c:889
#3 0x0809dd08 in init_game (argc=2, argv=0xbffff764) at comm.c:533
#4 main (argc=2, argv=0xbffff764) at comm.c:353
28 Jul, 2014, Liko wrote in the 4th comment:
Votes: 0
Has anyone else taken a look into this?
0.0/4