Skip to content

fix: patch APT for CVE-2026-109518 - #134

Merged
sanikolaev merged 5 commits into
masterfrom
fix/cve-2026-109518-apt
Nov 13, 2026
Merged

sanikolaev merged 5 commits into
masterfrom
fix/cve-2026-109518-apt

Conversation

@sanikolaev

@sanikolaev sanikolaev commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The image is based on Ubuntu 24.04 (ubuntu:noble). Its APT package manager is vulnerable to CVE-2026-109518 before 2.8.4ubuntu0.1. An on-path attacker can potentially cause a retried package download to install an unverified package.

Fix

  • Update APT before any other package installations, with Acquire::Retries=0 for the bootstrap update and upgrade.
  • Require at least the patched Ubuntu 24.04 APT version, so the build fails rather than silently producing a vulnerable image.
  • Add a CLT smoke-test assertion against the APT version in the resulting container.

References

@github-actions

Copy link
Copy Markdown

tests

❌ CLT tests in clt_tests/tests/
✅ OK: 13
❌ Failed: 2
⏳ Duration: 1540s
👉 Check Action Results for commit a29da10

Failed tests:

clt_tests/tests/test-extra.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker run --rm --name manticore -v /tmp/idx:/var/lib/manticore -d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "columnar.*?secondary.*?knn" <(docker logs -f manticore 2>&1); then echo 'Done'; else echo 'Not found'; fi
––– output –––
OK
––– input –––
docker exec manticore manticore-executor -v
––– output –––
PHP %{SEMVER} (cli) (built: #!/[a-zA-Z]{3}/!# #!/[0-9]+/!# %{YEAR} #!/[0-9]{2}:[0-9]{2}:[0-9]{2}/!#) (NTS)
Copyright (c) The PHP Group
Zend Engine #!/v[0-9]+\.[0-9]+\.[0-9]+/!#, Copyright (c) Zend Technologies
+     with Zend OPcache v8.5.12, Copyright (c), by Zend Technologies
––– input –––
docker exec manticore ls /usr/share/manticore/modules/lib_manticore_columnar.so /usr/share/manticore/modules/lib_manticore_secondary.so /usr/share/manticore/modules/lib_manticore_knn.so /usr/share/manticore/modules/libgalera_manticore.so
––– output –––
OK
––– input –––
docker exec manticore mysql -e "create cluster abc"; echo $?
––– output –––
OK
clt_tests/tests/test-backup-restore.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker run --rm --name manticore -v /tmp/idx:/var/lib/manticore -d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "columnar.*?secondary.*?knn" <(docker logs -f manticore 2>&1); then echo 'Done'; else echo 'Not found'; fi
––– output –––
OK
––– input –––
docker exec manticore manticore-executor -v
––– output –––
PHP %{SEMVER} (cli) (built: #!/[a-zA-Z]{3}/!# #!/[0-9]+/!# %{YEAR} #!/[0-9]{2}:[0-9]{2}:[0-9]{2}/!#) (NTS)
Copyright (c) The PHP Group
Zend Engine #!/v[0-9]+\.[0-9]+\.[0-9]+/!#, Copyright (c) Zend Technologies
+     with Zend OPcache v8.5.12, Copyright (c), by Zend Technologies
––– input –––
docker exec manticore wget -q https://raw.githubusercontent.com/manticoresoftware/manticoresearch-backup/main/test/clt-tests/dumps/tables.sql
––– output –––
OK
––– input –––
docker exec manticore bash -c "mysql < ./tables.sql"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show tables"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table distributed_index"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_with_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_without_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table test"
––– output –––
OK
––– input –––
docker exec manticore manticore-backup --backup-dir=/tmp
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file: /etc/manticoresearch/manticore.conf.sh
Tables to backup: all tables
Backup dir: /tmp
Manticore config
  endpoint =  http://127.0.0.1:9308
Manticore config
  endpoint =  http://127.0.0.1:9312
Manticore versions:
  manticore: %{SEMVER} %{COMMITDATE}#!/(\s*dev)*/!#
  columnar: %{SEMVER} %{COMMITDATE}
  secondary: %{SEMVER} %{COMMITDATE}
  knn: %{SEMVER} %{COMMITDATE}
  buddy: %{SEMVER_EXT}
%{DATETIME} [Info] Starting the backup...
%{DATETIME} [Info] Backing up config files...
%{DATETIME} [Info]   config files - OK
%{DATETIME} [Info] Backing up global state files...
%{DATETIME} [Info]   global state files – OK
- %{DATETIME} [Info] Backing up tables...
- %{DATETIME} [Info]   distributed_index (distributed)...
- %{DATETIME} [Info]   SKIP
- %{DATETIME} [Info]   rt_with_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_without_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   test (rt) [#!/[0-9]+(\.[0-9]+)?[BK]/!#]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]
- Unfreezing all tables...
- %{DATETIME} [Info]   distributed_index...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_with_columnar...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_without_columnar...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   test...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info] Running sync
- %{DATETIME} [Info]  OK
- %{DATETIME} [Info] You can find backup here: /tmp/backup-%{NUMBER}
- %{DATETIME} [Info] Elapsed time: #!/([0-9]+\.[0-9]+|0)/!#s
- %{DATETIME} [Info] Done
––– input –––
BACKUP_NAME=$(docker exec manticore ls /tmp/ | grep backup-*)
––– output –––
+ Error response from daemon: container 0745c027ebcc857c91afd7daa3a6e2b021ae40a58e221cff60644dc78b535f8d is not running
––– input –––
docker cp manticore:/tmp/$BACKUP_NAME /tmp/$BACKUP_NAME > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 1
––– input –––
chmod -R 777 /tmp/$BACKUP_NAME
––– output –––
OK
––– input –––
docker stop manticore
––– output –––
- manticore
+ Error response from daemon: No such container: manticore
––– input –––
docker ps
––– output –––
OK
––– input –––
if timeout 60 sh -c 'while docker ps -a --format "{{.Names}}" | grep -Fxq manticore; do sleep 1; done'; then echo 'removed'; else echo 'not removed'; fi
––– output –––
OK
––– input –––
docker run -d --name manticore -v /tmp/$BACKUP_NAME:/docker-entrypoint-initdb.d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "accepting connections" <(docker logs -f manticore 2>&1); then echo 'Manticore is running'; else echo 'Failed to start Manticore'; docker logs manticore; fi
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show tables"
––– output –––
- +---------------------+-------------+
- | Table               | Type        |
- +---------------------+-------------+
- | distributed_index   | distributed |
- | rt_with_columnar    | rt          |
- | rt_without_columnar | rt          |
- | test                | rt          |
- +---------------------+-------------+
––– input –––
docker exec manticore mysql -e "show create table distributed_index"
––– output –––
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'distributed_index'
- | Table             | Create Table                                                                                                                                                              |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | distributed_index | CREATE TABLE distributed_index type='distributed' local='rt_with_columnar' local='rt_without_columnar' agent='127.0.0.1:9312:plain_with_columnar, plain_without_columnar' |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table rt_with_columnar"
––– output –––
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'rt_with_columnar'
- | Table            | Create Table                                                                                                                                                           |
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | rt_with_columnar | CREATE TABLE rt_with_columnar (
- id bigint,
- title text,
- category_id integer,
- price float,
- description string attribute engine='columnar',
- tags multi,
- attributes json
- ) |
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table rt_without_columnar"
––– output –––
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'rt_without_columnar'
- | Table               | Create Table                                                                                                                                            |
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
- | rt_without_columnar | CREATE TABLE rt_without_columnar (
- id bigint,
- title text,
- category_id integer,
- price float,
- description string attribute,
- tags multi,
- attributes json
- ) |
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table test"
––– output –––
- +-------+--------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'test'
- | Table | Create Table                                                                                                             |
- +-------+--------------------------------------------------------------------------------------------------------------------------+
- | test  | CREATE TABLE test (
- id bigint,
- title text,
- image_vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='L2'
- ) |
- +-------+--------------------------------------------------------------------------------------------------------------------------+

@github-actions

Copy link
Copy Markdown

tests

❌ CLT tests in clt_tests/tests/
✅ OK: 14
❌ Failed: 1
⏳ Duration: 1494s
👉 Check Action Results for commit 1680d1f

Failed tests:

clt_tests/tests/test-backup-restore.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker run --name manticore -v /tmp/idx:/var/lib/manticore -d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "columnar.*?secondary.*?knn" <(docker logs -f manticore 2>&1); then echo 'Done'; else echo 'Not found'; fi
––– output –––
OK
––– input –––
docker exec manticore manticore-executor -v | head -n 3
––– output –––
OK
––– input –––
docker exec manticore wget -q https://raw.githubusercontent.com/manticoresoftware/manticoresearch-backup/main/test/clt-tests/dumps/tables.sql
––– output –––
OK
––– input –––
docker exec manticore bash -c "mysql < ./tables.sql"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show tables"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table distributed_index"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_with_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_without_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table test"
––– output –––
OK
––– input –––
docker exec manticore manticore-backup --backup-dir=/tmp
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file: /etc/manticoresearch/manticore.conf.sh
Tables to backup: all tables
Backup dir: /tmp
Manticore config
  endpoint =  http://127.0.0.1:9308
Manticore config
  endpoint =  http://127.0.0.1:9312
Manticore versions:
  manticore: %{SEMVER} %{COMMITDATE}#!/(\s*dev)*/!#
  columnar: %{SEMVER} %{COMMITDATE}
  secondary: %{SEMVER} %{COMMITDATE}
  knn: %{SEMVER} %{COMMITDATE}
  buddy: %{SEMVER_EXT}
%{DATETIME} [Info] Starting the backup...
%{DATETIME} [Info] Backing up config files...
%{DATETIME} [Info]   config files - OK
%{DATETIME} [Info] Backing up global state files...
%{DATETIME} [Info]   global state files – OK
- %{DATETIME} [Info] Backing up tables...
- %{DATETIME} [Info]   distributed_index (distributed)...
- %{DATETIME} [Info]   SKIP
- %{DATETIME} [Info]   rt_with_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_without_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   test (rt) [#!/[0-9]+(\.[0-9]+)?[BK]/!#]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]
- Unfreezing all tables...
- %{DATETIME} [Info]   distributed_index...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_with_columnar...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_without_columnar...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   test...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info] Running sync
- %{DATETIME} [Info]  OK
- %{DATETIME} [Info] You can find backup here: /tmp/backup-%{NUMBER}
- %{DATETIME} [Info] Elapsed time: #!/([0-9]+\.[0-9]+|0)/!#s
- %{DATETIME} [Info] Done
––– input –––
if [ "$(docker inspect -f '{{.State.Running}}' manticore)" = true ]; then echo 'running'; else docker inspect -f 'exit={{.State.ExitCode}} oom={{.State.OOMKilled}}' manticore; docker logs --tail 80 manticore 2>&1; fi
––– output –––
- running
+ exit=2 oom=false
+ [Fri Nov 13 09:29:13.834 2026] [1] using config file '/etc/manticoresearch/manticore.conf.sh' (261 chars)...
+ starting daemon version '31.0.19 f03428543@26111217 dev (columnar 14.5.7 ac82d80@26102810) (secondary 14.5.7 ac82d80@26102810) (knn 14.5.7 ac82d80@26102810) (embeddings 1.1.1 ac82d80@26102810)' ...
+ listening on all interfaces for mysql, port=9306
+ listening on UNIX socket /var/run/mysqld/mysqld.sock
+ listening on all interfaces for sphinx and http(s), port=9308
+ listening on 172.18.0.2:9312 for sphinx and http(s)
+ prereading 0 tables
+ preread 0 tables in 0.000 sec
+ accepting connections
+ [BUDDY] started v4.4.10+26111012-8bc7776c-dev 'manticore-executor /usr/share/manticore/modules/manticore-buddy/src/main.php --listen=http://0.0.0.0:9308   --threads=4 ' at http://127.0.0.1:41507
+ [BUDDY] Loaded plugins:
+ [BUDDY]   core: empty-string, backup, emulate-elastic, fuzzy, create-table, create-cluster, drop, insert, alias, select, replace-select, show, plugin, test, alter-column, alter-distributed-table, alter-rename-table, modify-table, knn, replace, queue, sharding, update, autocomplete, cli-table, truncate, optimize, flush, metrics, conversational-search, plugins-auth-permissions
+ [BUDDY]   local:
+ [BUDDY]   extra:
+ ------- FATAL: CRASH DUMP -------
+ [Fri Nov 13 09:29:14.849 2026] [    1]
+ --- crashed SphinxQL request dump ---
+ FREEZE distributed_index, rt_with_columnar, rt_without_columnar, test
+ --- request dump end ---
+ --- local index:distributed_index, rt_with_columnar, rt_without_columnar, test
+ Manticore 31.0.19 f03428543@26111217 dev (columnar 14.5.7 ac82d80@26102810) (secondary 14.5.7 ac82d80@26102810) (knn 14.5.7 ac82d80@26102810) (embeddings 1.1.1 ac82d80@26102810)
+ Handling signal 11
+ -------------- backtrace begins here ---------------
+ Program compiled with Clang 16.0.6
+ Configured with flags: Configured with these definitions: -DDISTR_BUILD=jammy -DUSE_SYSLOG=1 -DWITH_GALERA=1 -DWITH_RE2=1 -DWITH_RE2_FORCE_STATIC=1 -DWITH_STEMMER=1 -DWITH_STEMMER_FORCE_STATIC=1 -DWITH_NLJSON=1 -DWITH_UNIALGO=1 -DWITH_ICU=1 -DWITH_ICU_FORCE_STATIC=1 -DWITH_JIEBA=1 -DWITH_SSL=1 -DWITH_ZLIB=1 -DWITH_ZSTD=1 -DDL_ZSTD=1 -DZSTD_LIB=libzstd.so.1 -DWITH_CURL=1 -DDL_CURL=1 -DCURL_LIB=libcurl.so.4 -DWITH_ODBC=1 -DDL_ODBC=1 -DODBC_LIB=libodbc.so.2 -DWITH_EXPAT=1 -DDL_EXPAT=1 -DEXPAT_LIB=libexpat.so.1 -DWITH_ICONV=1 -DWITH_MYSQL=1 -DDL_MYSQL=1 -DMYSQL_LIB=libmysqlclient.so.21 -DWITH_POSTGRESQL=1 -DDL_POSTGRESQL=1 -DPOSTGRESQL_LIB=libpq.so.5 -DLOCALDATADIR=/var/lib/manticore -DFULL_SHARE_DIR=/usr/share/manticore
+ Built on Linux x86_64 (jammy) (cross-compiled)
+ Stack bottom = 0x75eca8063fe0, thread stack size = 0x20000
+ Trying manual backtrace:
+ Something wrong with thread stack, manual backtrace may be incorrect (fp=0x20000)
+ Wrong stack limit or frame pointer, manual backtrace failed (fp=0x20000, stack=0x75eca8070000, stacksize=0x20000)
+ Trying system backtrace:
+ begin of system symbols:
+ Trying boost backtrace:
+  0# sphBacktrace(int, bool) in searchd
+  1# HandleCrash(int) in searchd
+  2# 0x000075ECCBCCD330 in /lib/x86_64-linux-gnu/libc.so.6
+  3# ServedIndex_c::Locker() const in searchd
+  4# HandleMysqlFreezeIndexes(RowBuffer_i&, SqlStmt_t const&, CSphString&) in searchd
+  5# ClientSession_c::Execute(std::pair<char const*, int>, RowBuffer_i&) in searchd
+  6# HttpRawSqlHandler_c::Process() in searchd
+  7# ProcessHttpQuery(CharStream_c&, std::pair<char const*, int>&, CSphOrderedHash<CSphString, CSphString, CSphStrHashFunc, 256>&, sph::Vector_T<unsigned char, sph::DefaultCopy_T<unsigned char>, sph::DefaultRelimit, sph::DefaultStorage_T<unsigned char> >&, bool, http_method, bool, bool) in searchd
+  8# HttpRequestParser_c::ProcessClientHttp(AsyncNetInputBuffer_c&, sph::Vector_T<unsigned char, sph::DefaultCopy_T<unsigned char>, sph::DefaultRelimit, sph::DefaultStorage_T<unsigned char> >&) in searchd
+  9# HttpServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >) in searchd
+ 10# MultiServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >, std::pair<int, unsigned short>, Proto_e) in searchd
+ 11# 0x000058A5E8DA0882 in searchd
+ 12# Threads::CoRoutine_c::CreateContext(std::function<void ()>, std::pair<boost::context::stack_context, Threads::StackFlavour_E>)::{lambda(boost::context::detail::transfer_t)#1}::__invoke(boost::context::detail::transfer_t) in searchd
+ 13# make_fcontext in searchd
+ -------------- backtrace ends here ---------------
+ Please, create a bug report in our bug tracker (https://github.com/manticoresoftware/manticore/issues)
+ and attach there:
+ a) searchd log, b) searchd binary, c) searchd symbols.
+ Look into the chapter 'Reporting bugs' in the manual
+ (https://manual.manticoresearch.com/Reporting_bugs)
––– input –––
BACKUP_NAME=$(docker exec manticore ls /tmp/ | grep backup-*)
––– output –––
+ Error response from daemon: container ca2abe86aa66e6e450fd530ee762b5f381a60f139ceae57fdfc548ea718630f2 is not running
––– input –––
docker cp manticore:/tmp/$BACKUP_NAME /tmp/$BACKUP_NAME > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
chmod -R 777 /tmp/$BACKUP_NAME
––– output –––
OK
––– input –––
docker stop manticore
––– output –––
OK
––– input –––
docker rm manticore
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
if timeout 60 sh -c 'while docker ps -a --format "{{.Names}}" | grep -Fxq manticore; do sleep 1; done'; then echo 'removed'; else echo 'not removed'; fi
––– output –––
OK
––– input –––
docker run -d --name manticore -v /tmp/$BACKUP_NAME:/docker-entrypoint-initdb.d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "accepting connections" <(docker logs -f manticore 2>&1); then echo 'Manticore is running'; else echo 'Failed to start Manticore'; docker logs manticore; fi
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show tables"
––– output –––
- +---------------------+-------------+
- | Table               | Type        |
- +---------------------+-------------+
- | distributed_index   | distributed |
- | rt_with_columnar    | rt          |
- | rt_without_columnar | rt          |
- | test                | rt          |
- +---------------------+-------------+
––– input –––
docker exec manticore mysql -e "show create table distributed_index"
––– output –––
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'distributed_index'
- | Table             | Create Table                                                                                                                                                              |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | distributed_index | CREATE TABLE distributed_index type='distributed' local='rt_with_columnar' local='rt_without_columnar' agent='127.0.0.1:9312:plain_with_columnar, plain_without_columnar' |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table rt_with_columnar"
––– output –––
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'rt_with_columnar'
- | Table            | Create Table                                                                                                                                                           |
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | rt_with_columnar | CREATE TABLE rt_with_columnar (
- id bigint,
- title text,
- category_id integer,
- price float,
- description string attribute engine='columnar',
- tags multi,
- attributes json
- ) |
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table rt_without_columnar"
––– output –––
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'rt_without_columnar'
- | Table               | Create Table                                                                                                                                            |
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
- | rt_without_columnar | CREATE TABLE rt_without_columnar (
- id bigint,
- title text,
- category_id integer,
- price float,
- description string attribute,
- tags multi,
- attributes json
- ) |
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table test"
––– output –––
- +-------+--------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'test'
- | Table | Create Table                                                                                                             |
- +-------+--------------------------------------------------------------------------------------------------------------------------+
- | test  | CREATE TABLE test (
- id bigint,
- title text,
- image_vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='L2'
- ) |
- +-------+--------------------------------------------------------------------------------------------------------------------------+

@github-actions

Copy link
Copy Markdown

tests

❌ CLT tests in clt_tests/tests/
✅ OK: 14
❌ Failed: 1
⏳ Duration: 1632s
👉 Check Action Results for commit 1680d1f

Failed tests:

clt_tests/tests/test-backup-restore.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker run --name manticore -v /tmp/idx:/var/lib/manticore -d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "columnar.*?secondary.*?knn" <(docker logs -f manticore 2>&1); then echo 'Done'; else echo 'Not found'; fi
––– output –––
OK
––– input –––
docker exec manticore manticore-executor -v | head -n 3
––– output –––
OK
––– input –––
docker exec manticore wget -q https://raw.githubusercontent.com/manticoresoftware/manticoresearch-backup/main/test/clt-tests/dumps/tables.sql
––– output –––
OK
––– input –––
docker exec manticore bash -c "mysql < ./tables.sql"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show tables"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table distributed_index"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_with_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_without_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table test"
––– output –––
OK
––– input –––
docker exec manticore manticore-backup --backup-dir=/tmp
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file: /etc/manticoresearch/manticore.conf.sh
Tables to backup: all tables
Backup dir: /tmp
Manticore config
  endpoint =  http://127.0.0.1:9308
Manticore config
  endpoint =  http://127.0.0.1:9312
Manticore versions:
  manticore: %{SEMVER} %{COMMITDATE}#!/(\s*dev)*/!#
  columnar: %{SEMVER} %{COMMITDATE}
  secondary: %{SEMVER} %{COMMITDATE}
  knn: %{SEMVER} %{COMMITDATE}
  buddy: %{SEMVER_EXT}
%{DATETIME} [Info] Starting the backup...
%{DATETIME} [Info] Backing up config files...
%{DATETIME} [Info]   config files - OK
%{DATETIME} [Info] Backing up global state files...
%{DATETIME} [Info]   global state files – OK
- %{DATETIME} [Info] Backing up tables...
- %{DATETIME} [Info]   distributed_index (distributed)...
- %{DATETIME} [Info]   SKIP
- %{DATETIME} [Info]   rt_with_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_without_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   test (rt) [#!/[0-9]+(\.[0-9]+)?[BK]/!#]...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]
- Unfreezing all tables...
- %{DATETIME} [Info]   distributed_index...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_with_columnar...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   rt_without_columnar...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info]   test...
- %{DATETIME} [Info]    OK
- %{DATETIME} [Info] Running sync
- %{DATETIME} [Info]  OK
- %{DATETIME} [Info] You can find backup here: /tmp/backup-%{NUMBER}
- %{DATETIME} [Info] Elapsed time: #!/([0-9]+\.[0-9]+|0)/!#s
- %{DATETIME} [Info] Done
––– input –––
if [ "$(docker inspect -f '{{.State.Running}}' manticore)" = true ]; then echo 'running'; else docker inspect -f 'exit={{.State.ExitCode}} oom={{.State.OOMKilled}}' manticore; docker logs --tail 80 manticore 2>&1; fi
––– output –––
- running
+ exit=2 oom=false
+ [Fri Nov 13 10:14:53.239 2026] [1] using config file '/etc/manticoresearch/manticore.conf.sh' (261 chars)...
+ starting daemon version '31.0.20 9013b667b@26111306 dev (columnar 14.5.7 ac82d80@26102810) (secondary 14.5.7 ac82d80@26102810) (knn 14.5.7 ac82d80@26102810) (embeddings 1.1.1 ac82d80@26102810)' ...
+ listening on all interfaces for mysql, port=9306
+ listening on UNIX socket /var/run/mysqld/mysqld.sock
+ listening on all interfaces for sphinx and http(s), port=9308
+ listening on 172.18.0.2:9312 for sphinx and http(s)
+ prereading 0 tables
+ preread 0 tables in 0.000 sec
+ accepting connections
+ [BUDDY] started v4.4.10+26111012-8bc7776c-dev 'manticore-executor /usr/share/manticore/modules/manticore-buddy/src/main.php --listen=http://0.0.0.0:9308   --threads=4 ' at http://127.0.0.1:34011
+ [BUDDY] Loaded plugins:
+ [BUDDY]   core: empty-string, backup, emulate-elastic, fuzzy, create-table, create-cluster, drop, insert, alias, select, replace-select, show, plugin, test, alter-column, alter-distributed-table, alter-rename-table, modify-table, knn, replace, queue, sharding, update, autocomplete, cli-table, truncate, optimize, flush, metrics, conversational-search, plugins-auth-permissions
+ [BUDDY]   local:
+ [BUDDY]   extra:
+ ------- FATAL: CRASH DUMP -------
+ [Fri Nov 13 10:14:53.751 2026] [    1]
+ --- crashed SphinxQL request dump ---
+ FREEZE distributed_index, rt_with_columnar, rt_without_columnar, test
+ --- request dump end ---
+ --- local index:distributed_index, rt_with_columnar, rt_without_columnar, test
+ Manticore 31.0.20 9013b667b@26111306 dev (columnar 14.5.7 ac82d80@26102810) (secondary 14.5.7 ac82d80@26102810) (knn 14.5.7 ac82d80@26102810) (embeddings 1.1.1 ac82d80@26102810)
+ Handling signal 11
+ -------------- backtrace begins here ---------------
+ Program compiled with Clang 16.0.6
+ Configured with flags: Configured with these definitions: -DDISTR_BUILD=jammy -DUSE_SYSLOG=1 -DWITH_GALERA=1 -DWITH_RE2=1 -DWITH_RE2_FORCE_STATIC=1 -DWITH_STEMMER=1 -DWITH_STEMMER_FORCE_STATIC=1 -DWITH_NLJSON=1 -DWITH_UNIALGO=1 -DWITH_ICU=1 -DWITH_ICU_FORCE_STATIC=1 -DWITH_JIEBA=1 -DWITH_SSL=1 -DWITH_ZLIB=1 -DWITH_ZSTD=1 -DDL_ZSTD=1 -DZSTD_LIB=libzstd.so.1 -DWITH_CURL=1 -DDL_CURL=1 -DCURL_LIB=libcurl.so.4 -DWITH_ODBC=1 -DDL_ODBC=1 -DODBC_LIB=libodbc.so.2 -DWITH_EXPAT=1 -DDL_EXPAT=1 -DEXPAT_LIB=libexpat.so.1 -DWITH_ICONV=1 -DWITH_MYSQL=1 -DDL_MYSQL=1 -DMYSQL_LIB=libmysqlclient.so.21 -DWITH_POSTGRESQL=1 -DDL_POSTGRESQL=1 -DPOSTGRESQL_LIB=libpq.so.5 -DLOCALDATADIR=/var/lib/manticore -DFULL_SHARE_DIR=/usr/share/manticore
+ Built on Linux x86_64 (jammy) (cross-compiled)
+ Stack bottom = 0x7ced84063fe0, thread stack size = 0x20000
+ Trying manual backtrace:
+ Something wrong with thread stack, manual backtrace may be incorrect (fp=0x20000)
+ Wrong stack limit or frame pointer, manual backtrace failed (fp=0x20000, stack=0x7ced84060000, stacksize=0x20000)
+ Trying system backtrace:
+ begin of system symbols:
+ Trying boost backtrace:
+  0# sphBacktrace(int, bool) in searchd
+  1# HandleCrash(int) in searchd
+  2# 0x00007CEDA5E13330 in /lib/x86_64-linux-gnu/libc.so.6
+  3# ServedIndex_c::Locker() const in searchd
+  4# HandleMysqlFreezeIndexes(RowBuffer_i&, SqlStmt_t const&, CSphString&) in searchd
+  5# ClientSession_c::Execute(std::pair<char const*, int>, RowBuffer_i&) in searchd
+  6# HttpRawSqlHandler_c::Process() in searchd
+  7# ProcessHttpQuery(CharStream_c&, std::pair<char const*, int>&, CSphOrderedHash<CSphString, CSphString, CSphStrHashFunc, 256>&, sph::Vector_T<unsigned char, sph::DefaultCopy_T<unsigned char>, sph::DefaultRelimit, sph::DefaultStorage_T<unsigned char> >&, bool, http_method, bool, bool) in searchd
+  8# HttpRequestParser_c::ProcessClientHttp(AsyncNetInputBuffer_c&, sph::Vector_T<unsigned char, sph::DefaultCopy_T<unsigned char>, sph::DefaultRelimit, sph::DefaultStorage_T<unsigned char> >&) in searchd
+  9# HttpServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >) in searchd
+ 10# MultiServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >, std::pair<int, unsigned short>, Proto_e) in searchd
+ 11# 0x00005FB25B3A1882 in searchd
+ 12# Threads::CoRoutine_c::CreateContext(std::function<void ()>, std::pair<boost::context::stack_context, Threads::StackFlavour_E>)::{lambda(boost::context::detail::transfer_t)#1}::__invoke(boost::context::detail::transfer_t) in searchd
+ 13# make_fcontext in searchd
+ -------------- backtrace ends here ---------------
+ Please, create a bug report in our bug tracker (https://github.com/manticoresoftware/manticore/issues)
+ and attach there:
+ a) searchd log, b) searchd binary, c) searchd symbols.
+ Look into the chapter 'Reporting bugs' in the manual
+ (https://manual.manticoresearch.com/Reporting_bugs)
––– input –––
BACKUP_NAME=$(docker exec manticore ls /tmp/ | grep backup-*)
––– output –––
+ Error response from daemon: container ca473be953d03509c926a119c92624954877ef3aa758b2667b3dde9222d0841b is not running
––– input –––
docker cp manticore:/tmp/$BACKUP_NAME /tmp/$BACKUP_NAME > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
chmod -R 777 /tmp/$BACKUP_NAME
––– output –––
OK
––– input –––
docker stop manticore
––– output –––
OK
––– input –––
docker rm manticore
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
if timeout 60 sh -c 'while docker ps -a --format "{{.Names}}" | grep -Fxq manticore; do sleep 1; done'; then echo 'removed'; else echo 'not removed'; fi
––– output –––
OK
––– input –––
docker run -d --name manticore -v /tmp/$BACKUP_NAME:/docker-entrypoint-initdb.d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "accepting connections" <(docker logs -f manticore 2>&1); then echo 'Manticore is running'; else echo 'Failed to start Manticore'; docker logs manticore; fi
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show tables"
––– output –––
- +---------------------+-------------+
- | Table               | Type        |
- +---------------------+-------------+
- | distributed_index   | distributed |
- | rt_with_columnar    | rt          |
- | rt_without_columnar | rt          |
- | test                | rt          |
- +---------------------+-------------+
––– input –––
docker exec manticore mysql -e "show create table distributed_index"
––– output –––
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'distributed_index'
- | Table             | Create Table                                                                                                                                                              |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | distributed_index | CREATE TABLE distributed_index type='distributed' local='rt_with_columnar' local='rt_without_columnar' agent='127.0.0.1:9312:plain_with_columnar, plain_without_columnar' |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table rt_with_columnar"
––– output –––
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'rt_with_columnar'
- | Table            | Create Table                                                                                                                                                           |
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | rt_with_columnar | CREATE TABLE rt_with_columnar (
- id bigint,
- title text,
- category_id integer,
- price float,
- description string attribute engine='columnar',
- tags multi,
- attributes json
- ) |
- +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table rt_without_columnar"
––– output –––
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1146 (42S02) at line 1: no such table 'rt_without_columnar'
- | Table               | Create Table                                                                                                                                            |
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
- | rt_without_columnar | CREATE TABLE rt_without_columnar (
- id bigint,
- title text,
- category_id integer,
- price float,
- description string attribute,
- tags multi,
- attributes json
- ) |
- +---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
docker exec manticore mysql -e "show create table test"
––– output –––
- +-------+--------------------------------------------------------------------------------------------------------------------------+
+ ERROR 1064 (42000) at line 1: You have an error in your query. Please, double-check it.
- | Table | Create Table                                                                                                             |
- +-------+--------------------------------------------------------------------------------------------------------------------------+
- | test  | CREATE TABLE test (
- id bigint,
- title text,
- image_vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='L2'
- ) |
- +-------+--------------------------------------------------------------------------------------------------------------------------+

@sanikolaev
sanikolaev merged commit 94eb88f into master Nov 13, 2026
1 check passed
@sanikolaev
sanikolaev deleted the fix/cve-2026-109518-apt branch November 13, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant