<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>43414</bug_id>
          
          <creation_ts>2022-08-02 10:38:30 +0300</creation_ts>
          <short_desc>Manticore-converter при конвертировании индексов sphinx выдает ошибку сегментирования</short_desc>
          <delta_ts>2022-08-02 10:38:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>manticore-converter</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandr Shashkin">dutyrok</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213358</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandr Shashkin">dutyrok</who>
    <bug_when>2022-08-02 10:38:30 +0300</bug_when>
    <thetext>Версия программы:
=================
manticore-converter-5.0.2-alt2 
sphinx-2.3.2-alt4

Шаги для подготовки индексов sphinx к конвертации:
==========================
1) Установить sphinx:
   # apt-get install sphinx libsphinxclient -y
2) Установить и запустить СУБД:
   # apt-get install mariadb-server -y &amp;&amp; \
    systemctl enable --now mysqld ; sleep3 ; systemctl status mysqld
3) Настроить пользователя test:
   # echo &quot;CREATE USER &apos;test&apos;@&apos;localhost&apos; IDENTIFIED BY &apos;1&apos;;&quot; | mysql &amp;&amp; \
    echo &quot;GRANT ALL PRIVILEGES ON test.* TO &apos;test&apos;@&apos;localhost&apos;;&quot; | mysql
4) Выполнить тестовый скрипт sql:
   # mysql &lt; /usr/share/doc/sphinx-*/example.sql
5) Настроить пароль БД в конфигурационном файле: 
   # sed -i &quot;s/sql_pass.*/sql_pass = 1/&quot; /etc/sphinx/sphinx.conf
6) Запустить сеанс sphinx:
   # systemctl enable --now searchd &amp;&amp; systemctl status searchd
7) Переиндексировать:
   # su - _sphinx -s /bin/sh -c &quot;indexer --verbose --rotate --all&quot;

Шаги, приводящие к ошибке:
==========================
1) Установить manticore:
   # apt-get install manticore manticore-converter -y
2) Конвертировать индексы, используя конфигурационный файл sphinx:
   # cp -r /var/lib/sphinx ./sphinx.bac &amp;&amp; index_converter --config \
    /etc/sphinx/sphinx.conf.rpmsave --all
3) Конвертировать, используя путь:
   # index_converter --path ./sphinx.bac --all

Результат:
==========
При выполнении второго шага (конвертация, используя конфигурационный файл), происходит ошибка сегментирования (вывод):
using config file &apos;/etc/sphinx/sphinx.conf.rpmsave&apos;...
WARNING: key &apos;read_timeout&apos; is deprecated in /etc/sphinx/sphinx.conf.rpmsave line 56; use &apos;network_timeout&apos; instead.
WARNING: key &apos;max_children&apos; was permanently removed from configuration. Refer to documentation for details.
WARNING: key &apos;workers&apos; is deprecated in /etc/sphinx/sphinx.conf.rpmsave line 62; use &apos;default value&apos; instead.
Ошибка сегментирования

При выполнении конвертации, используя путь, также появляется ошибка сегментирования.

Ожидаемый результат:
====================
Ожидается результат как в P10 (manticore-converter-4.0.2-alt1), что индексы конвертируются (при использовании файла конфигурации):
using config file &apos;/etc/sphinx/sphinx.conf.rpmsave&apos;...
WARNING: key &apos;read_timeout&apos; is deprecated in /etc/sphinx/sphinx.conf.rpmsave line 56; use &apos;network_timeout&apos; instead.
WARNING: key &apos;max_children&apos; was permanently removed from configuration. Refer to documentation for details.
converting plain index &apos;test1&apos;
converted index &apos;test1&apos;
converting rt index &apos;testrt&apos;
converted index &apos;testrt&apos;
converted indexes 2(2)

Дополнительно:
==============
В версии в P10, конвертация по пути также выдает ошибку сегментирования</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>