Buffer..again :)

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 08/19/97


This is a bit long but you'll get the point:

500H 100M 82V > crash
500H 100M 82V > crash
500H 100M 82V > crash
500H 100M 82V > crash
Emergency reboot.. come back in a minute or two.
500H 100M 82V > Connection closed by foreign host.
[1]+  Exit 52                 bin/circle 2>foo
greerga@bacon:~/mud/wrk/circle30bpl11$

Wed Aug 20 00:41:36 :: Overflow Test!
Wed Aug 20 00:41:36 :: SYSERR: BUF: clear_buffer: Overflow in buffer from do_overflow:508.
Wed Aug 20 00:41:36 :: *** BUFFER LIST CLEARED AND REINITIALIZED! ***
Wed Aug 20 00:41:36 :: Test done!
Wed Aug 20 00:41:36 :: Using lib as data directory.
Wed Aug 20 00:41:36 :: Running game on port 4000.
[...etc...]
Wed Aug 20 00:41:50 :: Overflow Test!
Wed Aug 20 00:41:51 :: SYSERR: BUF: clear_buffer: Overflow in buffer from do_overflow:508.
Wed Aug 20 00:41:51 :: *** BUFFER LIST CLEARED AND REINITIALIZED! ***
Wed Aug 20 00:41:51 :: Test done!
Wed Aug 20 00:41:51 :: SYSERR: BUF: detach_buffer: No such buffer found at game_loop:632.
Wed Aug 20 00:41:53 :: Overflow Test!
Wed Aug 20 00:41:53 :: SYSERR: BUF: clear_buffer: Overflow in buffer from do_overflow:508.
Wed Aug 20 00:41:53 :: Test done!
Wed Aug 20 00:41:53 :: SYSERR: BUF: detach_buffer: No such buffer found at game_loop:632.
Wed Aug 20 00:41:53 :: BUF: Didn't find 12320 byte buffer! Making a new one.
Wed Aug 20 00:41:53 :: Closing all sockets.
Wed Aug 20 00:41:53 :: BUF: Didn't find 8192 byte buffer! Making a new one.
Wed Aug 20 00:41:53 :: Closing link to: Azalin.
Wed Aug 20 00:41:53 :: Rebooting.

Good idea. :)

There are now two options:
a) do a normal reboot (as per shutdown reboot command) immediately.
b) take up to MAX_OVERFLOW corruptions and then do (a).

You guys are good at ideas, I'm sure you can come up with some more. ;)

--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~greerga | is not thus handicapped. -- Elbert Hubbard


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