Parece ser um bug da PCRE mesmo, conforme algumas coisas que encontrei:
http://sourceforge.net/tracker/?func=detail&aid=3534550&group_id=131757&atid=722098 Vou experimentar um downgrade do pacote PCRE. Message: 4 > Date: Tue, 26 Jun 2012 10:49:53 -0300 > From: "Matheus L. Abreu" <matheusl.ab...@gmail.com> > Subject: Re: [FUG-BR] Dansguardian retornando páginas em branco. > To: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR) > <freebsd@fug.com.br> > Message-ID: > <CANrYsFD+XX=wep4czapylydrm9kpmpr+su4epywwjcwkj7w...@mail.gmail.com > > > Content-Type: text/plain; charset=ISO-8859-1 > > Estou tento este mesmo problema com a dupla squid+dansguardian > Ainda não consegui encontrar um denominador comum ... tenho este problemas > nas versões 8.2 -RELEASE e -STABLE / 8.3 -RELEASE e -STABLE / 9.0 -RELEASE > Ativando o debug do dansguardian ele dá um erro "std::bad_alloc" que não > sei da onde pode ser (compilação, perl, pcre, etc.) > > att, > > 2012/6/26 Aldrox <ald...@gmail.com> > > > Bom dia pessoal. > > > > Tenho um servidor bastante simples (proxy + filtro de conteúdo) rodando > > Tinyproxy e Dansguardian, baseado em FreeBSD 8.1 (i386). > > Este servidor (Celeron) tem funcionado a contento por 2 anos, sem nenhum > > problema. > > > > Recebemos aqui na instituição um novo computador Core i3 para substituir > o > > antigo Celeron, no qual instalei FreeBSD 9.0 (amd64). > > > > Este novo computador está rodando os mesmos serviços. Toda configuração > foi > > feita identica a da máquina antiga. > > > > Todos estes serviços estão funcionando bem, com exceção do Dansguardian > que > > está retornando páginas em branco, apenas > > mostrando corretamente as páginas dos sites listados no arquivo > > "exceptionsitelist". > > > > Como disse, no computador antigo com exatamente as mesmas configurações > > tudo funciona normalmente, com o Dansguardian retornando todas as páginas > > como desejado. > > > > Na nova máquina, para testar, substituí o Tinyproxy pelo Squid que está > > funcionando normalmente quando sozinho, mas quando em conjunto com o > > Dansguardian apresenta o mesmo problema. Portanto creio que não seja > nada a > > ver com proxies e sim o próprio DG. > > > > Instalei o dansguiardian-devel pelo ports, mas isso também não adiantou, > > assim como fiz um downgrade do DG para a versao 2.9.9.8, > > também sem sucesso. > > > > Abaixo as configurações usadas na máquina: > > > > > > > > >>>>>>>>>>> dansguardian.conf: > > > > reportinglevel = 3 > > languagedir = '/usr/local/share/dansguardian/languages' > > language = 'ptbrazilian' > > loglevel = 2 > > logexceptionhits = 2 > > logfileformat = 1 > > loglocation = '/var/log/access.log' > > filterip = 127.0.0.1 > > filterport = 8080 > > proxyip = 127.0.0.1 > > proxyport = 8888 > > accessdeniedaddress = ' > > http://YOURSERVER.YOURDOMAIN/cgi-bin/dansguardian.pl' > > nonstandarddelimiter = on > > usecustombannedimage = on > > custombannedimagefile = > '/usr/local/share/dansguardian/transparent1x1.gif' > > filtergroups = 1 > > filtergroupslist = '/usr/local/etc/dansguardian/lists/filtergroupslist' > > bannediplist = '/usr/local/etc/dansguardian/lists/bannediplist' > > exceptioniplist = '/usr/local/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 = 10downloadmanager = > > '/usr/local/etc/dansguardian/downloadmanagers/fancy.conf' > > ##!! Not compiled !! downloadmanager = > > '/usr/local/etc/dansguardian/downloadmana > > downloadmanager = > > '/usr/local/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 > > > > > > > > >>>>>>>>>>> dansguardianf1.conf: > > > > groupmode = 1 > > bannedphraselist = '/usr/local/etc/dansguardian/lists/bannedphraselist' > > weightedphraselist = > '/usr/local/etc/dansguardian/lists/weightedphraselist' > > exceptionphraselist = > > '/usr/local/etc/dansguardian/lists/exceptionphraselist' > > bannedsitelist = '/usr/local/etc/dansguardian/lists/bannedsitelist' > > greysitelist = '/usr/local/etc/dansguardian/lists/greysitelist' > > exceptionsitelist = '/usr/local/etc/dansguardian/lists/exceptionsitelist' > > bannedurllist = '/usr/local/etc/dansguardian/lists/bannedurllist' > > greyurllist = '/usr/local/etc/dansguardian/lists/greyurllist' > > exceptionurllist = '/usr/local/etc/dansguardian/lists/exceptionurllist' > > exceptionregexpurllist = > > '/usr/local/etc/dansguardian/lists/exceptionregexpurllist' > > bannedregexpurllist = > > '/usr/local/etc/dansguardian/lists/bannedregexpurllist' > > picsfile = '/usr/local/etc/dansguardian/lists/pics' > > contentregexplist = '/usr/local/etc/dansguardian/lists/contentregexplist' > > urlregexplist = '/usr/local/etc/dansguardian/lists/urlregexplist' > > blockdownloads = off > > exceptionextensionlist = > > '/usr/local/etc/dansguardian/lists/exceptionextensionlist' > > exceptionmimetypelist = > > '/usr/local/etc/dansguardian/lists/exceptionmimetypelist' > > bannedextensionlist = > > '/usr/local/etc/dansguardian/lists/bannedextensionlist' > > bannedmimetypelist = > '/usr/local/etc/dansguardian/lists/bannedmimetypelist' > > exceptionfilesitelist = > > '/usr/local/etc/dansguardian/lists/exceptionfilesitelist' > > exceptionfileurllist = > > '/usr/local/etc/dansguardian/lists/exceptionfileurllist' > > headerregexplist = '/usr/local/etc/dansguardian/lists/headerregexplist' > > bannedregexpheaderlist = > > '/usr/local/etc/dansguardian/lists/bannedregexpheaderlist' > > naughtynesslimit = 50 > > categorydisplaythreshold = 0 > > embeddedurlweight = 0 > > enablepics = off > > bypass = 0 > > bypasskey = '' > > infectionbypass = 0 > > infectionbypasskey = '' > > infectionbypasserrorsonly = on > > disablecontentscan = off > > deepurlanalysis = off > > > > > > > > >>>>>>>>>>> tinyproxy.conf: > > > > User nobody > > Group nobody > > Port 8888 > > Listen 127.0.0.1 > > Timeout 600 > > DefaultErrorFile "/usr/local/share/tinyproxy/proib.html" > > StatFile "/usr/local/share/tinyproxy/stats.html" > > LogFile "/var/log/tinyproxy.log" > > LogLevel Info > > PidFile "/var/run/tinyproxy.pid" > > MaxClients 100 > > MinSpareServers 5 > > MaxSpareServers 20 > > StartServers 10 > > MaxRequestsPerChild 0 > > Allow 127.0.0.1 > > Allow 192.168.0.0/24 > > ViaProxyName "tinyproxy" > > Filter "/usr/local/etc/filter" > > > > > > > > Pretendo continuar usando o tinyproxy, ao invés do squid pela sua > > simplicidade. > > > > Enfim, qualquer sugestão para resolver o problema das páginas em branco e > > também dicas para melhorar os scripts, serão muito bem-vindas. > > > > Obrigado pela atenção. > > > > > > Alessandro Colli > > > > > > -- > > Going on means going far... going far means returning... > > --Tao Te Ching > > ------------------------- > > Histórico: http://www.fug.com.br/historico/html/freebsd/ > > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > > -- Going on means going far... going far means returning... --Tao Te Ching ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd