Mailing List Archive

corrupt or unknown clamd scanner error or memory/resource/perms problem
Hi!

I am using qmail+qmailscanner and I am getting clamdscan: corrupt or
unknown clamd scanner error or memory/resource/perms problem when I send
a pdf file. If I set ScanPDF no I don't have the problem...WHY???

Thanks!!

--
-------------------------------------------------
Cristina Tanzi Tolenti
CED - Provincia di Cremona
C.so V.Emanuele II, 17 - 26100 Cremona
tel. 0372/406362 - fax 0372/406301
e-mail cristina.tanzitolenti@provincia.cremona.it
-------------------------------------------------

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
Re: corrupt or unknown clamd scanner error or memory/resource/perms problem [ In reply to ]
On Wed, 17 Nov 2010 15:11:37 +0100
Cristina Tanzi Tolenti <cristina.tanzitolenti@provincia.cremona.it>
wrote:

> Hi!
>
> I am using qmail+qmailscanner and I am getting clamdscan: corrupt or
> unknown clamd scanner error or memory/resource/perms problem when I
> send a pdf file. If I set ScanPDF no I don't have the problem...WHY???

Does this patch help?
http://git.clamav.net/gitweb?p=clamav-devel.git;a=blobdiff;f=libclamav/pdf.c;h=6ff503f756ca68e90a294e7ef31078de261ea847;hp=af852ecd16aa8b16409be33672febe5eb3e3d2a7;hb=a95d300f6b66d3354ebb86923f178c919ed86bb1;hpb=b93481dd06838228ea44b7e336e14e8aa6abec75

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
Re: corrupt or unknown clamd scanner error or memory/resource/perms problem [ In reply to ]
Il 17/11/2010 15:40, Török Edwin ha scritto:
> On Wed, 17 Nov 2010 15:11:37 +0100
> Cristina Tanzi Tolenti<cristina.tanzitolenti@provincia.cremona.it>
> wrote:
>
>> Hi!
>>
>> I am using qmail+qmailscanner and I am getting clamdscan: corrupt or
>> unknown clamd scanner error or memory/resource/perms problem when I
>> send a pdf file. If I set ScanPDF no I don't have the problem...WHY???
> Does this patch help?
> http://git.clamav.net/gitweb?p=clamav-devel.git;a=blobdiff;f=libclamav/pdf.c;h=6ff503f756ca68e90a294e7ef31078de261ea847;hp=af852ecd16aa8b16409be33672febe5eb3e3d2a7;hb=a95d300f6b66d3354ebb86923f178c919ed86bb1;hpb=b93481dd06838228ea44b7e336e14e8aa6abec75
>
> Best regards,
> --Edwin
>
Thank you very much ..... I'm newbie....how to apply this patch??

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
Re: corrupt or unknown clamd scanner error or memory/resource/perms problem [ In reply to ]
Il 17/11/2010 16:25, Török Edwin ha scritto:
> On Wed, 17 Nov 2010 16:20:26 +0100
> Cristina Tanzi Tolenti<cristina.tanzitolenti@provincia.cremona.it>
> wrote:
>
>> Il 17/11/2010 15:40, Török Edwin ha scritto:
>>> On Wed, 17 Nov 2010 15:11:37 +0100
>>> Cristina Tanzi Tolenti<cristina.tanzitolenti@provincia.cremona.it>
>>> wrote:
>>>
>>>> Hi!
>>>>
>>>> I am using qmail+qmailscanner and I am getting clamdscan: corrupt
>>>> or unknown clamd scanner error or memory/resource/perms problem
>>>> when I send a pdf file. If I set ScanPDF no I don't have the
>>>> problem...WHY???
>>> Does this patch help?
>>> http://git.clamav.net/gitweb?p=clamav-devel.git;a=blobdiff;f=libclamav/pdf.c;h=6ff503f756ca68e90a294e7ef31078de261ea847;hp=af852ecd16aa8b16409be33672febe5eb3e3d2a7;hb=a95d300f6b66d3354ebb86923f178c919ed86bb1;hpb=b93481dd06838228ea44b7e336e14e8aa6abec75
>>>
>>> Best regards,
>>> --Edwin
>>>
>> Thank you very much ..... I'm newbie....how to apply this patch??
>>
> $ cd /path/to/clamav/source
> $ wget
> "http://git.clamav.net/gitweb?p=clamav-devel.git;a=blobdiff_plain;f=libclamav/pdf.c;h=6ff503f756ca68e90a294e7ef31078de261ea847;hp=af852ecd16aa8b16409be33672febe5eb3e3d2a7;hb=a95d300f6b66d3354ebb86923f178c919ed86bb1;hpb=b93481dd06838228ea44b7e336e14e8aa6abec7"
> -O pdf.patch
> $ patch -p1< pdf.patch
> $ make
> # make install
>
> Best regards,
> --Edwin
>
Unfortunately the patch don't help ..... :-(
I have the same error .... clamd.log Can't write to file ERROR and
maillog.log clamdscan: corrupt or unknown clamd scanner error or
memory/resource/perms problem
Thank you

Cristina


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
Re: corrupt or unknown clamd scanner error or memory/resource/perms problem [ In reply to ]
On Thu, 18 Nov 2010 10:09:22 +0100
Cristina Tanzi Tolenti <cristina.tanzitolenti@provincia.cremona.it>
wrote:

> Il 17/11/2010 16:25, Török Edwin ha scritto:
> > On Wed, 17 Nov 2010 16:20:26 +0100
> > Cristina Tanzi Tolenti<cristina.tanzitolenti@provincia.cremona.it>
> > wrote:
> >
> >> Il 17/11/2010 15:40, Török Edwin ha scritto:
> >>> On Wed, 17 Nov 2010 15:11:37 +0100
> >>> Cristina Tanzi Tolenti<cristina.tanzitolenti@provincia.cremona.it>
> >>> wrote:
> >>>
> >>>> Hi!
> >>>>
> >>>> I am using qmail+qmailscanner and I am getting clamdscan: corrupt
> >>>> or unknown clamd scanner error or memory/resource/perms problem
> >>>> when I send a pdf file. If I set ScanPDF no I don't have the
> >>>> problem...WHY???
> >>> Does this patch help?
> >>> http://git.clamav.net/gitweb?p=clamav-devel.git;a=blobdiff;f=libclamav/pdf.c;h=6ff503f756ca68e90a294e7ef31078de261ea847;hp=af852ecd16aa8b16409be33672febe5eb3e3d2a7;hb=a95d300f6b66d3354ebb86923f178c919ed86bb1;hpb=b93481dd06838228ea44b7e336e14e8aa6abec75
> >>>
> >>> Best regards,
> >>> --Edwin
> >>>
> >> Thank you very much ..... I'm newbie....how to apply this patch??
> >>
> > $ cd /path/to/clamav/source
> > $ wget
> > "http://git.clamav.net/gitweb?p=clamav-devel.git;a=blobdiff_plain;f=libclamav/pdf.c;h=6ff503f756ca68e90a294e7ef31078de261ea847;hp=af852ecd16aa8b16409be33672febe5eb3e3d2a7;hb=a95d300f6b66d3354ebb86923f178c919ed86bb1;hpb=b93481dd06838228ea44b7e336e14e8aa6abec7"
> > -O pdf.patch
> > $ patch -p1< pdf.patch
> > $ make
> > # make install
> >
> > Best regards,
> > --Edwin
> >
> Unfortunately the patch don't help ..... :-(
> I have the same error .... clamd.log Can't write to file ERROR and
> maillog.log clamdscan: corrupt or unknown clamd scanner error or
> memory/resource/perms problem

Then that is a different problem.
Do you have enough space on /tmp?
Can you run 'clamscan pdffile.pdf', and tell us what error it outputs?

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
Re: corrupt or unknown clamd scanner error or memory/resource/perms problem [ In reply to ]
> Then that is a different problem.
> Do you have enough space on /tmp?
> Can you run 'clamscan pdffile.pdf', and tell us what error it outputs?
>
> Best regards,
> --Edwin
>
Yes I have enough space.... /tmp is in the same filesystem of /


root@mail tmp]# clamdscan Area_Aspice_10k.pdf
/tmp/Area_Aspice_10k.pdf: Can't write to file ERROR

----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 3.139 sec (0 m 3 s)


Thanks
Cristina

--
-------------------------------------------------
Cristina Tanzi Tolenti
CED - Provincia di Cremona
C.so V.Emanuele II, 17 - 26100 Cremona
tel. 0372/406362 - fax 0372/406301
e-mail cristina.tanzitolenti@provincia.cremona.it
-------------------------------------------------

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
Re: corrupt or unknown clamd scanner error or memory/resource/perms problem [ In reply to ]
On Thu, 18 Nov 2010 11:26:25 +0100
Cristina Tanzi Tolenti <cristina.tanzitolenti@provincia.cremona.it>
wrote:

>
> > Then that is a different problem.
> > Do you have enough space on /tmp?
> > Can you run 'clamscan pdffile.pdf', and tell us what error it
> > outputs?
> >
> > Best regards,
> > --Edwin
> >
> Yes I have enough space.... /tmp is in the same filesystem of /
>
>
> root@mail tmp]# clamdscan Area_Aspice_10k.pdf
> /tmp/Area_Aspice_10k.pdf: Can't write to file ERROR

Please open a bug at bugs.clamav.net, and attach that file, and the
full output of 'clamscan --debug Area_Aspice_10k.pdf 2>log' (the file
'log'). Note that you need to use clamscan for --debug, not clamdscan.

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
Re: corrupt or unknown clamd scanner error or memory/resource/perms problem [ In reply to ]
Il 18/11/2010 12:00, Török Edwin ha scritto:
> On Thu, 18 Nov 2010 11:26:25 +0100
> Cristina Tanzi Tolenti<cristina.tanzitolenti@provincia.cremona.it>
> wrote:
>
>>> Then that is a different problem.
>>> Do you have enough space on /tmp?
>>> Can you run 'clamscan pdffile.pdf', and tell us what error it
>>> outputs?
>>>
>>> Best regards,
>>> --Edwin
>>>
>> Yes I have enough space.... /tmp is in the same filesystem of /
>>
>>
>> root@mail tmp]# clamdscan Area_Aspice_10k.pdf
>> /tmp/Area_Aspice_10k.pdf: Can't write to file ERROR
> Please open a bug at bugs.clamav.net, and attach that file, and the
> full output of 'clamscan --debug Area_Aspice_10k.pdf 2>log' (the file
> 'log'). Note that you need to use clamscan for --debug, not clamdscan.
>
> Best regards,
> --Edwin
>
I solved!!!
My problem was the clamd.conf....it was an old version so it doesn't set
correctly the MaxFileSize
thank you and excuse me!!
Cristina


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml