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

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

    <bug>
          <bug_id>60585</bug_id>
          
          <creation_ts>2026-09-17 12:15:13 +0300</creation_ts>
          <short_desc>При вызове любой из утилит пакета для анализа отчетов cppcheck выполнение завершается   с ошибкой:   Error: name &apos;messages_filter&apos; is not defined</short_desc>
          <delta_ts>2026-09-17 19:45:42 +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>anti-cppcheck</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="obidinog@basealt.ru">obidinog</reporter>
          <assigned_to>alexey</assigned_to>
          <cc>alexey</cc>
    
    <cc>antohami</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>299401</commentid>
    <comment_count>0</comment_count>
    <who name="obidinog@basealt.ru">obidinog</who>
    <bug_when>2026-09-17 12:15:13 +0300</bug_when>
    <thetext>Платформа:
ALt Server p11 x86_64 

Пакет:
anti-cppcheck 0.5.1-alt2

Шаги:
1) Установить пакет anti-cppcheck

2) Создать тестовый отчет
$ cat &lt;&lt; &apos;EOF&apos; &gt; report.txt
testpkg 1.0 alt1 [src/test.c]: (error) Uninitialized variable: x
testpkg 1.0 alt1 [src/test.c]: (warning) Possible null pointer dereference: ptr
EOF

3) Запустить анализ отчета
$ anti-cppcheck-analyze --type nvrpm --analyzer cppcheck --path report.txt

Ожидаемый результат:
Types of error/warning messages used in the report:
1) [50.000%] uninitialized [variable|struct member]
2) [50.000%] [possible|actual] null pointer dereference

Результат:
Error: name &apos;messages_filter&apos; is not defined

Дополнительно:
В p11 НЕ воспроизводится

  #### Анализ причины:

  Регрессия была внесена в коммите 0478ec229f6c9bafb03a10b8bf1136b2b22d28ef («Sync with lib updates»).

  При рефакторинге блока импортов из файла anticppcheck/machinery.py была случайно удалена строка:

    import anticppcheck.filter as messages_filter

  При этом в методе GeneralizeMessages (строка 252) обращение к messages_filter сохранилось:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>299518</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-09-17 19:45:42 +0300</bug_when>
    <thetext>anti-cppcheck-0.5.2-alt1 -&gt; sisyphus:

Thu Sep 17 2026 Alexey Appolonov &lt;alexey@altlinux&gt; 0.5.2-alt1
- Bug fixes (closes: 60585).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>