c-rack / squid-ecap-gzip

SQUID eCAP GZIP Adapter
GNU General Public License v2.0
20 stars 8 forks source link

Squid restarts itself #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Normal web browsing
2. After 5 to 10 mins squid restarts
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

I'm using the lastest ecap adapter and libecap on Debian lenny:
optimum-router:/workingdir# uname -a
Linux optimum-router 2.6.26-2-686 #1 SMP Thu Aug 19 03:44:10 UTC 2010 i686 
GNU/Linux

Please provide any additional information below.

Here is a snip from cache.log after monitoring I noticed squid restarts itself:

2010/10/05 21:11:59| WARNING: redirector #18 (FD 126) exited 
(squid)(death+0x49)0x819fa89? 0xb7797400? 
/usr/local/lib/ecap_adapter_gzip.so(ZN7Adapter7Xaction17noteVbContentDoneEb+0x5a
)0xb723f67a? 
(squid)(ZN10Adaptation4Ecap10XactionRep23noteBodyProductionEndedE8RefCountI8Body
PipeE+0x57)0x8218607? 
(squid)(ZN12UnaryMemFunTI12BodyConsumer8RefCountI8BodyPipeEE6doDialEv+0x60)0x810
0dd0? (squid)(ZN9JobDialerI12BodyConsumerE4dialER9AsyncCall+0x39)0x8100749? 
(squid)(ZN10AsyncCallTI18BodyConsumerDialerE4fireEv+0x18)0x8100898? 
(squid)(ZN9AsyncCall4makeEv+0x33e)0x81ae95e? 
(squid)(ZN14AsyncCallQueue8fireNextEv+0xf8)0x81b13a8? 
(squid)(ZN14AsyncCallQueue4fireEv+0x28)0x81b1558? 
(squid)(ZN9EventLoop7runOnceEv+0xe7)0x81192c7? 
(squid)(ZN9EventLoop3runEv+0x20)0x8119390? 
(squid)(Z9SquidMainiPPc+0x83b)0x816718b? (squid)(main+0x27)0x81677b7? 
/lib/i686/cmov/libc.so.6(libc_start_main+0xe5)0xb74ae455? 
(squid)(ZNSt8ios_base4InitD1Ev+0x61)0x80c90b1? FATAL: Received Segment 
Violation...dying. 2010/10/05 21:13:09| storeDirWriteCleanLogs: Starting... 
2010/10/05 21:13:09| 65536 entries written so far. 2010/10/05 21:13:09| 131072 
entries written so far. 2010/10/05 21:13:09| 196608 entries written so far. 
2010/10/05 21:13:10| 262144 entries written so far. 2010/10/05 21:13:10| 327680 
entries written so far. 2010/10/05 21:13:10| 393216 entries written so far. 
2010/10/05 21:13:10| 458752 entries written so far. 2010/10/05 21:13:10| 524288 
entries written so far. 2010/10/05 21:13:10| 589824 entries written so far. 
2010/10/05 21:13:10| 655360 entries written so far. 2010/10/05 21:13:10| 720896 
entries written so far. 2010/10/05 21:13:10| 786432 entries written so far. 
2010/10/05 21:13:10| 851968 entries written so far. 2010/10/05 21:13:10| 917504 
entries written so far. 2010/10/05 21:13:10| 983040 entries written so far. 
2010/10/05 21:13:11| 1048576 entries written so far. 2010/10/05 21:13:11| 
1114112 entries written so far. 2010/10/05 21:13:11| 1179648 entries written so 
far. 2010/10/05 21:13:12| 1245184 entries written so far. 2010/10/05 21:13:12| 
1310720 entries written so far. 2010/10/05 21:13:12| 1376256 entries written so 
far. 2010/10/05 21:13:12| 1441792 entries written so far. 2010/10/05 21:13:12| 
1507328 entries written so far. 2010/10/05 21:13:12| 1572864 entries written so 
far. 2010/10/05 21:13:12| 1638400 entries written so far. 2010/10/05 21:13:13| 
1703936 entries written so far. 2010/10/05 21:13:17| 1769472 entries written so 
far. 2010/10/05 21:13:17| 1835008 entries written so far. 2010/10/05 21:13:17| 
1900544 entries written so far. 2010/10/05 21:13:17| 1966080 entries written so 
far. 2010/10/05 21:13:17| 2031616 entries written so far. 2010/10/05 21:13:17| 
2097152 entries written so far. 2010/10/05 21:13:17| 2162688 entries written so 
far. 2010/10/05 21:13:17| 2228224 entries written so far. 2010/10/05 21:13:17| 
Finished. Wrote 2260967 entries. 2010/10/05 21:13:17| Took 8.07 seconds 
(280243.81 entries/sec). CPU Usage: 109.567 seconds = 47.499 user + 62.068 sys 
Maximum Resident Size: 0 KB Page faults with physical i/o: 5 Memory usage for 
squid via mallinfo():

total space in arena: 281384 KB Ordinary blocks: 280521 KB 6483 blks Small 
blocks: 0 KB 1 blks Holding blocks: 2744 KB 6 blks Free Small blocks: 0 KB Free 
Ordinary blocks: 862 KB Total in use: 283265 KB 101% Total free: 862 KB 0%
^X2010/10/05 21:13:20| Starting Squid Cache version 3.1.8 for 
i686-pc-linux-gnu... 2010/10/05 21:13:20| Process ID 3029 2010/10/05 21:13:20| 
With 1024 file descriptors available 2010/10/05 21:13:20| Initializing IP 
Cache... 2010/10/05 21:13:20| DNS Socket created at ::?, FD 7 2010/10/05 
21:13:20| DNS Socket created at 0.0.0.0, FD 8 2010/10/05 21:13:20| Adding 
nameserver 8.8.8.8 from squid.conf 2010/10/05 21:13:20| Adding nameserver 
172.16.0.2 from squid.conf 2010/10/05 21:13:20| helperOpenServers: Starting 
20/20 'python2.5' processes 2010/10/05 21:13:22| Unlinkd pipe opened on FD 53 
2010/10/05 21:13:22| Swap maxSize 204800000 + 1048576 KB, estimated 4288512 
objects 2010/10/05 21:13:22| Target number of buckets: 214425 2010/10/05 
21:13:22| Using 262144 Store buckets 2010/10/05 21:13:22| Max Mem size: 1048576 
KB 2010/10/05 21:13:22| Max Swap size: 204800000 KB 2010/10/05 21:13:22| 
Version 1 of swap file with LFS support detected... 2010/10/05 21:13:22| 
Rebuilding storage in /var2/squid/cache (CLEAN) 2010/10/05 21:13:22| Using 
Round Robin store dir selection 2010/10/05 21:13:22| Current Directory is 
/usr/local/squid3 2010/10/05 21:13:22| Loaded Icons. 2010/10/05 21:13:22| 
Accepting intercepted HTTP connections at 172.16.0.1:3128, FD 57. 2010/10/05 
21:13:22| HTCP Disabled. 2010/10/05 21:13:22| loading Squid module from 
'/usr/local/lib/ecap_adapter_gzip.so' 2010/10/05 21:13:22| Squid modules 
loaded: 1 2010/10/05 21:13:22| Adaptation support is on 2010/10/05 21:13:22| 
Ready to serve requests. 2010/10/05 21:13:23| Store rebuilding is 0.18% complete

Don't know what is causing this but, it happened as well with squid-3.1.0.16.

Original issue reported on code.google.com by optimumw...@gmail.com on 6 Oct 2010 at 1:26

GoogleCodeExporter commented 9 years ago
Could you please test with latest versions of both Squid and eCAP adapter and 
tell me if you can still reproduce the problem?

Original comment by constant...@gmail.com on 14 Feb 2011 at 3:07

GoogleCodeExporter commented 9 years ago
I believe this may be related if not a fix for this issue, but it's a branch of 
squid 3.2 for supporting newer versions of libecap: 
http://bazaar.launchpad.net/~rousskov/squid/3p2-ecap/revision/11124

Original comment by jonathan...@gmail.com on 14 Apr 2011 at 10:19