Fwd: Valgrind and squid-3.0 in gdb

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 9 Nov 2002 12:08:58 +0100

---------- Forwarded Message ----------

Subject: Valgrind and squid-3.0 in gdb
Date: Sat, 09 Nov 2002 20:43:47 +1100
From: Reuben Farrelly <reuben-squid-dev@reub.net>
To: Henrik Nordstrom <hno@squid-cache.org>

Hi again Henrik,

If you are at keyboard now, I have a valgrind spawned gdb sitting in
 a window:

==19169==
==19169== Syscall param write(buf) contains uninitialised or
 unaddressable byte(s)
==19169== at 0x420CACE4: (within /lib/i686/libc-2.3.1.so)
==19169== by 0x8066403: comm_write_try(int, void*) (comm.cc:661)
==19169== by 0x8069892: comm_select (comm_poll.cc:474)
==19169== by 0x808A211: main (main.cc:724)
==19169== Address 0x4817187E is 726 bytes inside a block of size
 87380 alloc'd
==19169== at 0x4003CDDA: malloc (vg_clientfuncs.c:100)
==19169== by 0x80BFF8E: xmalloc (util.c:463)
==19169== by 0x8096DC4: sslStart (ssl.cc:491)
==19169== by 0x8065192: clientProcessRequest(_clientHttpRequest*)
(client_side_request.cc:577)
==19169==

It let me launch gdb to run this:

Loaded symbols for /lib/libnss_dns.so.2
vg_do_syscall3 (syscallno=4294966784, arg1=19177, arg2=0, arg3=0)
     at vg_mylibc.c:92
92 }
(gdb) bt
#0 vg_do_syscall3 (syscallno=4294966784, arg1=19177, arg2=0, arg3=0)
     at vg_mylibc.c:92
#1 0x00004ae9 in ?? ()
#2 0x420cace4 in write () from /lib/i686/libc.so.6
#3 0x08066403 in comm_write_try (fd=1096779496, data=0x0) at
 comm.cc:660 #4 0x08069892 in comm_select (msec=10) at
 comm_poll.cc:471
#5 0x0808a211 in main (argc=2, argv=0x141) at main.cc:724
#6 0x42015a54 in __libc_start_main () from /lib/i686/libc.so.6
Current language: auto; currently c

If I don't hear from you or see you on irc in the next few mins I'll
 just quit out. I am almost ready to send a large mail to squid-dev
 about valgrind errors so I can include it in there...

reuben

-------------------------------------------------------------
Reuben Farrelly West Ryde, NSW 2114, Australia

-------------------------------------------------------
Received on Sat Nov 09 2002 - 04:08:49 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:18:39 MST