[BUG] show shops CRASH

From: Mulder (mulder@CLOUD9.NET)
Date: 10/15/98


I'm running bpl12, just moved to Linux 2.0.30 and show shops crashes the
MUD.. any solution?

500hp 100mp 82mv > show shops
%%% Disconnected from server.

Core was generated by `bin/circle 4000'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.5...done.
Reading symbols from /lib/ld-linux.so.1...done.
#0  0x8096ef8 in list_all_shops (ch=0x8623658) at shop.c:1162
1162          sprintf(buf1, "%6d", mob_index[SHOP_KEEPER(shop_nr)].virtual);

(gdb) bt
#0  0x8096ef8 in list_all_shops (ch=0x8623658) at shop.c:1162
#1  0x80976b6 in show_shops (ch=0x8623658, arg=0xbfffcf9c "") at shop.c:1282
#2  0x806b380 in do_show (ch=0x8623658, argument=0xbfffd765 "shops",
cmd=291, subcmd=0) at act.wizard.c:2544
#3  0x8087802 in command_interpreter (ch=0x8623658, argument=0xbfffd760
"show shops") at interpreter.c:885
#4  0x804a2ea in game_loop (mother_desc=3) at comm.c:797
#5  0x80497a0 in init_game (port=4000) at comm.c:321
#6  0x8049724 in main (argc=2, argv=0xbffffbe8) at comm.c:292
#7  0x804937e in _start ()

(gdb) list
1157        sprintf(buf2, "%3d   %6d   %6d    ", shop_nr + 1,
SHOP_NUM(shop_nr),
1158                SHOP_ROOM(shop_nr, 0));
1159        if (SHOP_KEEPER(shop_nr) < 0)
1160          strcpy(buf1, "<NONE>");
1161        else
1162          sprintf(buf1, "%6d", mob_index[SHOP_KEEPER(shop_nr)].virtual);
1163        sprintf(END_OF(buf2), "%s   %3.2f   %3.2f    ", buf1,
1164                SHOP_SELLPROFIT(shop_nr), SHOP_BUYPROFIT(shop_nr));
1165        strcat(buf2, customer_string(shop_nr, FALSE));
1166        sprintf(END_OF(buf), "%s\n\r", buf2);


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST