Re: [CODE] Debbuging Stock Bp21 with VALGRIND ?

From: Daniel A. Koepke (dkoepke@circlemud.org)
Date: 07/26/02


On Fri, 26 Jul 2002, Justin Adler wrote:

> ==19695== Conditional jump or move depends on uninitialised value(s)
> ==19695==    at 0x807919F: file_to_string (db.c:2620)

...a value initialized by strlen().

> ==19695==    at 0x8097AAA: get_line (utils.c:539)

...a value initialized by strlen().

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

If I had to guess, I'd say your strlen() implemention is written in
inline assembly and being inlined by the compiler.  The debugger isn't
smart enough to notice the side-effects of the inline assembly, so it
doesn't see the initialization.

Note, however, that, that's just a (wild) guess.  I haven't looked at the
program just yet.


-dak

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