Re: Extraction Crash

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 10/20/97


since it IS a valid pointer to a memory address, you just are attempting to
access it the wrong way.

try doing a
p *temp and send me (private mail)
the output you get.
you didn't do that. (it says its an obj_data ptr, but that's what its CAST as)
i'm thinking you may be attempting an extract_obj() on a mob or character or
something of the sort.

Akuma the Raging Coder


At 12:26 PM 10/20/97 -0600, you wrote:
>On Mon, 20 Oct 1997, Sean Butler wrote:
>
>> > Well, the best I can offer is that you do not test for
>> > the null condition of temp->next.  Thus you are probably
>> > seg faulting here. Try:
>> >  while (temp && temp->next && (temp->next != obj))
>> >
>> > Not sure this is it, but its a good idea to always check
>> > for the NULL condition anyway.
>
>I tried that as well. As soon as I try to access temp->next in ANY form,
>the crash hits with a seg fault. :(
>
>John Evans <evansj@hi-line.net>
>
>May the source be with you.
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>
>
  +------------------------------------------------------------+
  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |
  +------------------------------------------------------------+


     +------------------------------------------------------------+
     | 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/08/00 PST