Skip to content

Commit

Permalink
Reproduce assertion crash in virtual search
Browse files Browse the repository at this point in the history
  • Loading branch information
edieterich committed Mar 8, 2024
1 parent 281a74e commit 545fe17
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/common/fts-flatcurve-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ function populate_mbox_msg() {
printf "$2" | run_doveadm "save -u $TESTUSER -m ${1}"
}

run_test "Reproduce assertion crash in virtual search" \
/dovecot/configs/dovecot.conf.virtual \
/dovecot/imaptest/virtual-assertion-crash

run_test "Testing RFC Compliant (substring) configuration" \
/dovecot/configs/dovecot.conf \
/dovecot/imaptest/fts-test
Expand Down
12 changes: 12 additions & 0 deletions .github/common/imaptest/virtual-assertion-crash
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
messages: 1

ok search or from user body body
ok search or header reply-to user body body

ok examine Virtual/All

# From header works
ok search or from user body body

# Panic: file fts-search.c: line 87 (level_scores_add_vuids): assertion failed: (array_count(&vuids_arr) == array_count(&br->scores))
ok search or header reply-to user body body

0 comments on commit 545fe17

Please sign in to comment.