I am beginning to learn C from here. I was learning to use valgrind in Chapter-5, Exercise-4. The problem is explained in source-code window-17 on this page.
Upon Valgrind'ing the file (ex4.c), my output lacks from the Valgrind output shown on this page in the following ways;
???instead of_itoa_word (_itoa.c:195)Location of line numbers in C library files are not identified. Instead, the path to the shared library file (.so) is given.
An example giving a comparison of the two outputs is shown below.
WHAT I EXPECT
==3082== Use of uninitialised value of size 8
==3082== at 0x4E730EB: _itoa_word (_itoa.c:195)
==3082== by 0x4E743D8: vfprintf (vfprintf.c:1613)
==3082== by 0x4E7E6F9: printf (printf.c:35)
==3082== by 0x40052B: main (ex4.c:11)
WHAT I GET
==14647== at 0x407D256: ??? (in /lib/tls/i686/cmov/libc-2.11.1.so)
==14647== by 0x4080B89: vfprintf (in /lib/tls/i686/cmov/libc-2.11.1.so)
==14647== by 0x40882BF: printf (in /lib/tls/i686/cmov/libc-2.11.1.so)
==14647== by 0x8048401: main (ex4.c:9)
Please tell me how can I correct my valgrind output. I am using Ubuntu-10.10, 32 bit version. I installed Valgrind-3.8.1 using source. My gcc version is 4.3.3 and glibc version 2.11.1