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

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

    <bug>
          <bug_id>26873</bug_id>
          
          <creation_ts>2012-01-29 17:26:23 +0400</creation_ts>
          <short_desc>akonadi_imap_resource зацикливается в случае проблем с сетью.</short_desc>
          <delta_ts>2015-03-04 23:41:33 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p6</product>
          <component>akonadi</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Y. Afonin">asy</reporter>
          <assigned_to name="Sergey V Turchin">zerg</assigned_to>
          <cc>andrey</cc>
    
    <cc>anubix</cc>
          
          <qa_contact name="QA p6">qa-p6</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>128581</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2012-01-29 17:26:23 +0400</bug_when>
    <thetext>kde4pim-akonadi-4.7.4-alt5.M60P.1
akonadi-1.6.2-alt7.M60P.1

В момент проверки imap-ящика временно пропало WiFi соединение. В результате akonadi_imap_resource зациклился. 

$ ps ax|grep 6952
 6952 ?        Sl    23:29 /usr/bin/akonadi_imap_resource --identifier akonadi_imap_resource_0 

strace показывает вот такой цикл:

read(7, 0x69aa24, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 5, 0) = 0 (Timeout)
read(7, 0x69aa24, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
sendmsg(8, {msg_name(0)=NULL, msg_iov(2)=[{&quot;l\1\0\1\33\0\0\0#\254\32\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre&quot;..., 144}, {&quot;\26\0\0\0org.kde.akonadiconsole\0&quot;, 27}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 171
poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
recvmsg(8, {msg_name(0)=NULL, msg_iov(1)=[{&quot;l\2\1\1\4\0\0\0E\252\32\0=\0\0\0\6\1s\0\5\0\0\0:1.30\0\0\0&quot;..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 84
recvmsg(8, 0x7fff27995000, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x69aa24, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 5, 0) = 0 (Timeout)
read(7, 0x69aa24, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
stat(&quot;/home/asy/.config/akonadi&quot;, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open(&quot;/home/asy/.config/akonadi/agent_config_akonadi_imap_resource_0_changes.dat&quot;, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 13
fcntl(13, F_SETFD, FD_CLOEXEC)          = 0
fstat(13, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
write(13, &quot;\0\0\0\0\0\0\0\1\0\0\0\21kmail2-1314171187\0\0\0&quot;..., 142) = 142
close(13)                               = 0

В .xsession-errors:0 встречается вот такаое сообщение об ошибке:

request for item 118345 &quot;54785&quot; failed: &quot;Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.&quot;
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
posting retrieval request for item 118345  there are  1  queues and  0  items in mine
request for item 118345 still pending - waiting
processing retrieval request for item 118345  parts: (&quot;RFC822&quot;)  of resource: &quot;akonadi_imap_resource_0&quot;
continuing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128706</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2012-02-05 17:17:25 +0400</bug_when>
    <thetext>Оказалось, это не единственная проблема. Теперь, в аналогичной ситуации, встало как-то по-другому:

poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 5, -1) = 1 ([{fd=7, revents=POLLIN}])
read(7, &quot;\34\0\241\6\252\0\0\0\270\1\0\0\4\r\f\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&quot;, 4096) = 32
read(7, 0x69b6b4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x69b6b4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, &quot;\34\0\241\6\252\0\0\0\270\1\0\0\5\r\f\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&quot;, 4096) = 32
read(7, 0x69b6b4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 5, 0) = 0 (Timeout)
read(7, 0x69b6b4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x69b6b4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)

В отличие от предыдущего случая, умерло совсем. Не помогает ни прибивание Аконади, ни перезагрузка.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131413</commentid>
    <comment_count>2</comment_count>
    <who name="Zerg">anubix</who>
    <bug_when>2012-05-24 14:51:35 +0400</bug_when>
    <thetext>С kde-4.8 то же?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137701</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Prokopyev">andrey</who>
    <bug_when>2013-02-08 12:05:31 +0400</bug_when>
    <thetext>Он иногда зацикливается и не только в случае проблем с сетью, а при одновременной работе нескольких пользователей в режиме терминала. Особенно, если они подключаются к одному ресурсу!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150585</commentid>
    <comment_count>4</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2015-03-04 23:41:25 +0300</bug_when>
    <thetext>Вроде бы, к концу использования p6, эта проблема меня уже не беспокоила. В p7, с 4.12.4-alt0.M70P.2, вроде бы, тоже не проявляется. Закрою, как fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>