Public bug reported:

With pcre 10.32-5, rspamd starts up just fine. Update pcre to 10.34-3
and this command starts to segfault:

root@focal-rspamd:~# rspamadm configtest
Segmentation fault (core dumped)

This is also happening in debian, see
https://ci.debian.net/data/autopkgtest/unstable/amd64/r/rspamd/3566843/log.gz


Attached is the full backtrace. Here is a glimpse:
#0  0x00007ffff6f8a888 in pcre2_jit_compile_8 (code=0x0, 
options=options@entry=1) at src/pcre2_jit_compile.c:13746
#1  0x00007ffff7ab6663 in rspamd_regexp_post_process (r=0x7ffff1cdef80) at 
./src/libutil/regexp.c:190
#2  rspamd_regexp_new (pattern=0x7ffff3d7e9c9 "[$€$¢¥₽]", flags=<optimized 
out>, err=err@entry=0x7fffffffe230) at ./src/libutil/regexp.c:481
#3  0x00007ffff7b622dd in rspamd_mime_expr_parse_regexp_atom (cfg=<optimized 
out>, line=0x7ffff3d7e970 "/[$€$¢¥₽]/Hu", pool=0x7ffff4632000) at 
./src/libmime/mime_expressions.c:494
#4  rspamd_mime_expr_parse (line=<optimized out>, len=<optimized out>, 
pool=0x7ffff4632000, ud=<optimized out>, err=0x7fffffffe350) at 
./src/libmime/mime_expressions.c:799
#5  0x00007ffff7a9b028 in rspamd_parse_expression 
(line=line@entry=0x7ffff47682c0 "Subject=/[$€$¢¥₽]/Hu", len=<optimized out>, 
len@entry=0, subr=0x7ffff7d6be80 <mime_expr_subr>, 
    subr_data=subr_data@entry=0x7fffffffe3e0, pool=pool@entry=0x7ffff4632000, 
err=err@entry=0x7fffffffe350, target=0x7fffffffe348) at 
./src/libutil/expression.c:671
#6  0x00007ffff7b7f2ec in read_regexp_expression (pool=0x7ffff4632000, 
symbol=0x7ffff47682a0 "SUBJECT_HAS_CURRENCY", line=line@entry=0x7ffff47682c0 
"Subject=/[$€$¢¥₽]/Hu", ud=ud@entry=0x7fffffffe3e0, 
    chain=<optimized out>) at ./src/plugins/regexp.c:81
#7  0x00007ffff7b7fd4f in regexp_module_config (cfg=0x7ffff4626800) at 
./src/plugins/regexp.c:228
#8  0x00007ffff7b070cb in rspamd_init_filters (cfg=0x7ffff4626800, 
reconfig=reconfig@entry=false) at ./src/libserver/cfg_utils.c:1539
#9  0x000055555556845f in rspamadm_configtest (argc=<optimized out>, 
argv=<optimized out>, cmd=<optimized out>) at ./src/rspamadm/configtest.c:155
#10 0x0000555555566845 in main (argc=2, argv=<optimized out>, env=<optimized 
out>) at ./src/rspamadm/rspamadm.c:561

** Affects: rspamd (Ubuntu)
     Importance: High
         Status: New


** Tags: update-excuse

** Attachment added: "gdb.txt"
   https://bugs.launchpad.net/bugs/1855269/+attachment/5310014/+files/gdb.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1855269

Title:
  segfault with pcre10.34-3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rspamd/+bug/1855269/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to