• 8.5.1 Server Crash - scanning mail

    By Paul Thorne 1 decade ago

    Server crashes with NSD when email attachments are scanned by command line scanner through mailscan server task.



    Using debug version (which I recompiled) reports a debug assertion failure inside the DUP2 function. Last debug output is the commandline that is about to be called (LN1134 of ProcessNote.c). The first call to DUP2 is made just after the virus scanner finishes. AV scanner is ESET NOD32 (ecls.exe command line scanner). Copying the AV command text from the debug output and running it from the command line proves successfull.



    Windows Server 2003

    Domino 8.5.1

    NOD32 V4



    May happen on other server versions, but cannot test myself.



    Following the debug assertion the server NSDs. Production version just NSDs when server receieves mail with attachments. Makes the program unusable, hence high severity.

    • Update - Solved

      By Paul Thorne 1 decade ago

      Hi again,



      Found a solution I think (worked for me anyway)



      Change line 1146 from "if (scanout != NULL)" to "if (scanout != NULL && reportswitch > 1)". This isn't really a solution because scanout should be NULL, but this additional test did the trick. Should point out that i have reporting switch off (so reportswitch is 0). Looks like scanout may not be initialised? I didn't check.



      One other issue I found with ESET Nod32 is that is didn't like having additional "" marks around it. Changed the command line to exclude them and it works. For example, the output to the command system WAS:

      IF 1==1 ""ecls.exe" –no-boots –scan-timeout=20 –sfx –rtp –adware –pattern –heur –adv-heur –action=clean –no-quarantine "F:\Lotus\Domino\data\MailScan\10662\1""

      is NOW

      IF 1==1 "ecls.exe" –no-boots –scan-timeout=20 –sfx –rtp –adware –pattern –heur –adv-heur –action=clean –no-quarantine "F:\Lotus\Domino\data\MailScan\10662\1"



      Just a head up. There is also an assertion failure in your stristr code. Couldn't be bothered finding it. release copy works of course, but fails to add text to the body of the document. This I can live without for the time being. Adding text to the subject is working. Could be another issue, but didn't have time.



      Thanks, Paul.

      • scanout is initialized with 1

        By Hans-Georg Franke 1 decade ago

        Hi,

        you are right. The variable "scanout" is initialized with 1 (for stdout), Therefore you have to add the additional clause.

        Do you have the possibility to build a new version (Windows and Linux)?

        Greetings

        Hans-Georg