ok, I am geting a memory fault and me nor my coders are able to track down the bad code... if someone could help me out I REALY need it =:) thank you.... ----gdb snip---- Program received signal SIGSEGV, Segmentation fault. 0x5caf8 in str_dup (source=0x0) at utils.c:73 73 CREATE(new, char, strlen(source) + 1); (gdb) bt #0 0x5caf8 in str_dup (source=0x0) at utils.c:73 #1 0x63572 in oedit_parse (d=0x365800, arg=0xefbfd7d8 "2") at #oedit.c:1257 2 0x4294f in nanny (d=0x365800, arg=0xefbfd7d8 "2") at #interpreter.c:1392 3 0x22ee in game_loop (mother_desc=6) at #comm.c:602 4 0x18ce in init_game (port=4000) at comm.c:246 5 0x17d0 #in main (argc=3, argv=0xefbfdbd8) at comm.c:216 (gdb) ----end gdb---- --utils.c str_dup code-- /* Create a duplicate of a string */ char *str_dup(const char *source) { char *new; CREATE(new, char, strlen(source) + 1); return (strcpy(new, source)); } ---end snip--- ---snip for call in oedit.c--- case 2: OLC_MODE(d) = OEDIT_EXTRADESC_DESCRIPTION; SEND_TO_Q("Enter the extra description: (/s saves /h forhelp)\r\n\r\n", d); d->backstr = NULL; if (OLC_OBJ(d)->description) { SEND_TO_Q(OLC_OBJ(d)->description, d); d->backstr = str_dup(OLC_DESC(d)->description); } d->str = &OLC_DESC(d)->description; d->max_str = MAX_MESSAGE_LENGTH; d->mail_to = 0; OLC_VAL(d) = 1; return; ----snip---- can anyone help? this has put building to a major hold... and its just driveing us CRAZY!!!!! thanks.... Realms of Reality.... http://greatbasin.net/~cyber/index.html telnet://login.greatbasin.net PORT: 4000 Mailto: Reaper@cyber.reno.nv.us ***HD crashed... lost old SIG... will have to deal with it till L8R =:) \\// || +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST