Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 747274 - mail-filter/rspamd-2.6 rspamd_proxy process 8089 terminated abnormally
Summary: mail-filter/rspamd-2.6 rspamd_proxy process 8089 terminated abnormally
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Christian Roessner
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-10-08 07:40 UTC by Norman Rieß
Modified: 2020-10-09 04:21 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Rieß 2020-10-08 07:40:33 UTC
rspamd loop crashes constantly:

2020-10-08 09:20:29 #8088(controller) rspamd_crash_sig_handler: caught fatal signal 6(Abgebrochen), pid: 8088, trace:
    2020-10-08 09:20:29 #8088(controller) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report
    2020-10-08 09:20:29 #7887(main) <7cb4a0>; main; rspamd_check_termination_clause: controller process 8088 terminated abnormally with exit code 0 by signal: Abgebrochen but NOT created core file (throttled=no); core file limits: 0 current, -1 max
    2020-10-08 09:20:29 #7887(main) <7cb4a0>; main; rspamd_cld_handler: respawn process controller in lieu of terminated process with pid 8088
    2020-10-08 09:20:30 #8089(rspamd_proxy) rspamd_crash_sig_handler: caught fatal signal 6(Abgebrochen), pid: 8089, trace:
    2020-10-08 09:20:30 #8089(rspamd_proxy) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report
    2020-10-08 09:20:30 #7887(main) <7cb4a0>; main; rspamd_check_termination_clause: rspamd_proxy process 8089 terminated abnormally with exit code 0 by signal: Abgebrochen but NOT created core file (throttled=no); core file limits: 0 current, -1 max
    2020-10-08 09:20:30 #7887(main) <7cb4a0>; main; rspamd_cld_handler: respawn process rspamd_proxy in lieu of terminated process with pid 8089
    2020-10-08 09:20:31 #7887(main) <7cb4a0>; main; rspamd_fork_worker: prepare to fork process controller (0); listen on: localhost:11334
    2020-10-08 09:20:31 #8122(controller) <7cb4a0>; main; rspamd_worker_set_limits: use system max file descriptors limit: 1024B cur and 4KiB max
    2020-10-08 09:20:31 #8122(controller) <7cb4a0>; main; rspamd_worker_set_limits: use system max core size limit: 0B cur and -1B max
    2020-10-08 09:20:31 #8122(controller) <7cb4a0>; main; rspamd_handle_child_fork: starting controller process 8122 (0); listen on: localhost:11334

Reverting to rspamd-2.5 fixes the issue.
Comment 1 RUSPRG 2020-10-08 16:59:56 UTC
2020-10-08 21:55:16 #22929(rspamd_proxy) rspamd_crash_sig_handler: caught fatal signal 11(Ошибка сегментирования), pid: 22929, trace:
2020-10-08 21:55:16 #22929(rspamd_proxy) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report
2020-10-08 21:55:16 #22888(main) <5ac5f3>; main; rspamd_check_termination_clause: rspamd_proxy process 22929 terminated abnormally with exit code 0 by signal: Ошибка сегментирования but NOT created core f
ile (throttled=no); core file limits: 0 current, -1 max
2020-10-08 21:55:16 #22888(main) <5ac5f3>; main; rspamd_cld_handler: respawn process rspamd_proxy in lieu of terminated process with pid 22929
2020-10-08 21:55:17 #22932(fuzzy) rspamd_crash_sig_handler: caught fatal signal 11(Ошибка сегментирования), pid: 22932, trace:
2020-10-08 21:55:17 #22932(fuzzy) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report
2020-10-08 21:55:17 #22888(main) <5ac5f3>; main; rspamd_check_termination_clause: fuzzy process 22932 terminated abnormally with exit code 0 by signal: Ошибка сегментирования but NOT created core file (th
rottled=no); core file limits: 0 current, -1 max
2020-10-08 21:55:17 #22888(main) <5ac5f3>; main; rspamd_cld_handler: respawn process fuzzy in lieu of terminated process with pid 22932
2020-10-08 21:55:17 #22931(normal) rspamd_crash_sig_handler: caught fatal signal 11(Ошибка сегментирования), pid: 22931, trace:
2020-10-08 21:55:17 #22931(normal) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report
2020-10-08 21:55:17 #22888(main) <5ac5f3>; main; rspamd_check_termination_clause: normal process 22931 terminated abnormally with exit code 0 by signal: Ошибка сегментирования but NOT created core file (t
hrottled=no); core file limits: 0 current, -1 max
2020-10-08 21:55:17 #22888(main) <5ac5f3>; main; rspamd_cld_handler: respawn process normal in lieu of terminated process with pid 22931
2020-10-08 21:55:17 #22933(normal) rspamd_crash_sig_handler: caught fatal signal 11(Ошибка сегментирования), pid: 22933, trace:
2020-10-08 21:55:17 #22933(normal) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report
2020-10-08 21:55:17 #22930(controller) rspamd_crash_sig_handler: caught fatal signal 11(Ошибка сегментирования), pid: 22930, trace:
2020-10-08 21:55:17 #22930(controller) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report
2020-10-08 21:55:17 #22888(main) <5ac5f3>; main; rspamd_check_termination_clause: normal process 22933 terminated abnormally with exit code 0 by signal: Ошибка сегментирования but NOT created core file (t
hrottled=no); core file limits: 0 current, -1 max
2020-10-08 21:55:17 #22888(main) <5ac5f3>; main; rspamd_cld_handler: respawn process normal in lieu of terminated process with pid 22933
2020-10-08 21:55:17 #22888(main) <5ac5f3>; main; rspamd_check_termination_clause: controller process 22930 terminated abnormally with exit code 0 by signal: Ошибка сегментирования but NOT created core fil
e (throttled=no); core file limits: 0 current, -1 max


The error occurs in the mail-filter/rspamd-2 and dev-db/redis. When redis is disabled, the program works.
Comment 2 Petr Vaněk gentoo-dev 2020-10-08 18:00:06 UTC
It seems to be related with my change of unbundling hiredis from rspamd, I will try to fix it.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-08 19:04:06 UTC
(In reply to Petr Vaněk from comment #2)
> It seems to be related with my change of unbundling hiredis from rspamd, I
> will try to fix it.

Could you / the OP retry with the just-pushed hiredis 1.0.0?
Comment 4 Petr Vaněk gentoo-dev 2020-10-08 19:31:53 UTC
I will try it. btw, I was also working on hiredis-1.0.0 today, my ebuild makes available newly introduced ssl support, see https://github.com/arkamar/gentoo/commit/b936d533ce67e880fc8f44b12fc4b194cfa665d5 . I can rebase it on top of current master and create PR.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-08 19:33:46 UTC
(In reply to Petr Vaněk from comment #4)
> I will try it. btw, I was also working on hiredis-1.0.0 today, my ebuild
> makes available newly introduced ssl support, see
> https://github.com/arkamar/gentoo/commit/
> b936d533ce67e880fc8f44b12fc4b194cfa665d5 . I can rebase it on top of current
> master and create PR.

That'd be a great help, thank you!
Comment 6 Petr Vaněk gentoo-dev 2020-10-08 19:37:27 UTC
rspamd fails to work with hiredis-1.0.0 as well.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-08 19:38:41 UTC
(In reply to Petr Vaněk from comment #6)
> rspamd fails to work with hiredis-1.0.0 as well.

OK, this should be reported upstream, but I will merge your PR for now.
Comment 8 Larry the Git Cow gentoo-dev 2020-10-08 19:41:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6323b87561e9cea97fa219c349485e4e2fc8a9b3

commit 6323b87561e9cea97fa219c349485e4e2fc8a9b3
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2020-10-08 18:34:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-08 19:39:37 +0000

    mail-filter/rspamd: use bundled hiredis, bug #747274
    
    System hiredis makes the rspamd subprocesses segfault periodically.
    
    Closes: https://bugs.gentoo.org/747274
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/17852
    Signed-off-by: Sam James <sam@gentoo.org>

 .../rspamd/files/rspamd-2.6-unbundle-hiredis.patch | 93 ----------------------
 .../{rspamd-2.6.ebuild => rspamd-2.6-r1.ebuild}    |  4 +-
 mail-filter/rspamd/rspamd-9999.ebuild              |  4 +-
 3 files changed, 2 insertions(+), 99 deletions(-)
Comment 9 Norman Rieß 2020-10-09 04:21:04 UTC
rspamd-2.6-r1 is working fine.
Thank you.