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

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

    <bug>
          <bug_id>31292</bug_id>
          
          <creation_ts>2015-09-21 19:00:59 +0300</creation_ts>
          <short_desc>segfault при подключении/отключении rutoken ecp</short_desc>
          <delta_ts>2016-12-09 16:25: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>pcsc-lite-ccid</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://bugzilla.altlinux.org/show_bug.cgi?id=21313#c2</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>21313</dependson>
          <blocked>32871</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>aen</cc>
    
    <cc>boyarsh</cc>
    
    <cc>cas</cc>
    
    <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>152810</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2015-09-21 19:00:59 +0300</bug_when>
    <thetext>+++ Данная ошибка создана размножением ошибки 21313 +++

На самом деле -- bug 21313, comment 2, т.к. libusb-1.0.20 _этот_ сегфолт не исправила:

Sep 21 18:40:35 localhost pcscd: pcscd startup succeeded

Sep 21 18:40:39 localhost kernel: [319997.778557] usb 3-1: new full-speed USB device number 13 using xhci_hcd
Sep 21 18:40:39 localhost mtp-probe: checking bus 3, device 13: &quot;/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1&quot; 
Sep 21 18:40:39 localhost mtp-probe: bus: 3, device: 13 was not an MTP device 
Sep 21 18:40:39 localhost pcscd: ccid_usb.c:1026:ControlUSB() control failed (3/13): -9 Resource temporarily unavailable

Sep 21 18:40:47 localhost kernel: [320005.642382] usb 3-1: USB disconnect, device number 13
Sep 21 18:40:47 localhost pcscd: ccid_usb.c:638:WriteUSB() write failed (3/13): -4 No such device

Sep 21 18:40:54 localhost kernel: [320012.356971] usb 3-1: new full-speed USB device number 14 using xhci_hcd
Sep 21 18:40:54 localhost mtp-probe: checking bus 3, device 14: &quot;/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1&quot; 
Sep 21 18:40:54 localhost mtp-probe: bus: 3, device: 14 was not an MTP device 
Sep 21 18:40:54 localhost kernel: [320012.561262] pcscd[23269]: segfault at 7f901931e7a8 ip 00007f901931e7a8 sp 00007f901930dd30 error 14

Это Bus 003 Device 017: ID 0a89:0030 (Рутокен ЭЦП).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152811</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2015-09-21 19:03:55 +0300</bug_when>
    <thetext>Похоже, достаточно 1.4.20.

2 cas, boyarsh: предлагаю забрать и в p7/c7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152813</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2015-09-21 19:38:22 +0300</bug_when>
    <thetext>pcsc-lite-ccid-1.4.20-alt1 -&gt; sisyphus:

* Mon Sep 21 2015 Michael Shigorin &lt;mike@altlinux&gt; 1.4.20-alt1
- 1.4.20 (closes: #31292)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152814</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2015-09-21 19:57:50 +0300</bug_when>
    <thetext>Sep 21 19:56:23 localhost pcscd: pcscd startup succeeded
# вставили токен
Sep 21 19:56:27 localhost kernel: [324549.859786] usb 3-1: new full-speed USB device number 20 using xhci_hcd
Sep 21 19:56:28 localhost mtp-probe: checking bus 3, device 20: &quot;/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1&quot; 
Sep 21 19:56:28 localhost mtp-probe: bus: 3, device: 20 was not an MTP device 
# вытащили токен
Sep 21 19:56:32 localhost kernel: [324554.133675] usb 3-1: USB disconnect, device number 20
Sep 21 19:56:32 localhost pcscd: ccid_usb.c:747:WriteUSB() write failed (3/20): -4 LIBUSB_ERROR_NO_DEVICE

Sep 21 19:56:48 localhost pcscd: pcscd shutdown succeeded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152816</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2015-09-21 23:45:08 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; Похоже, достаточно 1.4.20.
&gt; 
&gt; 2 cas, boyarsh: предлагаю забрать и в p7/c7.
#150255 FAILED #1 p7 pcsc-lite-ccid.git=1.4.20-alt0.M70P.1

configure.ac:7: error: Autoconf version 2.69 or higher is required</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152827</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2015-09-22 13:05:38 +0300</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; &gt; 2 cas, boyarsh: предлагаю забрать и в p7/c7.
(кстати, в t7 тестово скопировалось, но пропускать задание не буду)

&gt; configure.ac:7: error: Autoconf version 2.69 or higher is required
Это обходится комментированием autoreconf в спеке.

Но дальше бэкпортированию на p7/c7 мешает проблемка с serialconfdir: в 1.4.20 ожидают получить из pcsc-lite, в сизифном 1.8.14 есть, в p7 1.8.8 и там нет (изменение, кажется, около 1.4.12 было).  Хотим ли мы обновлять там pcsc-lite, а дальше это всё тестировать с партнёрами?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>