[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-26 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #59 from RvdH --- (In reply to Bill Cole from comment #58) > (In reply to RvdH from comment #57) > > No crash but something i noticed as soon as i turned off --debug logging > > > > warn: plugin: eval failed:

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-26 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Bill Cole changed: What|Removed |Added CC||billc...@apache.org --- Comment #58

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-23 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #57 from RvdH --- No crash but something i noticed as soon as i turned off --debug logging warn: plugin: eval failed: __alarm__ignore__(532/::PerMsgStatus::check/2063) Fri Sep 23 13:29:23 2022 [-4728] info: spamd: connection

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-19 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #56 from Henrik Krohns --- (In reply to RvdH from comment #55) > Can i still ask questions when possible issues with 4.0.0-rc2 arise on > Windows? > > When running with --debug is see a line, like: > Mon Sep 19 11:55:18 2022

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-19 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #55 from RvdH --- Can i still ask questions when possible issues with 4.0.0-rc2 arise on Windows? When running with --debug is see a line, like: Mon Sep 19 11:55:18 2022 [4276] dbg: eval: failed to locate the triplets.txt file

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-18 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Sidney Markowitz changed: What|Removed |Added Resolution|--- |MOVED Status|NEW

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-18 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #53 from Henrik Krohns --- (In reply to RvdH from comment #52) > Henrik are going to make a separate bug concerning the global_state_dir on > Windows? Bug #8050 -- You are receiving this mail because: You are the assignee for

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-17 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #52 from RvdH --- (In reply to Henrik Krohns from comment #41) > (In reply to RvdH from comment #40) > > For global_state_dir that is :-) > > Yes portable_getpwuid should not return home for all users. > > There is no

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #51 from Sidney Markowitz --- (In reply to Loren Wilton from comment #49) > All of these methods allow passing parameters to spamd, and setting the home > directory for spamd. I'll include all these suggestions in the wiki page

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #50 from RvdH --- (In reply to RvdH from comment #48) > M, OK > Although executables are preferred, especially for spamd.exe to be able to > make it run like a service using something like nssm, https://nssm.cc/usage > >

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Loren Wilton changed: What|Removed |Added CC|lwil...@earthlink.net | -- You are receiving this mail

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Loren Wilton changed: What|Removed |Added CC||lwil...@earthlink.net --- Comment

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #48 from RvdH --- M, OK Although executables are preferred, especially for spamd.exe to be able to make it run like a service using something like nssm, https://nssm.cc/usage How did the people at JAM Software create those

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #47 from Sidney Markowitz --- (In reply to RvdH from comment #46) And is is it worth to also have sa-compile as executable? (JAM also lacks > this) All the executables except spamc are perl scripts, which on Unix and macOS the

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #46 from RvdH --- Ah, that explains...I tried to build with nmake like the wiki said, I will try your build instructions tomorrow (if I have the time) JAM package also has executables for sa-learn and sa-update, how did they

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Sidney Markowitz changed: What|Removed |Added Target Milestone|4.0.0 |Undefined

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #45 from Sidney Markowitz --- I've created bug 8047 "MSG_DONTWAIT error in DnsResolver on Windows" with v4 corrected patch ready for voting. And bug 8048 "Make default setting for *_fork config options 0 on Windows" with the

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #44 from Sidney Markowitz --- (In reply to Henrik Krohns from comment #38) > > version 3, now with fewer typos! > > I think the logic has bug.. .. > Both should be unless(RECV_FLAGS) so the blocking is correctly unset and set?

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #43 from RvdH --- (In reply to RvdH from comment #42) > (In reply to Henrik Krohns from comment #41) > > (In reply to RvdH from comment #40) > > > For global_state_dir that is :-) > > > > Yes portable_getpwuid should not return

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #42 from RvdH --- (In reply to Henrik Krohns from comment #41) > (In reply to RvdH from comment #40) > > For global_state_dir that is :-) > > Yes portable_getpwuid should not return home for all users. > > There is no

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #41 from Henrik Krohns --- (In reply to RvdH from comment #40) > For global_state_dir that is :-) Yes portable_getpwuid should not return home for all users. There is no ALLUSERSAPPDATA set on my Windows. I do have

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #40 from RvdH --- (In reply to RvdH from comment #39) > (In reply to Henrik Krohns from comment #35) > > I see ArchiveIterator.pm has it's own workarounds > > > > # No $HOME set? Try to find it, portably. > >

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #39 from RvdH --- (In reply to Henrik Krohns from comment #35) > I see ArchiveIterator.pm has it's own workarounds > > # No $HOME set? Try to find it, portably. > unless ($home) { > if

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #38 from Henrik Krohns --- (In reply to Sidney Markowitz from comment #24) > Created attachment 5822 [details] > MSG_DONTWAIT workaround for Windows in DnsResolver, v3 > > version 3, now with fewer typos! I think the logic has

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #37 from RvdH --- (In reply to Henrik Krohns from comment #35) > Sorry this bug starts to get messy with multiple problems and patches. > Hopefully Sidney or someone can sort these out to maybe own bugs for easier > voting.

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #36 from RvdH --- (In reply to RvdH from comment #34) > default = user home > > FYI, when not specified, user home on Windows automatically uses: > C:\Windows\System32\config\systemprofile > > This can problematic with windows

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #35 from Henrik Krohns --- I see ArchiveIterator.pm has it's own workarounds # No $HOME set? Try to find it, portably. unless ($home) { if (!Mail::SpamAssassin::Util::am_running_on_windows()) {

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #34 from RvdH --- default = user home FYI, when not specified, user home on Windows automatically uses: C:\Windows\System32\config\systemprofile This can problematic with windows updates (i had this in the past with 3.4.x) as

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #33 from Henrik Krohns --- To clarify, global state dir was created to be able to keep state for things at highest possible shared level across SA processes. Currently it's only used for dns_block_rule state files (for example

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #32 from Henrik Krohns --- (In reply to RvdH from comment #31) > when running spamassassin --lint --debug a folder "C:\.spamassassin" is > created automatically, eg: > Sep 14 23:23:52.629 [3804] dbg: config: global_state_dir set

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #31 from RvdH --- when running spamassassin --lint --debug a folder "C:\.spamassassin" is created automatically, eg: Sep 14 23:23:52.629 [3804] dbg: config: global_state_dir set to \\.spamassassin What is this new

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #30 from RvdH --- (In reply to RvdH from comment #29) > (In reply to Sidney Markowitz from comment #27) > > (In reply to RvdH from comment #25) > > > patched my way around it using "Jam Software > > > SpamAssassin for Windows

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #29 from RvdH --- (In reply to Sidney Markowitz from comment #27) > (In reply to RvdH from comment #25) > > patched my way around it using "Jam Software > > SpamAssassin for Windows 3.4.4" download as base. > > Oh, so you just

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #28 from RvdH --- needed: - SpamAssassinForWindows-v3.4.4-x64.zip - strawberry-perl-5.30.0.1-64bit.msi = perl -MCPAN -e shell install Archive::Zip force install

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #27 from Sidney Markowitz --- (In reply to RvdH from comment #25) > patched my way around it using "Jam Software > SpamAssassin for Windows 3.4.4" download as base. Oh, so you just use their exe and substituted the current

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #26 from RvdH --- (In reply to Sidney Markowitz from comment #24) > Created attachment 5822 [details] > MSG_DONTWAIT workaround for Windows in DnsResolver, v3 > > version 3, now with fewer typos! Have applied the patch and am

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-16 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #25 from RvdH --- @Sidney As mentioned earlier in this topic i haven't been able to successfully build a Windows version myself but patched my way around it using "Jam Software SpamAssassin for Windows 3.4.4" download as base.

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Sidney Markowitz changed: What|Removed |Added Attachment #5821|0 |1 is obsolete|

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #23 from Sidney Markowitz --- And, even more mistakes... I ran tests on Windows that I thought exercised the code, then discovered that it only did enough to fid compilation errors. v3 coming up after I complete real tests on

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Sidney Markowitz changed: What|Removed |Added Attachment #5820|0 |1 is obsolete|

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Sidney Markowitz changed: What|Removed |Added Severity|normal |blocker Target

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #20 from Sidney Markowitz --- Created attachment 5820 --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5820=edit MSG_DONTWAIT workaround for Windows in DnsResolver Henrik, I decided to take a shot at it anyway, but

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #19 from Sidney Markowitz --- (In reply to RvdH from comment #17) >I am more than happy to test it Ruud, could you update the wiki instructions on building spamd on Windows to include whatever you did to build it? That way I

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #18 from Sidney Markowitz --- Henrik, flush_responses in DnsResolver.pm is your code and I'm not that familiar with socket stuff. I have confirmed that MSG_DONTWAIT doesn't exist in Windows perl versions. As a macro, it looks

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #17 from RvdH --- I'm not much of a perl coder, so if anyone can update/patch 4.0.0rc2 DnsResolver.pm (which introduced MSG_DONTWAIT, as this is not in 3.4.x) to include the workaround suggested in the RedisDB example posted

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #16 from RvdH --- Appears Windows don't have MSG_DONTWAIT, so looks like a need to switch socket into non-blocking mode, example: https://github.com/p5-RedisDB/RedisDB/blob/master/lib/RedisDB.pm#L423-L442 -- You are receiving

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #15 from RvdH --- (In reply to RvdH from comment #10) > Got another error just now > > Thu Sep 15 14:45:40 2022 [-4780] info: spamd: connection from server.com > [127.0.0.1]:50699 to port 783, fd 6 > Thu Sep 15 14:45:40

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #14 from RvdH --- Hold on, think i might be responsible for that error, was testing some things Henrik says are impossible to do, see https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8046 -- You are receiving this mail

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #13 from RvdH --- Perl 5.03 (as that was what the orginal JAM Windows version was build with) -- You are receiving this mail because: You are the assignee for the bug.

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #12 from Sidney Markowitz --- (In reply to RvdH from comment #10) > Your vendor has not defined Socket macro MSG_DONTWAIT Which version of perl are you running? -- You are receiving this mail because: You are the assignee for

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #11 from Sidney Markowitz --- Created attachment 5819 --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5819=edit patch to make default for pyzor_fork and razor_fork 0 on Windows. Mention in perldoc Here's a proposed

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #10 from RvdH --- Got another error just now Thu Sep 15 14:45:40 2022 [-4780] info: spamd: connection from server.com [127.0.0.1]:50699 to port 783, fd 6 Thu Sep 15 14:45:40 2022 [-4780] info: spamd: processing message for

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #9 from Henrik Krohns --- (In reply to Sidney Markowitz from comment #7) > (In reply to Henrik Krohns from comment #5) > > The fork() limitations are well documented for Windows: > > https://perldoc.perl.org/perlfork > > > > As

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #8 from Sidney Markowitz --- (In reply to RvdH from comment #6) > FYI, I tried to build my own Windows version, but build instructions for > Windows all seem outdated, and couldn't make it work so i gave up on that. We haven't

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Sidney Markowitz changed: What|Removed |Added CC||sid...@sidney.com --- Comment

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-15 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #6 from RvdH --- (In reply to Henrik Krohns from comment #5) > The fork() limitations are well documented for Windows: > https://perldoc.perl.org/perlfork > > As we now have a real tester with results, it might be prudent to

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-14 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #5 from Henrik Krohns --- The fork() limitations are well documented for Windows: https://perldoc.perl.org/perlfork As we now have a real tester with results, it might be prudent to set all *_fork defaults as 0 on Windows. --

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-14 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Kevin A. McGrail changed: What|Removed |Added CC||kmcgr...@apache.org --- Comment

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-14 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 --- Comment #3 from RvdH --- (In reply to Henrik Krohns from comment #1) > Perhaps try "razor_fork 0" setting if it makes a difference. Default forks a > parallel process, maybe something funky there. razor_fork 0 seems to fix this issue

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-14 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 RvdH changed: What|Removed |Added CC||ruud.vd.h...@gmail.com --- Comment #2 from

[Bug 8044] 4.0.0 RC2 crash on Windows

2022-09-14 Thread bugzilla-daemon
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044 Henrik Krohns changed: What|Removed |Added CC||apa...@hege.li --- Comment #1 from