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

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

    <bug>
          <bug_id>41067</bug_id>
          
          <creation_ts>2021-10-06 16:51:47 +0300</creation_ts>
          <short_desc>Ошибка сегментирования при изменении pin-кода</short_desc>
          <delta_ts>2022-11-21 11:16:26 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p9</product>
          <component>librtpkcs11ecp</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</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="Nikita Obukhov">nickf</reporter>
          <assigned_to name="qa-team@altlinux.org">qa-team</assigned_to>
          
          
          <qa_contact name="qa-p9@altlinux.org">qa-p9</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>203543</commentid>
    <comment_count>0</comment_count>
    <who name="Nikita Obukhov">nickf</who>
    <bug_when>2021-10-06 16:51:47 +0300</bug_when>
    <thetext>При попытке смены pin-кода на Rutoken ЭЦП по инструкции с вики:
https://www.altlinux.org/Rutoken#Изменение_PIN-кода
возникается &quot;Ошибка сегментирования&quot;, при этом pin-код меняется:

$ pkcs11-tool --module /usr/lib64/pkcs11/librtpkcs11ecp.so --login --pin 12345678 --change-pin --new-pin 87654321
Using slot 0 with a present token (0x0)
PIN successfully changed
Ошибка сегментирования

Вывод в journalctl:
audit[13455]: ANOM_ABEND auid=709000065 uid=709000065 gid=709000065 ses=4 pid=13455 comm=&quot;pkcs11-tool&quot; exe=&quot;/usr/bin/pkcs11-tool&quot; sig=11 res=1
kernel: pkcs11-tool[13455]: segfault at 1cf6410 ip 0000000001cf6410 sp 00007fff7ac71548 error 15
kernel: Code: 00 00 80 28 6a ce 6b 7f 00 00 20 04 00 00 00 00 00 00 20 00 00 00 00 00 00 00 10 64 cf 01 00 00 00 00 01 00 00 00 00 00 00 00 &lt;00&gt; 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 30 64 cf 01 00 00
kernel: audit: type=1701 audit(1633528162.121:209): auid=709000065 uid=709000065 gid=709000065 ses=4 pid=13455 comm=&quot;pkcs11-tool&quot; exe=&quot;/usr/bin/pkcs11-tool&quot; sig=11 res=1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217704</commentid>
    <comment_count>1</comment_count>
    <who name="Nikita Obukhov">nickf</who>
    <bug_when>2022-11-21 11:16:26 +0300</bug_when>
    <thetext>Проверялось на p9, p10, Sisyphus.
По указанным шагам ошибка не воспроизвелась</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>