Hide Forgot
Description of problem: After update to squid-3.2.0.13-1.fc16.i686, squid crashes when accessing a host on my LAN (i.e. my dd-wrt router WebIF with ip 192.168.0.250) Accessing hosts not in my LAN (i.e. google.com), squid does not crash. Downgrade to squid-3.2.0.12-1.fc16.i686.rpm solves the problem. Here is the backtrace: # gdb /usr/sbin/squid GNU gdb (GDB) Fedora (7.3.50.20110722-9.fc16) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/sbin/squid...Reading symbols from /usr/lib/debug/usr/sbin/squid.debug...done. done. (gdb) run -DNYCd3 Starting program: /usr/sbin/squid -DNYCd3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". 2011/10/18 22:51:48| WARNING: -D command-line option is obsolete. 2011/10/18 22:51:48| Starting Squid Cache version 3.2.0.13 for i386-redhat-linux-gnu... 2011/10/18 22:51:48| Process ID 13177 2011/10/18 22:51:48| Process Roles: master worker 2011/10/18 22:51:48| With 1024 file descriptors available 2011/10/18 22:51:48| Initializing IP Cache... 2011/10/18 22:51:48| DNS Socket created at [::], FD 9 2011/10/18 22:51:48| DNS Socket created at 0.0.0.0, FD 10 2011/10/18 22:51:48| Adding domain at.home from /etc/resolv.conf 2011/10/18 22:51:48| Adding domain at.home from /etc/resolv.conf 2011/10/18 22:51:48| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2011/10/18 22:51:48| Logfile: opening log daemon:/var/log/squid/access.log 2011/10/18 22:51:48| Logfile Daemon: opening log /var/log/squid/access.log Detaching after fork from child process 13180. Detaching after fork from child process 13181. 2011/10/18 22:51:48| Unlinkd pipe opened on FD 16 2011/10/18 22:51:48| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2011/10/18 22:51:48| Store logging disabled 2011/10/18 22:51:48| Swap maxSize 563200 + 262144 KB, estimated 63488 objects 2011/10/18 22:51:48| Target number of buckets: 3174 2011/10/18 22:51:48| Using 8192 Store buckets 2011/10/18 22:51:48| Max Mem size: 262144 KB 2011/10/18 22:51:48| Max Swap size: 563200 KB 2011/10/18 22:51:48| Version 1 of swap file with LFS support detected... 2011/10/18 22:51:48| Rebuilding storage in /var/spool/squid (DIRTY) 2011/10/18 22:51:48| Using Least Load store dir selection 2011/10/18 22:51:48| Set Current Directory to /var/spool/squid 2011/10/18 22:51:48| Loaded Icons. 2011/10/18 22:51:48| HTCP Disabled. 2011/10/18 22:51:48| Squid plugin modules loaded: 0 2011/10/18 22:51:48| Adaptation support is off. 2011/10/18 22:51:48| Ready to serve requests. 2011/10/18 22:51:48| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 19 flags=9 2011/10/18 22:51:48| Store rebuilding is 49.78% complete 2011/10/18 22:51:48| Done reading /var/spool/squid swaplog (8227 entries) 2011/10/18 22:51:48| Finished rebuilding storage from disk. 2011/10/18 22:51:48| 8227 Entries scanned 2011/10/18 22:51:48| 0 Invalid entries. 2011/10/18 22:51:48| 0 With invalid flags. 2011/10/18 22:51:48| 8227 Objects loaded. 2011/10/18 22:51:48| 0 Objects expired. 2011/10/18 22:51:48| 0 Objects cancelled. 2011/10/18 22:51:48| 0 Duplicate URLs purged. 2011/10/18 22:51:48| 0 Swapfile clashes avoided. 2011/10/18 22:51:48| Took 0.10 seconds (85919.88 objects/sec). 2011/10/18 22:51:48| Beginning Validation Procedure 2011/10/18 22:51:48| Completed Validation Procedure 2011/10/18 22:51:48| Validated 8225 Entries 2011/10/18 22:51:48| store_swap_size = 370760.00 KB 2011/10/18 22:51:49| storeLateRelease: released 0 objects Program received signal SIGSEGV, Segmentation fault. HttpStateData::cacheableReply (this=0x757b10) at http.cc:385 385 if (!request->cache_control->Public()) { (gdb) backtrace #0 HttpStateData::cacheableReply (this=0x757b10) at http.cc:385 #1 0x0028de77 in HttpStateData::haveParsedReplyHeaders (this=0x757b10) at http.cc:899 #2 0x0030a70c in ServerStateData::setFinalReply (this=0x757b10, rep=0x758b40) at Server.cc:168 #3 0x0030cb92 in ServerStateData::adaptOrFinalizeReply (this=0x757b10) at Server.cc:890 #4 0x00296ad8 in HttpStateData::processReply (this=0x757b10) at http.cc:1190 #5 0x00296d03 in HttpStateData::readReply (this=0x757b10, io=...) at http.cc:1167 #6 0x002990a3 in CommCbMemFunT<HttpStateData, CommIoCbParams>::doDial (this=0x75797c) at ../src/CommCalls.h:177 #7 0x002991cc in JobDialer<HttpStateData>::dial (this=0x75797c, call=...) at base/AsyncJobCalls.h:175 #8 0x002993a3 in AsyncCallT<CommCbMemFunT<HttpStateData, CommIoCbParams> >::fire (this=0x757960) at ../src/base/AsyncCall.h:142 #9 0x0037cbb3 in AsyncCall::make (this=0x757960) at AsyncCall.cc:36 #10 0x00380186 in AsyncCallQueue::fireNext (this=0x6ecfd0) at AsyncCallQueue.cc:54 #11 0x00380310 in AsyncCallQueue::fire (this=0x6ecfd0) at AsyncCallQueue.cc:40 #12 0x00254fdd in EventLoop::dispatchCalls (this=0xbffff6fc) at EventLoop.cc:154 #13 0x002551d7 in EventLoop::runOnce (this=0xbffff6fc) at EventLoop.cc:131 #14 0x002552b0 in EventLoop::run (this=0xbffff6fc) at EventLoop.cc:95 #15 0x002bb8a9 in SquidMain (argc=2, argv=0xbffff834) at main.cc:1528 #16 0x001e0e89 in SquidMainSafe (argv=0xbffff834, argc=2) at main.cc:1247 #17 main (argc=2, argv=0xbffff834) at main.cc:1239 (gdb) quit My squid.conf: # cat /etc/squid/squid.conf # # Recommended minimum configuration: # # Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT # # Recommended minimum Access Permission configuration: # # Only allow cachemgr access from localhost http_access allow localhost manager http_access deny manager # Deny requests to certain unsafe ports http_access deny !Safe_ports # Deny CONNECT to other than secure SSL ports http_access deny CONNECT !SSL_ports # We strongly recommend the following be uncommented to protect innocent # web applications running on the proxy server who think the only # one who can access services on "localhost" is a local user #http_access deny to_localhost # # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS # # Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access allow localnet http_access allow localhost # And finally deny all other access to this proxy http_access deny all # Squid normally listens to port 3128 http_port 3128 # Uncomment and adjust the following to add a disk cache directory. cache_dir ufs /var/spool/squid 550 16 256 # Leave coredumps in the first cache dir coredump_dir /var/spool/squid # Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 My network-config: # route -n Kernel IP Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 172.25.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 239.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0 # ifconfig eth0 Link encap:Ethernet Hardware Adresse 00:1E:90:A9:56:FA inet Adresse:192.168.0.254 Bcast:192.168.0.255 Maske:255.255.255.0 inet6 Adresse: fe80::21e:90ff:fea9:56fa/64 Gültigkeitsbereich:Verbindung UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 RX packets:716462 errors:0 dropped:0 overruns:0 frame:0 TX packets:571308 errors:0 dropped:0 overruns:0 carrier:3 Kollisionen:0 Sendewarteschlangenlänge:1000 RX bytes:570291615 (543.8 MiB) TX bytes:375184831 (357.8 MiB) eth0:0 Link encap:Ethernet Hardware Adresse 00:1E:90:A9:56:FA inet Adresse:192.168.1.254 Bcast:192.168.1.255 Maske:255.255.255.0 UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 eth0:1 Link encap:Ethernet Hardware Adresse 00:1E:90:A9:56:FA inet Adresse:172.25.1.1 Bcast:172.25.1.255 Maske:255.255.255.0 UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 eth1 Link encap:Ethernet Hardware Adresse 00:05:5D:A3:4A:1A inet6 Adresse: fe80::205:5dff:fea3:4a1a/64 Gültigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:1000 RX bytes:0 (0.0 b) TX bytes:468 (468.0 b) Interrupt:20 Basisadresse:0x8c00 lo Link encap:Lokale Schleife inet Adresse:127.0.0.1 Maske:255.0.0.0 inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:9107 errors:0 dropped:0 overruns:0 frame:0 TX packets:9107 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:0 RX bytes:3027125 (2.8 MiB) TX bytes:3027125 (2.8 MiB) Version-Release number of selected component (if applicable): squid-3.2.0.13-1.fc16.i686 How reproducible: Always Steps to Reproduce: 1. Access any host in my LAN with squid Actual results: squid crashes, see above Expected results: no crash
There seems to be an correction for this bug in the latest trunk of squid, see http://bazaar.launchpad.net/~squid/squid/3.2/revision/11383
This is already among squid-3.2 changes http://www.squid-cache.org/Versions/v3/3.2/changesets/squid-3.2-11383.patch. I'm going to commit it.
squid-3.2.0.13-3.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/squid-3.2.0.13-3.fc16
I can confirm the bug is fixed with squid-3.2.0.13-3.fc16
Package squid-3.2.0.13-3.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing squid-3.2.0.13-3.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14951 then log in and leave karma (feedback).
Package squid-3.2.0.13-4.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing squid-3.2.0.13-4.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14951 then log in and leave karma (feedback).
squid-3.2.0.13-4.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.