inevity / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

udp ipv6 bug? #124

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download r14756 + apply the leak patch
modified r14535_5 port files into r14756+patch here : 
http://code.google.com/p/lusca-freebsd-port/downloads/list 
just replace it on /usr/ports/www/

2. run it and throw up this error :
FATAL: Bungled Default Configuration line 130: udp_outgoing_address6 
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
Squid Cache (Version LUSCA_HEAD-r14756): Terminated abnormally

Same thing happened with original r14535_5 port,it throw up the same 
error,always kept referring with line 130 :
FATAL: Bungled Default Configuration line 130: udp_outgoing_address6 
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
Squid Cache (Version LUSCA_HEAD-r14535): Terminated abnormally.
3. tried to run with my own config : http://pastebin.com/VR173Vgv = error
with default untouched = error
my squid -v (r14756+leak patch)
---------------------------------------------------------------------------
blackhole# squid -v
Squid Cache: Version LUSCA_HEAD-r14756
configure options:  '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' 
'--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' 
'--localstatedir=/usr/local/squid' '--sysconfdir=/usr/local/etc/squid' 
'--enable-removal-policies=lru heap' '--disable-linux-netfilter' 
'--disable-linux-tproxy' '--disable-epoll' '--enable-auth=basic ntlm digest' 
'--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB YP' 
'--enable-digest-auth-helpers=password' '--enable-external-acl-helpers=ip_user 
session unix_group wbinfo_group' '--enable-ntlm-auth-helpers=SMB' 
'--with-pthreads' '--enable-storeio=aufs null coss' '--enable-delay-pools' 
'--enable-snmp' '--enable-icmp' '--enable-cache-digests' '--disable-wccp' 
'--enable-referer-log' '--enable-useragent-log' '--enable-arp-acl' 
'--enable-pf-transparent' '--enable-ipf-transparent' 
'--enable-follow-x-forwarded-for' '--with-large-files' 
'--enable-large-cache-files' '--enable-stacktraces' '--enable-freebsd-tproxy' 
'--enable-err-languages=Armenian Azerbaijani Bulgarian Catalan Czech Danish  
Dutch English Estonian Finnish French German Greek  Hebrew Hungarian Italian 
Japanese Korean Lithuanian  Polish Portuguese Romanian Russian-1251 
Russian-koi8-r  Serbian Simplify_Chinese Slovak Spanish Swedish  
Traditional_Chinese Turkish' '--enable-default-err-language=English' 
'--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' 
'--build=amd64-portbld-freebsd8.1' 'build_alias=amd64-portbld-freebsd8.1' 
'CC=cc' 'CFLAGS=-O2 -pipe -O2 -pipe -march=nocona  -g -fno-strict-aliasing' 
'LDFLAGS=' 'CPPFLAGS='
---------------------------------------------------------------------------

my squid -v (r14535_5) :
---------------------------------------------------------------------------
blackhole# squid -v
Squid Cache: Version LUSCA_HEAD-r14535
configure options:  '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' 
'--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' 
'--localstatedir=/usr/local/squid' '--sysconfdir=/usr/local/etc/squid' 
'--enable-removal-policies=lru heap' '--disable-linux-netfilter' 
'--disable-linux-tproxy' '--disable-epoll' '--enable-auth=basic ntlm digest' 
'--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB YP' 
'--enable-digest-auth-helpers=password' '--enable-external-acl-helpers=ip_user 
session unix_group wbinfo_group' '--enable-ntlm-auth-helpers=SMB' 
'--with-pthreads' '--enable-storeio=aufs null coss' '--enable-delay-pools' 
'--enable-snmp' '--enable-icmp' '--enable-cache-digests' '--disable-wccp' 
'--enable-referer-log' '--enable-useragent-log' '--enable-arp-acl' 
'--enable-pf-transparent' '--enable-ipf-transparent' 
'--enable-follow-x-forwarded-for' '--with-large-files' 
'--enable-large-cache-files' '--enable-stacktraces' '--enable-freebsd-tproxy' 
'--enable-err-languages=Armenian Azerbaijani Bulgarian Catalan Czech Danish  
Dutch English Estonian Finnish French German Greek  Hebrew Hungarian Italian 
Japanese Korean Lithuanian  Polish Portuguese Romanian Russian-1251 
Russian-koi8-r  Serbian Simplify_Chinese Slovak Spanish Swedish  
Traditional_Chinese Turkish' '--enable-default-err-language=English' 
'--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' 
'--build=amd64-portbld-freebsd8.1' 'build_alias=amd64-portbld-freebsd8.1' 
'CC=cc' 'CFLAGS=-O2 -pipe -O2 -pipe -march=nocona  -g -fno-strict-aliasing' 
'LDFLAGS=' 'CPPFLAGS='
---------------------------------------------------------------------------

What is the expected output? What do you see instead?
running wel :)?

What version of the product are you using? On what operating system?
FreeBSD blackhole 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #0: Mon Sep 27 15:18:16 
WIT 2010     stellar@blackhole:/usr/obj/usr/src/sys/NEW  amd64

Original issue reported on code.google.com by unexplai...@gmail.com on 27 Sep 2010 at 3:02

GoogleCodeExporter commented 9 years ago
Strange after couple time reinstalling it showing different line :
-------------------------
Starting program: /usr/local/sbin/squid 
[New LWP 100095]
[New Thread 8010041c0 (LWP 100095)]
FATAL: Bungled Default Configuration line 127: udp_outgoing_address6 
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
Squid Cache (Version LUSCA_HEAD-r14756): Terminated abnormally.
-------------------------

i trying the debug this :
-------------------------
#0  self_destruct () at cache_cf.c:149
#1  0x0000000000428427 in parse_line (buff=0x5f01a0 "udp_outgoing_address6")
    at cf_parser.h:1072
#2  0x000000000042a5bc in parseConfigFile (
    file_name=0x80100b040 "/usr/local/etc/squid/squid.conf")
    at cf_parser.h:345
#3  0x0000000000452d5b in main (argc=1, argv=0x7fffffffeaf0) at main.c:811
-------------------------

line 127 is a comment "#" here you can see it yourself : 
http://c.imagehost.org/0176/line127.png

yes confirmed,the code ignore commented "#",it read all variable,here :
-----------------------------------------------------------------------------
Breakpoint 1, parse_line (
    buff=0x5f01a0 "snmp_outgoing_address 255.255.255.255") at cf_parser.h:507
507     {
(gdb) 
Continuing.

Breakpoint 1, parse_line (buff=0x5f01a0 "icp_port 3130") at cf_parser.h:507
507     {
(gdb) 
Continuing.

Breakpoint 1, parse_line (buff=0x5f01a0 "log_icp_queries on")
    at cf_parser.h:507
507     {
(gdb) 
Continuing.

Breakpoint 1, parse_line (buff=0x5f01a0 "udp_incoming_address 0.0.0.0")
    at cf_parser.h:507
507     {
(gdb) 
Continuing.

Breakpoint 1, parse_line (
    buff=0x5f01a0 "udp_outgoing_address 255.255.255.255") at cf_parser.h:507
507     {
(gdb) 
Continuing.

Breakpoint 1, parse_line (
    buff=0x5f01a0 "udp_outgoing_address6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff") at cf_parser.h:507
507     {
(gdb) 
Continuing.
FATAL: Bungled Default Configuration line 127: udp_outgoing_address6 
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
Squid Cache (Version LUSCA_HEAD-r14756): Terminated abnormally.

Program exited with code 01.
------------------------------------------------------------------------

Original comment by unexplai...@gmail.com on 27 Sep 2010 at 5:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
even though i have deleted commented #udp_outgoing_address6 
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff line from squid.conf,it still throw up  
that error,either loaded from elsewhere/memory?but it clearly from the debug 
it's from "/usr/local/etc/squid/squid.conf" or from other code?don't know i am 
just newbie at *nix.

Original comment by unexplai...@gmail.com on 27 Sep 2010 at 5:40

GoogleCodeExporter commented 9 years ago
lusca seem dead :(

Original comment by unexplai...@gmail.com on 5 Oct 2010 at 8:35

GoogleCodeExporter commented 9 years ago
Lusca's not dead - I've just been busy at work and with university studies. :)

I haven't made Lusca run under non-IPv6 environments because, honestly, we're 
going to have to support IPv6-everywhere sooner rather than later.

Can you please investigate why IPv6 takes up so much more RAM when its compiled 
in?

Original comment by adrian.c...@gmail.com on 19 Oct 2010 at 2:39

GoogleCodeExporter commented 9 years ago
hehehe, alright no problem but i might just need the mem leak patched :), maybe 
you can put some debug message instead?, it was really frustating without 
knowing what's wrong, cheers.

Original comment by unexplai...@gmail.com on 20 Oct 2010 at 10:32