Bug 1216830

Summary: rpamd: crashes on start on aarch64
Product: [openSUSE] openSUSE Tumbleweed Reporter: Adam Majer <amajer>
Component: OtherAssignee: Bernhard Wiedemann <bwiedemann>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: asn, wolfgang
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1217608    

Description Adam Majer 2023-11-02 15:29:16 UTC
this basically runs `rspamd -f` with default config.

It's using latest Tumbleweed container image and running on Leap Micro on aarch64 with `zypper in rspamd`. Works fine on x86_64.

# podman run -it --rm localhost/rspamd:latest
2023-11-02 15:21:52 #1(main) <957c11>; main; main: rspamd 3.7.3 is loading configuration, build id: release
(main) lua; lua_cfg_transform.lua:173: group excessb64 has no symbols*** stack smashing detected ***: terminated
Stack trace (most recent call last):
#24   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#23   Object "/usr/bin/rspamd", at 0xaaaacffad76f, in 
#22   Object "/lib64/libc.so.6", at 0xffffb06cb61f, in __libc_start_main
#21   Object "/lib64/libc.so.6", at 0xffffb06cb54b, in 
#20   Object "/usr/bin/rspamd", at 0xaaaacffacb2b, in 
#19   Object "/usr/bin/rspamd", at 0xaaaacffc103b, in 
#18   Object "/lib64/librspamd-server.so", at 0xffffb0e3c5bf, in rspamd_config_read
#17   Object "/lib64/librspamd-server.so", at 0xffffb0e35107, in rspamd_rcl_maybe_apply_lua_transform
#16   Object "/lib64/liblua5.4.so.5", at 0xffffb0c9431f, in lua_pcallk
#15   Object "/lib64/liblua5.4.so.5", at 0xffffb0cb2697, in 
#14   Object "/lib64/liblua5.4.so.5", at 0xffffb0c8e107, in 
#13   Object "/lib64/liblua5.4.so.5", at 0xffffb0c941f3, in 
#12   Object "/lib64/liblua5.4.so.5", at 0xffffb0ca0d1b, in 
#11   Object "/lib64/liblua5.4.so.5", at 0xffffb0c93713, in 
#10   Object "/lib64/librspamd-server.so", at 0xffffb0fe0863, in 
#9    Object "/lib64/librspamd-server.so", at 0xffffb0f23553, in 
#8    Object "/lib64/librspamd-server.so", at 0xffffb0e8c74b, in rspamd_common_log_function
#7    Object "/lib64/librspamd-server.so", at 0xffffb0e8c553, in rspamd_common_logv
#6    Object "/lib64/librspamd-server.so", at 0xffffb0e8f93b, in rspamd_log_console_log
#5    Object "/lib64/libc.so.6", at 0xffffb07a77b7, in __stack_chk_fail
#4    Object "/lib64/libc.so.6", at 0xffffb07a676f, in __fortify_fail
#3    Object "/lib64/libc.so.6", at 0xffffb071e84b, in 
#2    Object "/lib64/libc.so.6", at 0xffffb06cae07, in abort
#1    Object "/lib64/libc.so.6", at 0xffffb06dfbff, in raise
#0    Object "/lib64/libc.so.6", at 0xffffb072b430, in 
Aborted (Signal sent by tkill() 1 498)
watf? exit

could be related to this,
https://github.com/rspamd/rspamd/issues/3849
Comment 1 Adam Majer 2023-11-02 15:34:22 UTC
This is the version that segfaults on start,

Information for package rspamd:
-------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : rspamd
Version        : 3.7.3-1.1
Arch           : aarch64
Vendor         : openSUSE
Installed Size : 11.4 MiB

Few weeks ago, this is the version that didn't segfault on start,

Information for package rspamd:
-------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : rspamd
Version        : 3.6-1.1
Arch           : aarch64
Vendor         : openSUSE
Installed Size : 11.2 MiB
Comment 2 OBSbugzilla Bot 2023-12-08 10:55:03 UTC
This is an autogenerated message for OBS integration:
This bug (1216830) was mentioned in
https://build.opensuse.org/request/show/1132069 Factory / rspamd
https://build.opensuse.org/request/show/1132070 Backports:SLE-15-SP5 / rspamd
https://build.opensuse.org/request/show/1132071 Backports:SLE-15-SP6 / rspamd
Comment 3 Adam Majer 2023-12-08 12:18:56 UTC
Fixes submitted
Comment 4 Marcus Meissner 2024-01-03 14:05:29 UTC
openSUSE-RU-2024:0004-1: An update that has one recommended fix can now be installed.

Category: recommended (important)
Bug References: 1216830
CVE References: 
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP5 (src):    rspamd-3.7.4-bp155.2.6.1