Package: dansguardian
Version: 2.10.1.1-4
Severity: important
Dear Maintainer,
Dansguardian seems not to work on AMD64 systems. I'm sure its not a
dansguardian problem and that some other package has broken DG.
Looking as strace's it looks like a memory problem, but I this exact
same problem on 2 different boxes, both with AMD CPU's
This stuck out when stracing the dansguardian binary:
"mmap(NULL, 8507392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x7f06ffcde000
mremap(0x7f06ffcde000, 8507392, 8572928, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 8572928, 8638464, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 8638464, 8704000, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 8704000, 8769536, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 8769536, 8835072, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 8835072, 8900608, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 8900608, 8966144, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 8966144, 9031680, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9031680, 9097216, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9097216, 9162752, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9162752, 9228288, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9228288, 9297920, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9297920, 9363456, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9363456, 9428992, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9428992, 9494528, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9494528, 9560064, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9560064, 9625600, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9625600, 9691136, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9691136, 9756672, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9756672, 9822208, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9822208, 9887744, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9887744, 9953280, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 9953280, 10018816, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10018816, 10084352, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10084352, 10149888, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10149888, 10215424, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10215424, 10280960, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10280960, 10350592, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10350592, 10416128, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10416128, 10481664, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10481664, 10547200, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10547200, 10612736, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10612736, 10678272, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 10678272, 10743808, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 11071488, 11137024, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 11137024, 11202560, MREMAP_MAYMOVE) = 0x7f06ff4b1000
mremap(0x7f06ff4b1000, 11202560, 11141120, MREMAP_MAYMOVE) = 0x7f06ff4b1000"
Then when you try to look at a web page you see this message in the browser:
"Connection Interrupted
The document contains no data.
The network link was interrupted while negotiating a connection. Please
try again."
The output from strace when getting a page looks like this:
"Process 5255 attached - interrupt to quit
select(5, [4], NULL, NULL, {245, 578796}) = 1 (in [4], left {240, 516085})
recvfrom(4, "\0", 1, 0, NULL, NULL) = 1
accept(6, {sa_family=AF_INET, sin_port=htons(52019),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 3
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
select(5, NULL, [4], NULL, {10, 0}) = 1 (out [4], left {9, 999995})
sendto(4, "K", 1, 0, NULL, 0) = 1
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(5, {sa_family=AF_INET, sin_port=htons(3128),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
select(4, [3], NULL, NULL, {14, 0}) = 1 (in [3], left {13, 938797})
recvfrom(3, "GET http://www.aa.nu/ HTTP/1.1\r\n"..., 1024, 0, NULL,
NULL) = 394
mmap(NULL, 228473534089793536, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap(NULL, 228473534089793536, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
brk(0x32bb37802358000) = 0x2349000
mmap(NULL, 228473534089924608, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
close(5) = 0
close(3) = 0
select(5, NULL, [4], NULL, {15, 0}) = 1 (out [4], left {14, 999993})
sendto(4, "2\n", 2, 0, NULL, 0) = 2
select(5, [4], NULL, NULL, {360, 0}"
As a work around you can install the 32 bit version. Download the binary
run alien -t the create the tar extract the binary, and copy to /usr/sbin
Install ia32-libs-gtk.
Download the 32 bit versions of libtommath.so.0 and libclamav.so.6 and
extract them in the same way.
I extracted these and appended .ia32 to the end so they didn't conflict
with the x64 libs, then removed the x64 links and linked to the 32 bit ones.
Any ideas?
Jon
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.3.6 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dansguardian depends on:
ii adduser 3.113+nmu2
ii clamav 0.97.3+dfsg-2.1
ii libbz2-1.0 1.0.6-1
ii libc6 2.13-32
ii libclamav6 0.97.3+dfsg-2.1
ii libgcc1 1:4.7.0-8
ii libpcre3 1:8.30-5
ii libstdc++6 4.7.0-8
ii libtommath0 0.42.0-1
ii perl 5.14.2-10
ii zlib1g 1:1.2.7.dfsg-1
dansguardian recommends no packages.
Versions of packages dansguardian suggests:
ii clamav-freshclam 0.97.3+dfsg-2.1
ii squid 2.7.STABLE9-4.1
-- Configuration Files:
/etc/dansguardian/dansguardian.conf changed:
reportinglevel = 3
languagedir = '/etc/dansguardian/languages'
language = 'ukenglish'
loglevel = 2
logexceptionhits = 2
logfileformat = 1
filterip =
filterport = 8888
proxyip = 127.0.0.1
proxyport = 3128
accessdeniedaddress = 'http://YOURSERVER.YOURDOMAIN/cgi-bin/dansguardian.pl'
nonstandarddelimiter = on
usecustombannedimage = on
custombannedimagefile = '/usr/share/dansguardian/transparent1x1.gif'
filtergroups = 1
filtergroupslist = '/etc/dansguardian/lists/filtergroupslist'
bannediplist = '/etc/dansguardian/lists/bannediplist'
exceptioniplist = '/etc/dansguardian/lists/exceptioniplist'
showweightedfound = on
weightedphrasemode = 2
urlcachenumber = 1000
urlcacheage = 900
scancleancache = on
phrasefiltermode = 2
preservecase = 0
hexdecodecontent = off
forcequicksearch = off
reverseaddresslookups = off
reverseclientiplookups = off
logclienthostnames = off
createlistcachefiles = on
maxuploadsize = -1
maxcontentfiltersize = 256
maxcontentramcachescansize = 2000
maxcontentfilecachescansize = 20000
filecachedir = '/tmp'
deletedownloadedtempfiles = on
initialtrickledelay = 20
trickledelay = 10
downloadmanager = '/etc/dansguardian/downloadmanagers/fancy.conf'
downloadmanager = '/etc/dansguardian/downloadmanagers/default.conf'
contentscannertimeout = 60
contentscanexceptions = off
recheckreplacedurls = off
forwardedfor = off
usexforwardedfor = off
logconnectionhandlingerrors = on
logchildprocesshandling = off
maxchildren = 120
minchildren = 8
minsparechildren = 4
preforkchildren = 6
maxsparechildren = 32
maxagechildren = 500
maxips = 0
ipcfilename = '/tmp/.dguardianipc'
urlipcfilename = '/tmp/.dguardianurlipc'
ipipcfilename = '/tmp/.dguardianipipc'
nodaemon = off
nologger = off
logadblocks = off
loguseragent = off
softrestart = off
mailer = '/usr/sbin/sendmail -t'
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]