[Rspamd-Users] Rspamd 2.0 has been released

Neting webmaster at neting.com
Tue Oct 22 03:33:52 UTC 2019


YES, converting from the encoding "ISO-8859-1", the problem is solved in 
my server.

To detect the charset:
--------------------------------------------------------------------------------------------
php -r "echo 'probably : ' . 
mb_detect_encoding(file_get_contents('/etc/rspamd/spam-rules/rules'), 
'UTF-8, ASCII, JIS, EUC-JP, SJIS, iso-8859-1') . PHP_EOL;"
--------------------------------------------------------------------------------------------

To convert the file '/etc/rspamd/spam-rules/rules' to a utf-8 file 
'/etc/rspamd/spam-rules/rules2':
--------------------------------------------------------------------------------------------
iconv -f ISO-8859-1 -t utf-8 -o /etc/rspamd/spam-rules/rules2 
/etc/rspamd/spam-rules/rules
--------------------------------------------------------------------------------------------

I had disabled the spamassassin rules file, commenting "ruleset" 
variable in file /etc/rspamd/local.d/spamassassin.conf, the problem 
vanished too:
--------------------------------------------------------------------------------------------
# ruleset = "/etc/rspamd/spam-rules/rules";
--------------------------------------------------------------------------------------------

But is better with the first solution, because preserve the spamassassin 
ruleset.

Regards,
Netino


Em 21/10/2019 11:34, Vsevolod Stakhov escreveu:
> On 21/10/2019 12:07, Aste wrote:
>> Hello,
>> 
>> After  some  research  I  found  that  crash  is caused by 
>> spamassassin
>> module, in case when non English character is presented in regexp.
>> 
>> spamassassin rule which can cause crash attached.
>> 
>> 
>> 
>> Monday, October 14, 2019, 3:27:02 PM, you wrote:
>> 
>> A> Hi!
>> 
>> A> Friday, October 11, 2019, 8:00:58 PM, you wrote:
>> VS>> We have released Rspamd 2.0 today!
>> 
>> VS>> Upgrade notes
>> 
>> VS>> There are various important features in this release. The vast 
>> majority
>> VS>> of those should not have any visible impact on the existing 
>> systems.
>> VS>> However, you are recommended to read the Upgrade Notes.
>> 
>> A> After upgrading from, 1.94 to 2.0 I started repeatedly getting 
>> errors:
>> 
>> A> 2019-10-14 14:09:01 #4014(hs_helper) <805264>; main;
>> A> rspamd_fork_worker: starting hs_helper process 4014 (0)
>> A> 2019-10-14 14:09:04 #4014(hs_helper) glib;
>> A> rspamd_glib_printerr_function: **
>> A> 
>> ERROR:/rspamd-2.0/src/libutil/str_util.c:2812:rspamd_str_regexp_escape: 
>> assertion failed: (d < dend)
>> A> 2019-10-14 14:09:04 #4014(hs_helper) rspamd_crash_sig_handler:
>> A> caught fatal signal 6(Aborted), pid: 4014, trace:
>> 
>> A> any ideas where to look?
>> A> OS Ubuntu 18.04.3 LTS
> 
> This regexp is broken. Never EVER use anything but utf8 in regular
> expressions in Rspamd. I cannot reproduce crash btw with the current
> master. Anyway, a broken regexp means broken behaviour...


More information about the Users mailing list