Timediff Problem

From: StormeRider (silk@ICI.NET)
Date: 12/31/97


Not sure if I posted on this before, think so, but dont have it in my inbox
here at work. Anyways, tracking my stat rolling bugs I seem to find that it
moves past the rolling problem and actually exits the CON_RROLL state and
crashes before it moves to CON_QROLLSTATS. And yes I do have a STATE(d) =
CON_QROLLSTATS, and the first line in the nanny case CON_QROLLSTATS is
log("Entering CON_QROLLSTATS.");

GDB output seems to be a wee bit wierd...

GDB 4.16 (i586-unknown-linux), Copyright 1996 Free Software Foundation, Inc...
Core was generated by `bin/circle -q 4005'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.5.4.33...done.
Reading symbols from /lib/ld-linux.so.1...done.
#0  0x804a75b in timediff (a={tv_sec = -1073744400, tv_usec = 7}, b={
      tv_sec = 46693, tv_usec = 46693}) at comm.c:910
910           return null_time;
(gdb) info locals
b = {tv_sec = 46693, tv_usec = 0}
rslt = {tv_sec = 0, tv_usec = 0}
(gdb) where
#0  0x804a75b in timediff (a={tv_sec = -1073744400, tv_usec = 7}, b={
      tv_sec = 46693, tv_usec = 46693}) at comm.c:910
#1  0x804a0f0 in game_loop (mother_desc=0) at comm.c:689
(gdb) list
905
906       if (a.tv_sec < b.tv_sec)
907         return null_time;
908       else if (a.tv_sec == b.tv_sec) {
909         if (a.tv_usec < b.tv_usec)
910           return null_time;
911         else {
912           rslt.tv_sec = 0;
913           rslt.tv_usec = a.tv_usec - b.tv_usec;
914           return rslt;
(gdb)

Anyone seen this?


StormeRider                  --- http://www.windsofstorm.net/wos/
silk@ici.net                 --- telnet://cmoo.com:4004


     +------------------------------------------------------------+
     | 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