Re: [SQU] Looks like a newbie problem:

From: Robert Collins <robert.collins@dont-contact.us>
Date: Fri, 16 Feb 2001 10:38:59 +1100

So when you ran it under gdb it showed you the page correctly?

Please try it with SSL and the -D parameter, running it under gdb again.

Thanks,
Rob

----- Original Message -----
From: "Henk-Jan Kloosterman" <proxy@mail.kloosterman.org>
To: "Henrik Nordstrom" <hno@hem.passagen.se>; "Robert Collins" <robert.collins@itdomain.com.au>
Cc: <squid-dev@squid-cache.org>
Sent: Friday, February 16, 2001 10:28 AM
Subject: Re: [SQU] Looks like a newbie problem:

>
> This is what I got: could not get it to work (so not even crash) So i
> pressed <ctrl> Z (Perhaps this info is not relvant)
>
>
>
> > The easiest approach for getting a stacktrace if you cannot find the
> > core file is to start Squid from inside the debugger.
> >
> > gdb squid
> > run -NC
> > [now make it crash. gdb will return]
> > backtrace
> >
>
> Red Hat Linux release 7.0 (Guinness)
> Kernel 2.2.16-22 on an i686
> login: root
> Password:
> Last login: Fri Feb 16 00:01:23 from 150.50.242.2
> [root@mis2 /root]# cd /var/spool/squid
> [root@mis2 squid]# gdb squid
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "i386-redhat-linux"...
> (gdb) run -NC
> Starting program: /usr/sbin/squid -NC
> [New Thread 1024 (LWP 1263)]
>
> Program received signal SIGTSTP, Stopped (user).
> [Switching to Thread 1024 (LWP 1263)]
> 0x4018ab97 in __poll (fds=0xbfffe330, nfds=1, timeout=5000)
> at ../sysdeps/unix/sysv/linux/poll.c:63
> 63 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
> (gdb) backtrace
> #0 0x4018ab97 in __poll (fds=0xbfffe330, nfds=1, timeout=5000)
> at ../sysdeps/unix/sysv/linux/poll.c:63
> #1 0x400913e6 in send_dg (statp=0x401da1e0, buf=0xbfffe440 "\"?\001",
> buflen=30, ans=0xbffff5b0 "ìN\035@ìü\"@", anssiz=1024,
> terrno=0xbfffe3f0,
> ns=0, v_circuit=0xbfffe3e8, gotsomewhere=0xbfffe3ec) at res_send.c:945
> #2 0x40090919 in __res_nsend (statp=0x401da1e0, buf=0xbfffe440 "\"?\001",
> buflen=30, ans=0xbffff5b0 "ìN\035@ìü\"@", anssiz=1024) at res_send.c:569
> #3 0x4008fbc7 in __res_nquery (statp=0x401da1e0,
> name=0x8216d08 "netscape.com", class=1, type=1,
> answer=0xbffff5b0 "ìN\035@ìü\"@", anslen=1024) at res_query.c:132
> #4 0x40090153 in __res_nquerydomain (statp=0x401da1e0,
> name=0x8216d08 "netscape.com", domain=0x0, class=1, type=1,
> answer=0xbffff5b0 "ìN\035@ìü\"@", anslen=1024) at res_query.c:363
> #5 0x4008fdf1 in __res_nsearch (statp=0x401da1e0,
> name=0x8216d08 "netscape.com", class=1, type=1,
> answer=0xbffff5b0 "ìN\035@ìü\"@", anslen=1024) at res_query.c:212
> #6 0x4022d047 in _nss_dns_gethostbyname2_r (name=0x8216d08 "netscape.com",
> af=2, result=0x401d8ae0, buffer=0x8216e70 "Ø\210«Ê", buflen=1024,
> errnop=0x401d6a80, h_errnop=0xbffffb48) at nss_dns/dns-host.c:169
> #7 0x4022e335 in _nss_dns_gethostbyname_r (name=0x8216d08 "netscape.com",
> result=0x401d8ae0, buffer=0x8216e70 "Ø\210«Ê", buflen=1024,
> errnop=0x401d6a80, h_errnop=0xbffffb48) at nss_dns/dns-host.c:210
> #8 0x401a4357 in __gethostbyname_r (name=0x8216d08 "netscape.com",
> ---Type <return> to continue, or q <return> to quit---
> resbuf=0x401d8ae0, buffer=0x8216e70 "Ø\210«Ê", buflen=1024,
> result=0xbffffb40, h_errnop=0xbffffb48) at ../nss/getXXbyYY_r.c:191
> #9 0x401a2f25 in gethostbyname (name=0x8216d08 "netscape.com")
> at ../nss/getXXbyYY.c:127
> #10 0x8079cbc in ipcache_testname () at ipcache.c:109
> #11 0x807a5a5 in ipcache_init () at ipcache.c:456
> #12 0x807be02 in mainInitialize () at main.c:474
> #13 0x807c307 in main (argc=2, argv=0xbffffc24) at main.c:681
> #14 0x400cdf31 in __libc_start_main (main=0x807c044 <main>, argc=2,
> ubp_av=0xbffffc24, init=0x8049ea8 <_init>, fini=0x80a761c <_fini>,
> rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffffc1c)
> at ../sysdeps/generic/libc-start.c:129
> (gdb)
>
>
>
>
Received on Thu Feb 15 2001 - 16:37:01 MST

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