libecap fails every 5 mins and restarts squid

Asked by landysaccount on 2009-11-15

Hello.

I'm currently testing Squid 3.1.0.14 and have noticed that squid is failing and restarting itself every five minutes. This is what appears in the cache.log:

(squid)(death+0x4b)[0x818b8cb]
[0xb7fd1420]
/usr/local/lib/ecap_adapter_gzip.so(_ZN7Adapter7Xaction17noteVbContentDoneEb+0x61)[0xb7b1a411]
(squid)(_ZN10Adaptation4Ecap10XactionRep23noteBodyProductionEndedE8RefCountI8BodyPipeE+0x61)[0x81fdd61]
(squid)(_ZN12UnaryMemFunTI12BodyConsumer8RefCountI8BodyPipeEE6doDialEv+0x48)[0x80f1208]
(squid)(_ZN9JobDialer4dialER9AsyncCall+0x51)[0x8199661]
(squid)(_ZN10AsyncCallTI18BodyConsumerDialerE4fireEv+0x18)[0x80f1138]
(squid)(_ZN9AsyncCall4makeEv+0x17b)[0x819888b]
(squid)(_ZN14AsyncCallQueue8fireNextEv+0xf9)[0x819b4a9]
(squid)(_ZN14AsyncCallQueue4fireEv+0x28)[0x819b5a8]
(squid)(_ZN9EventLoop13dispatchCallsEv+0x13)[0x81096c3]
(squid)(_ZN9EventLoop7runOnceEv+0xf6)[0x81098b6]
(squid)(_ZN9EventLoop3runEv+0x28)[0x8109988]
(squid)(_Z9SquidMainiPPc+0x4b5)[0x8151e75]
(squid)(main+0x27)[0x81522f7]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8)[0xb7d18ea8]
(squid)(__gxx_personality_v0+0x155)[0x80bd081]
FATAL: Received Segment Violation...dying.
2009/11/15 19:09:38| storeDirWriteCleanLogs: Starting...
2009/11/15 19:09:38| WARNING: Closing open FD 16
2009/11/15 19:09:38| Finished. Wrote 5642 entries.
2009/11/15 19:09:38| Took 0.01 seconds (1105190.99 entries/sec).
CPU Usage: 5.012 seconds = 3.284 user + 1.728 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena: 13024 KB
        Ordinary blocks: 12895 KB 49 blks
        Small blocks: 0 KB 1 blks
        Holding blocks: 12736 KB 84 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 128 KB
        Total in use: 25631 KB 197%
        Total free: 128 KB 1%
2009/11/15 19:09:41| Starting Squid Cache version 3.1.0.14 for i686-pc-linux-gnu...
2009/11/15 19:09:41| Process ID 3821
2009/11/15 19:09:41| With 1024 file descriptors available
2009/11/15 19:09:41| Initializing IP Cache...
2009/11/15 19:09:41| DNS Socket created at [::], FD 7
2009/11/15 19:09:41| Adding nameserver 196.3.81.5 from squid.conf
2009/11/15 19:09:41| Adding nameserver 200.88.127.22 from squid.conf
2009/11/15 19:09:41| Adding nameserver 196.3.81.132 from squid.conf
2009/11/15 19:09:41| Unlinkd pipe opened on FD 12
2009/11/15 19:09:41| Swap maxSize 10240000 + 524288 KB, estimated 224256 objects
2009/11/15 19:09:41| Target number of buckets: 11212
2009/11/15 19:09:41| Using 16384 Store buckets
2009/11/15 19:09:41| Max Mem size: 524288 KB
2009/11/15 19:09:41| Max Swap size: 10240000 KB
2009/11/15 19:09:41| Version 1 of swap file with LFS support detected...
2009/11/15 19:09:41| Rebuilding storage in /var/log/squid3.1/cache (CLEAN)
2009/11/15 19:09:41| Using Round Robin store dir selection
2009/11/15 19:09:41| Current Directory is /etc/squid3.1
2009/11/15 19:09:41| Loaded Icons.
2009/11/15 19:09:41| Accepting intercepted HTTP connections at 172.16.0.1:3128, FD 16.
2009/11/15 19:09:41| HTCP Disabled.
2009/11/15 19:09:41| loading Squid module from '/usr/local/lib/ecap_adapter_gzip.so'
2009/11/15 19:09:41| Squid modules loaded: 1
2009/11/15 19:09:41| Adaptation support is on
2009/11/15 19:09:41| Ready to serve requests.
2009/11/15 19:09:41| Store rebuilding is 72.59% complete
2009/11/15 19:09:41| Done reading /var/log/squid3.1/cache swaplog (5642 entries)
2009/11/15 19:09:41| Finished rebuilding storage from disk.
2009/11/15 19:09:41| 5642 Entries scanned
2009/11/15 19:09:41| 0 Invalid entries.
2009/11/15 19:09:41| 0 With invalid flags.
2009/11/15 19:09:41| 5642 Objects loaded.
2009/11/15 19:09:41| 0 Objects expired.
2009/11/15 19:09:41| 0 Objects cancelled.
2009/11/15 19:09:41| 0 Duplicate URLs purged.
2009/11/15 19:09:41| 0 Swapfile clashes avoided.
2009/11/15 19:09:41| Took 0.04 seconds (127638.40 objects/sec).
2009/11/15 19:09:41| Beginning Validation Procedure
2009/11/15 19:09:41| Completed Validation Procedure
2009/11/15 19:09:41| Validated 11309 Entries
2009/11/15 19:09:41| store_swap_size = 69112
2009/11/15 19:09:42| storeLateRelease: released 0 objects

This is what syslog says:
Nov 15 18:39:44 optimum-router squid[3625]: Squid Parent: child process 3680 started
Nov 15 18:44:37 optimum-router squid[3625]: Squid Parent: child process 3680 exited due to signal 6 with status 0
Nov 15 18:44:41 optimum-router squid[3625]: Squid Parent: child process 3704 started
Nov 15 18:49:38 optimum-router squid[3625]: Squid Parent: child process 3704 exited due to signal 6 with status 0
Nov 15 18:49:41 optimum-router squid[3625]: Squid Parent: child process 3727 started
Nov 15 18:54:38 optimum-router squid[3625]: Squid Parent: child process 3727 exited due to signal 6 with status 0
Nov 15 18:54:41 optimum-router squid[3625]: Squid Parent: child process 3748 started
Nov 15 18:59:38 optimum-router squid[3625]: Squid Parent: child process 3748 exited due to signal 6 with status 0
Nov 15 18:59:41 optimum-router squid[3625]: Squid Parent: child process 3769 started
Nov 15 19:04:38 optimum-router squid[3625]: Squid Parent: child process 3769 exited due to signal 6 with status 0
Nov 15 19:04:41 optimum-router squid[3625]: Squid Parent: child process 3790 started
Nov 15 19:09:38 optimum-router squid[3625]: Squid Parent: child process 3790 exited due to signal 6 with status 0
Nov 15 19:09:41 optimum-router squid[3625]: Squid Parent: child process 3821 started

Question information

Language:
English Edit question
Status:
Answered
For:
eCAP Edit question
Assignee:
No assignee Edit question
Last query:
2009-11-15
Last reply:
2009-11-16
Alex Rousskov (rousskov) said : #1

Could be a bug in the adapter you are using (it shows up at the top of the back trace). Consider contacting the author.

If you think the bug is with libecap or one of the official sample adapters, please provide more info (e.g., the reasons you think the bug is with libecap) and convert this non-question into a bug report. If you think the bug is with Squid, please file a bug report into Squid bugzilla.

Can you help with this problem?

Provide an answer of your own, or ask landysaccount for more information if necessary.

To post a message you must log in.