|
From: Eyal L. <ey...@ey...> - 2004-02-13 14:15:26
|
Nicholas Nethercote wrote: > > On Fri, 13 Feb 2004, Eyal Lebedinsky wrote: > > > How about this one. Run as "sh zz27.sh". > > Hmm, I don't get any errors. Here's the output, is it as expected? > > ==11397== Memcheck, a memory error detector for x86-linux. > ==11397== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward. > ==11397== Using valgrind-2.1.0, a program supervision framework for x86-linux. > ==11397== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward. > ==11397== For more details, rerun with: -v > ==11397== > /homes/njn25/zz.c(39) will pthread_attr_init > /homes/njn25/zz.c(42) pthread_attr_init=0 > total 308 > -rw-r--r-- 1 root daemon 61 Jan 22 2002 1-missing > -rw------- 1 njn25 user 285 Sep 11 2002 1kj59laa.php > -rw------- 1 njn25 njn25 0 Jul 20 2003 Acro7aiPWZ > -rw------- 1 njn25 njn25 0 Aug 7 2003 AcroDFUB4l > [snip] > srwx------ 1 njn25 njn25 0 Nov 19 20:09 sock.13078 > srwx------ 1 njn25 njn25 0 Jan 5 09:56 sock.18687 > drwx------ 2 njn25 njn25 4096 Jan 19 14:11 ssh-XXV29unG > > (i.e. no error message at end). Here is what I get: $ sh ~/zz27.sh --14705-- warning: line info addresses out of order at entry 736: 0xB800B8F9 0x70017159 --14705-- warning: line info addresses out of order at entry 740: 0xB800B90E 0x7001716E --14705-- warning: line info addresses out of order at entry 812: 0xB800BA56 0x7001749A --14705-- warning: line info addresses out of order at entry 816: 0xB800BA68 0x700174AC --14705-- warning: line info addresses out of order at entry 1148: 0xB800C241 0x7001846D --14705-- warning: line info addresses out of order at entry 1152: 0xB800C261 0x70018485 --14705-- warning: line info addresses out of order at entry 14476: 0xB8022D67 0x70045A96 --14705-- warning: line info addresses out of order at entry 14480: 0xB8022D7D 0x70045AA5 --14705-- warning: line info addresses out of order at entry 30043: 0xB8039C58 0x7007384C --14705-- warning: line info addresses out of order at entry 30050: 0xB8039C8B 0x7007387F ==14705== Conditional jump or move depends on uninitialised value(s) ==14705== at 0x3C0015E7: _dl_start (in /lib/ld-2.2.5.so) ==14705== by 0x3C0012D5: (within /lib/ld-2.2.5.so) ==14705== ==14705== Conditional jump or move depends on uninitialised value(s) ==14705== at 0x3C0015FC: _dl_start (in /lib/ld-2.2.5.so) ==14705== by 0x3C0012D5: (within /lib/ld-2.2.5.so) ==14705== ==14705== Conditional jump or move depends on uninitialised value(s) ==14705== at 0x3C001652: _dl_start (in /lib/ld-2.2.5.so) ==14705== by 0x3C0012D5: (within /lib/ld-2.2.5.so) ==14705== ==14705== Conditional jump or move depends on uninitialised value(s) ==14705== at 0x3C00820C: _dl_relocate_object (in /lib/ld-2.2.5.so) ==14705== by 0x3C002A88: dl_main (in /lib/ld-2.2.5.so) ==14705== by 0x3C00BCE8: _dl_sysdep_start (in /lib/ld-2.2.5.so) ==14705== by 0x3C001819: _dl_start_final (in /lib/ld-2.2.5.so) ==14705== by 0x3C00178A: _dl_start (in /lib/ld-2.2.5.so) ==14705== by 0x3C0012D5: (within /lib/ld-2.2.5.so) ==14705== ==14705== Conditional jump or move depends on uninitialised value(s) ==14705== at 0x3C00821A: _dl_relocate_object (in /lib/ld-2.2.5.so) ==14705== by 0x3C002A88: dl_main (in /lib/ld-2.2.5.so) ==14705== by 0x3C00BCE8: _dl_sysdep_start (in /lib/ld-2.2.5.so) ==14705== by 0x3C001819: _dl_start_final (in /lib/ld-2.2.5.so) ==14705== by 0x3C00178A: _dl_start (in /lib/ld-2.2.5.so) ==14705== by 0x3C0012D5: (within /lib/ld-2.2.5.so) /home/eyal/zz.c(39) will pthread_attr_init /home/eyal/zz.c(42) pthread_attr_init=0 ==14705== ==14705== Thread 2: ==14705== Syscall param execve(envp) contains uninitialised or unaddressable byte(s) ==14705== at 0x3C0F3F06: execve (in /lib/libc-2.2.5.so) ==14705== by 0x3C0F41F1: execvp (in /lib/libc-2.2.5.so) ==14705== by 0x8048604: func (/home/eyal/zz.c:23) ==14705== by 0x3C024D26: thread_wrapper (vg_libpthread.c:745) ==14705== by 0xB800F25F: (within /data2/usr/local/lib/valgrind/stage2) ==14705== Address 0x4FFFED2C is not stack'd, malloc'd or free'd ==14705== ==14705== Thread 2: ==14705== Syscall param execve(envp[i]) contains uninitialised or unaddressable byte(s) ==14705== at 0x3C0F3F06: execve (in /lib/libc-2.2.5.so) ==14705== by 0x3C0F41F1: execvp (in /lib/libc-2.2.5.so) ==14705== by 0x8048604: func (/home/eyal/zz.c:23) ==14705== by 0x3C024D26: thread_wrapper (vg_libpthread.c:745) ==14705== by 0xB800F25F: (within /data2/usr/local/lib/valgrind/stage2) ==14705== Address 0x4FFFEE1E is not stack'd, malloc'd or free'd total 10732 -rw------- 1 eyal eyal 99779 Dec 29 18:21 12182003163342.pdf -rw------- 1 eyal eyal 71388 Dec 29 18:15 12182003163427.pdf -rw------- 1 eyal eyal 63803 Dec 29 18:25 1218200317637.pdf Maybe a gcc thing? $ gcc --version 2.95.4 Or a kernel: $ uname -a Linux e7 2.4.25-rc1 #1 Fri Feb 6 09:41:53 EST 2004 i686 unknown I have here "i686-pc-linux-gnu-gcc (GCC) 3.3.2" too, tried it and I get the same error. I am attaching my executable 'zz'. I do not expect you to run someone elses executable, but maybe you can look at it. -- Eyal Lebedinsky (ey...@ey...) <http://samba.org/eyal/> |