[CODE] Debbuging Stock Bp21 with VALGRIND ?

From: Justin Adler (spam@WORLD-DOMINATION.COM.AU)
Date: 07/26/02


Hello All.

   Along my merry ways i've recently come across this memory managment
program, which i was hoping to use for memory leak hunting.

   It's called Valgrind ( http://developer.kde.org/~sewardj/ )

   When i ran it agaist stock circle bp21, i got lots of (repetative)
errors.

   Can someone comment of this software directly relating to using it with
circleMUD code please.

   Some sample errors from the program....

[pure@echobase circle30bpl21]$ valgrind ./bin/circle
==19695== valgrind-1.0pre6, a memory error detector for x86 GNU/Linux.
==19695== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==19695== Estimated CPU clock rate is 400 MHz
==19695== For more details, rerun with: -v
==19695==
Using file descriptor for logging.
Jul 26 20:26:33 :: CircleMUD, version 3.00 beta patchlevel 19
Jul 26 20:26:33 :: Using lib as data directory.
Jul 26 20:26:33 :: Running game on port 4000.
Jul 26 20:26:33 :: Finding player limit.
Jul 26 20:26:33 ::    Setting player limit to 300 using rlimit.
Jul 26 20:26:33 :: Opening mother connection.
Jul 26 20:26:33 :: Binding to all IP interfaces on this host.
Jul 26 20:26:33 :: Boot db -- BEGIN.
Jul 26 20:26:33 :: Resetting the game time:
Jul 26 20:26:33 :: SYSERR: Can't read from 'etc/time' time file.
Jul 26 20:26:33 ::    Current Gametime: 17H 19D 5M 352Y.
Jul 26 20:26:33 :: Reading news, credits, help, bground, info & motds.
==19695== Conditional jump or move depends on uninitialised value(s)
==19695==    at 0x807919F: file_to_string (db.c:2620)
==19695==    by 0x807909D: file_to_string_alloc (db.c:2582)
==19695==    by 0x80736C0: boot_db (db.c:392)
==19695==    by 0x806EBFF: init_game (comm.c:365)
....
<< SNIP >>
.....
Jul 26 20:26:34 :: Loading spell definitions.
Jul 26 20:26:34 :: Loading zone table.
Jul 26 20:26:34 ::    30 zones, 840 bytes.
==19695==
==19695== Conditional jump or move depends on uninitialised value(s)
==19695==    at 0x8097AAA: get_line (utils.c:539)
==19695==    by 0x80769D4: load_zones (db.c:1561)
==19695==    by 0x807438F: index_boot (db.c:795)
==19695==    by 0x80731BC: boot_world (db.c:251)
...
<<SNIP>>
...

and etc...

Thank in advance to any one out there with any comments.

-Jussy-

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT