Valgrind round 2

From: Reuben Farrelly <reuben-squid-dev@dont-contact.us>
Date: Sun, 10 Nov 2002 02:45:57 +1100

Three more messages from 3.0 valgrind+gdb

#!/bin/sh
export LD_LIBRARY_PATH=/usr/lib/debug
exec /usr/bin/valgrind --suppressions=/usr/src/valgrind-supressions
--error-limit=no -v --gdb-attach=yes /usr/sbin/squid-3.0 -NCd1

-----------------------

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

<squid kept going - did not launch gdb>

-------------------

2002/11/10 02:28:59| clientReplyContext::saveState: saving store context
2002/11/10 02:29:12| comm_write: fd_table[66].rwstate != NULL
2002/11/10 02:29:12| comm_write: fd_table[66].rwstate != NULL
2002/11/10 02:29:12| comm_write: fd_table[71].rwstate != NULL
2002/11/10 02:29:12| comm_write: fd_table[71].rwstate != NULL
2002/11/10 02:29:12| comm_write: fd_table[71].rwstate != NULL
2002/11/10 02:29:13| clientReplyContext::saveState: saving store context

----------------------

Had this three times now while FTP browsing but every time it just aborts
without giving me the option of gdb/bt

==1169==
==1169== Invalid read of size 4
==1169== at 0x806B7C7: delayMostBytesAllowed (delay_pools.cc:679)
==1169== by 0x8075611: ftpDataRead(int, char*, unsigned, comm_err_t,
int, void*) (ftp.cc:886)
==1169== by 0x8067D85: _comm_close(int, char*, int) (comm.cc:1355)
==1169== by 0x8073AEE: ftpStateFree(int, void*) (ftp.cc:305)
==1169== Address 0x1C is not stack'd, malloc'd or free'd
==1169==
==1169== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- Segmentation fault
-bash-2.05b$

-------------------------------------------------------------
Reuben Farrelly West Ryde, NSW 2114, Australia
Received on Sat Nov 09 2002 - 08:46:15 MST

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