| Message |
I'm going to post the results of Valgrind being run with my MUD, just so I can get the most out of it. I don't understand some of it, either.
==22332== Use of uninitialised value of size 4
==22332== at 0x8B2FF7: _itoa_word (in /lib/tls/libc-2.3.4.so)
==22332== by 0x8B644A: _IO_vfprintf_internal (in /lib/tls/libc-2.3.4.so)
==22332== by 0x8BC59E: fprintf (in /lib/tls/libc-2.3.4.so)
==22332== by 0x80AAFD4: fold_area (build.c:6534)
==22332== by 0x80AB778: do_foldarea (build.c:6836)
==22332== by 0x80E687B: interpret (interp.c:577)
==22332== by 0x80BC229: game_loop (comm.c:687)
==22332== by 0x80BBACB: main (comm.c:316)
==22332==
==22332== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ----
==22332== Conditional jump or move depends on uninitialised value(s)
==22332== at 0x8B2FFF: _itoa_word (in /lib/tls/libc-2.3.4.so)
==22332== by 0x8B644A: _IO_vfprintf_internal (in /lib/tls/libc-2.3.4.so)
==22332== by 0x8BC59E: fprintf (in /lib/tls/libc-2.3.4.so)
==22332== by 0x80AAFD4: fold_area (build.c:6534)
==22332== by 0x80AB778: do_foldarea (build.c:6836)
==22332== by 0x80E687B: interpret (interp.c:577)
==22332== by 0x80BC229: game_loop (comm.c:687)
==22332== by 0x80BBACB: main (comm.c:316)
==22332==
==22332== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ----
==22332==
==22332== Conditional jump or move depends on uninitialised value(s)
==22332== at 0x8B6B78: _IO_vfprintf_internal (in /lib/tls/libc-2.3.4.so)
==22332== by 0x8BC59E: fprintf (in /lib/tls/libc-2.3.4.so)
==22332== by 0x80AAFD4: fold_area (build.c:6534)
==22332== by 0x80AB778: do_foldarea (build.c:6836)
==22332== by 0x80E687B: interpret (interp.c:577)
==22332== by 0x80BC229: game_loop (comm.c:687)
==22332== by 0x80BBACB: main (comm.c:316)
==22332==
==22332== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ----
==22332==
==22332== Conditional jump or move depends on uninitialised value(s)
==22332== at 0x8B4309: _IO_vfprintf_internal (in /lib/tls/libc-2.3.4.so)
==22332== by 0x8BC59E: fprintf (in /lib/tls/libc-2.3.4.so)
==22332== by 0x80AAFD4: fold_area (build.c:6534)
==22332== by 0x80AB778: do_foldarea (build.c:6836)
==22332== by 0x80E687B: interpret (interp.c:577)
==22332== by 0x80BC229: game_loop (comm.c:687)
==22332== by 0x80BBACB: main (comm.c:316)
==22332==
==22332== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ----
Above is a Uninitialized variable?
Here's the lines. (6534 is bold)
fprintf( fpout, "%d %d %d %d\n", xit->exit_info & ~EX_BASHED,
xit->key,
xit->vnum,
xit->keypad );
==22332==
==22332== Conditional jump or move depends on uninitialised value(s)
==22332== at 0x8B6B78: _IO_vfprintf_internal (in /lib/tls/libc-2.3.4.so)
==22332== by 0x8BC59E: fprintf (in /lib/tls/libc-2.3.4.so)
==22332== by 0x80AAFD4: fold_area (build.c:6534)
==22332== by 0x80AB4EF: do_savearea (build.c:6715)
==22332== by 0x80E687B: interpret (interp.c:577)
==22332== by 0x8083239: do_force (act_wiz.c:4689)
==22332== by 0x80E687B: interpret (interp.c:577)
==22332== by 0x80BC229: game_loop (comm.c:687)
==22332== by 0x80BBACB: main (comm.c:316)
==22332==
==22332== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y
starting debugger
==22332== starting debugger with cmd: /usr/bin/gdb -nw /proc/23410/fd/821 23410
GNU gdb Red Hat Linux (6.3.0.0-0.1rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
Attaching to program: /proc/23410/fd/821, process 23410
0x008b6b78 in ?? ()
(gdb) bt
#0 0x008b6b78 in ?? ()
#1 0x00000000 in ?? ()
The program is running. Quit anyway (and detach it)? (y or n) y
Detaching from program: /proc/23410/fd/821, process 23410
==22332==
==22332== Debugger has detached. Valgrind regains control. We continue.
==22332==
==22332== Conditional jump or move depends on uninitialised value(s)
==22332== at 0x8B4309: _IO_vfprintf_internal (in /lib/tls/libc-2.3.4.so)
==22332== by 0x8BC59E: fprintf (in /lib/tls/libc-2.3.4.so)
==22332== by 0x80AAFD4: fold_area (build.c:6534)
==22332== by 0x80AB4EF: do_savearea (build.c:6715)
==22332== by 0x80E687B: interpret (interp.c:577)
==22332== by 0x8083239: do_force (act_wiz.c:4689)
==22332== by 0x80E687B: interpret (interp.c:577)
==22332== by 0x80BC229: game_loop (comm.c:687)
==22332== by 0x80BBACB: main (comm.c:316)
==22332==
For the above, why did the gdb not have a stack or anything?
More shall be added. If anyone could explain these while I still valgrind, It'd help so much. The only valgrind tutorial I read over did not explain how to deal with results. (My old host wrote it up: http://www3.muddomain.com/articles/valgrind.php)
That's about it so far. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|