[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spamassassin-devel
Subject:    [Bug 6482] New: spamd crash when run under Windows x64
From:       bugzilla-daemon () issues ! apache ! org
Date:       2010-08-11 7:59:39
Message-ID: bug-6482-26 () https ! issues ! apache ! org/SpamAssassin/
[Download RAW message or body]

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6482

           Summary: spamd crash when run under Windows x64
           Product: Spamassassin
           Version: 3.3.1
          Platform: PC
        OS/Version: Windows 7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: spamc/spamd
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: lemke@jam-software.com


I was just able to work around a bug with a specific dll when SpamAssassin is
executed under a Win x64 system.

I'm aware that it's not a SpamAssassin bug but I guess that users having that
issue will have a look here first (so it should give them some information, at
least).

Steps to reproduce:
- Use a x64 Windows
- Install Perl (x86) (I tested Strawberry 5.10, 5.12 and ActivePerl 5.8.8,
5.8.9, 5.10, 5.12)
- Install SpamAssassin
- Start spamd with a small --max-spare (e.g. 1) and -m 10 or so.
- Let it process several mails at once so spamd will have to start couple of
new children.

When processing is finished, spamd will kill most children. This will cause the
interpreter to unload a dll, called IPHLPAPI.dll. Now, any call to that dll
(dns resolves, etc.) will cause spamd to crash.

I added the following call in spamd spawn() sub to "fix" it:
  $pid = fork();
  die "spamd: fork: $!" unless defined $pid;
  Win32::LoadLibrary("Iphlpapi");

I'm not yet sure where I do have to report this. It may be a problem of Perl or
of Microsoft's concept in 64-bit systems, where they have something like a
layer virtual box for x86 processes that links to the corresponding x64
libraries.


Daniel

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic