Re: [squid-users] squid bug

From: Vladimir Ivaschenko <hazard@dont-contact.us>
Date: Wed, 12 Sep 2001 16:35:17 +0300

Robert Collins wrote about "Re: [squid-users] squid bug":

> On Wed, 2001-09-12 at 23:12, Vladimir Ivaschenko wrote:
> >
> > Ok, my backtrace:
>
>
> Please try this patch.

The patch had a syntatic error - please look below how I fixed it

> + if (!ftpState->ctrl.last_command)
> + ftpState->ctrl.last_command = "";
> + if (!ftpState->ctrl.last_reply);
> + ftpState->ctrl.last_reply = "":

I changed the two lines above to:
if (!ftpState->ctrl.last_reply)
  ftpState->ctrl.last_reply = "";

In any case, it still didn't help, but error now happens in a different
place:

Program received signal SIGSEGV, Segmentation fault.
0x400fff73 in __libc_free (mem=0x80baaa7) at malloc.c:3012
3012 malloc.c: No such file or directory.
(gdb)
(gdb) bt
#0 0x400fff73 in __libc_free (mem=0x80baaa7) at malloc.c:3012
#1 0x80aafcc in xxfree ()
#2 0x8069941 in ftpWriteCommand ()
#3 0x806bcd2 in ftpSendQuit ()
#4 0x806c377 in ftpSendReply ()
#5 0x806b5b8 in ftpSendStor ()
#6 0x806b4ee in ftpRestOrList ()
#7 0x806b086 in ftpPasvCallback ()
#8 0x805da08 in commConnectCallback ()
#9 0x805dd28 in commConnectHandle ()
#10 0x805f896 in comm_poll ()
#11 0x807be4d in main ()
#12 0x400be9cb in __libc_start_main (main=0x807bac4 <main>, argc=3,
    argv=0xbffffae4, init=0x8049ec0 <_init>, fini=0x80ae6ec <_fini>,
    rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffffadc)
    at ../sysdeps/generic/libc-start.c:92
(gdb) quit

-- 
Best Regards
Vladimir Ivaschenko
Certified Linux Engineer (RHCE)
Francoudi & Stephanou Ltd - http://www.francoudi.com
Received on Wed Sep 12 2001 - 13:28:33 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:09 MST