On 8/2/2011 9:23 AM, Renato Botelho wrote:
A FreeBSD user reported me he got following while building
0.97.2 on a recent -current system:
PASS: check1_clamscan.sh
FAIL: check2_clamd.sh
PASS: check3_clamd.sh
I encountered the same error under RHEL 6 = "ERROR: Can't send to clamd:
Broken pipe". Increasing the resource limits fixed the issue for me.
Attached is the patch I used to workaround the problem with the 0.97.1
and 0.97.2 releases. See this bug report for information:
https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1990
diff -U 3 -H -b -w -B -E -i -p -r -N -- clamav/unit_tests/check_common.sh
clamav.lavabit/unit_tests/check_common.sh
--- clamav/unit_tests/check_common.sh 2011-05-13 06:25:31.000000000 -0500
+++ clamav.lavabit/unit_tests/check_common.sh 2011-06-09 13:42:00.570566000
-0500
@@ -47,8 +47,6 @@ die()
# Setup test directory to avoid temporary and output file clashes
test_start() {
- ulimit -t 120 || true; ulimit -d 1024000 || true;
- ulimit -v 1024000 || true;
(cd test-$1 2>/dev/null && killclamd || true)
rm -rf test-$1
mkdir test-$1
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net