Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697526 - mail-filter/rspamd-2.1 version bump
Summary: mail-filter/rspamd-2.1 version bump
Status: RESOLVED DUPLICATE of bug 698902
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Christian Roessner
URL: https://rspamd.com/announce/2019/10/2...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-12 05:49 UTC by drserge
Modified: 2019-10-30 21:01 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rspamd-2.0.ebuild (rspamd-2.0.ebuild,2.13 KB, text/plain)
2019-10-21 11:50 UTC, Christian Roessner
Details
2.0-fix-crash-due-to-constructors-init-order.patch (2.0-fix-crash-due-to-constructors-init-order.patch,2.02 KB, application/mbox)
2019-10-21 11:52 UTC, Christian Roessner
Details
rspamd-r7.init (rspamd-r7.init,1.33 KB, text/plain)
2019-10-22 06:33 UTC, Christian Roessner
Details
rspamd-2.0.ebuild (rspamd-2.0.ebuild,2.15 KB, text/plain)
2019-10-22 06:39 UTC, Christian Roessner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description drserge 2019-10-12 05:49:25 UTC
Rspamd major version 2.0 had been released on Oct, 11th 2019.

Reproducible: Always
Comment 1 Kim B. Sindalsen 2019-10-13 19:10:46 UTC
A simple version bump results in Segmentation Fault for me when starting rspamd, haven't tested w/o LTO-enabled yet, though.
Comment 2 Thomas Stein 2019-10-15 16:49:16 UTC
The crash at startup seems to affect a lot of distributions. Maybe gentoo too?
https://github.com/rspamd/rspamd/issues/3079
Comment 3 Christian Roessner 2019-10-21 11:50:48 UTC
Created attachment 593528 [details]
rspamd-2.0.ebuild
Comment 4 Christian Roessner 2019-10-21 11:52:01 UTC
Created attachment 593530 [details]
2.0-fix-crash-due-to-constructors-init-order.patch

Please put this patch file under files/

Can you test this and report back, if that solves the crashes?
Comment 5 Thomas Stein 2019-10-21 14:38:10 UTC
Missing dependency:

-- Found package LIBZ in '/usr/lib' (/usr/lib/libz.so) and '/usr/include' (zlib.h).
-- Checking for one of the modules 'libsodium>=1.0.0'
CMake Error at CMakeLists.txt:427 (MESSAGE):
  Cannot find library sodium for package SODIUM
Call Stack (most recent call first):
  CMakeLists.txt:643 (ProcessPackage)

Installing libsodium. :-)
Comment 6 Thomas Stein 2019-10-21 14:43:59 UTC
hm.

 * ERROR: mail-filter/rspamd-2.0::x-portage failed (install phase):
 *   !!! newinitd: /var/tmp/portage/mail-filter/rspamd-2.0/files/rspamd-r7.init does not exist
 *
Comment 7 Christian Roessner 2019-10-22 06:33:53 UTC
Created attachment 593604 [details]
rspamd-r7.init

That init script uses the correct configtest routine from rspamadm. Please put that file under files/
Comment 8 Christian Roessner 2019-10-22 06:39:28 UTC
Created attachment 593606 [details]
rspamd-2.0.ebuild

Add libsodium deps
Comment 9 Thomas Stein 2019-10-22 07:38:08 UTC
Have it up and running. No crash.
Comment 10 Thomas Stein 2019-10-23 13:45:06 UTC
It seems rspamc is segfaulting with this release.

[424148.689569] rspamc[29414]: segfault at 0 ip 00007fd65b5d4381 sp 00007ffc15e87e10 error 4 in librspamd-server.so[7fd65b5a5000+1b7000]
[424148.689577] Code: c3 0f 1f 84 00 00 00 00 00 41 54 55 48 89 fd 53 48 81 ec 10 01 00 00 64 48 8b 04 25 28 00 00 00 48 89 84 24 08 01 00 00 31 c0 <48> 8b 07 48 85 c0 74 63 48 83 3d 4f 05 25 00 00 74 59 48 8b 48 10
[462653.427612] rspamc[7983]: segfault at 0 ip 00007fcbe3776381 sp 00007ffda21d6920 error 4 in librspamd-server.so[7fcbe3747000+1b7000]
[462653.427620] Code: c3 0f 1f 84 00 00 00 00 00 41 54 55 48 89 fd 53 48 81 ec 10 01 00 00 64 48 8b 04 25 28 00 00 00 48 89 84 24 08 01 00 00 31 c0 <48> 8b 07 48 85 c0 74 63 48 83 3d 4f 05 25 00 00 74 59 48 8b 48 10
[465484.609538] rspamc[8666]: segfault at 0 ip 00007fb253d6b381 sp 00007ffde0f2e4c0 error 4 in librspamd-server.so[7fb253d3c000+1b7000]
[465484.609548] Code: c3 0f 1f 84 00 00 00 00 00 41 54 55 48 89 fd 53 48 81 ec 10 01 00 00 64 48 8b 04 25 28 00 00 00 48 89 84 24 08 01 00 00 31 c0 <48> 8b 07 48 85 c0 74 63 48 83 3d 4f 05 25 00 00 74 59 48 8b 48 10
[495519.377657] rspamc[5759]: segfault at 0 ip 00007f2cba337381 sp 00007ffd4aa405e0 error 4 in librspamd-server.so[7f2cba308000+1b7000]
[495519.377662] Code: c3 0f 1f 84 00 00 00 00 00 41 54 55 48 89 fd 53 48 81 ec 10 01 00 00 64 48 8b 04 25 28 00 00 00 48 89 84 24 08 01 00 00 31 c0 <48> 8b 07 48 85 c0 74 63 48 83 3d 4f 05 25 00 00 74 59 48 8b 48 10
[515499.463358] rspamc[12789]: segfault at 0 ip 00007f8f479c5381 sp 00007ffdcd19dbe0 error 4 in librspamd-server.so[7f8f47996000+1b7000]
[515499.463368] Code: c3 0f 1f 84 00 00 00 00 00 41 54 55 48 89 fd 53 48 81 ec 10 01 00 00 64 48 8b 04 25 28 00 00 00 48 89 84 24 08 01 00 00 31 c0 <48> 8b 07 48 85 c0 74 63 48 83 3d 4f 05 25 00 00 74 59 48 8b 48 10
[515620.317865] rspamc[12840]: segfault at 0 ip 00007fc802352381 sp 00007ffe3ae166c0 error 4 in librspamd-server.so[7fc802323000+1b7000]
Comment 11 Kim B. Sindalsen 2019-10-23 17:12:32 UTC
Confirming rspamc segmentation fault;

Oct 23 19:11:19 mail kernel: rspamc[8043]: segfault at 0 ip 00007f643cc5f4d9 sp 00007ffd0abcb7a0 error 4 in librspamd-server.so[7f643cace000+1b6000]
Oct 23 19:11:19 mail kernel: Code: e8 5c 31 e7 ff 0f 1f 40 00 41 54 55 53 48 89 fd 48 81 ec 10 01 00 00 64 48 8b 04 25 28 00 00 00 48 89 84 24 08 01 00 00 31 c0 <48> 8b 07 48 85 c0 74 5c 48 83 3d 17 82 0e 00 00 74 52 48 8b 50 08
Comment 12 Sven Schwyn (svoop) 2019-10-23 17:48:32 UTC
Maybe related upstream: https://github.com/rspamd/rspamd/issues/3079#issuecomment-541175246
Comment 13 drserge 2019-10-28 16:46:33 UTC
Rspamd version 2.1 have been released.
Comment 14 Thomas Stein 2019-10-29 08:21:03 UTC
Just copied 2.0 ebuild to 2.1, removed the  2.0-fix-crash-due-to-constructors-init-order.patch. Seems to be running. No Segfault whatsoever.
Comment 15 Kim B. Sindalsen 2019-10-29 14:13:06 UTC
Same for me - 2.1-ebuild, removed fix-crash-due-to-constructors-init-order.patch and all seems fine - able to train bayes again w/o segfault :)
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-30 09:25:26 UTC
*** Bug 698902 has been marked as a duplicate of this bug. ***
Comment 17 Dirkjan Ochtman (RETIRED) gentoo-dev 2019-10-30 21:01:01 UTC

*** This bug has been marked as a duplicate of bug 698902 ***