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

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

    <bug>
          <bug_id>19391</bug_id>
          
          <creation_ts>2009-03-30 01:43:51 +0400</creation_ts>
          <short_desc>При закрытии окна остается процесс</short_desc>
          <delta_ts>2012-03-16 14:00:08 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>psi</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>15356</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="nwtour">nwtour</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>boris</cc>
    
    <cc>rider</cc>
    
    <cc>wrar</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88280</commentid>
    <comment_count>0</comment_count>
    <who name="nwtour">nwtour</who>
    <bug_when>2009-03-30 01:43:51 +0400</bug_when>
    <thetext>В трее нажимаю ЛКМ -&gt; Выход.
При повторном запуске программы ругается на уже открытый профиль.
Убивается обычным kill, но неудобно.

strace посмотрел, записывает rc файл после этого остается висеть:

sched_yield()                           = 0
write(10, &quot;\0&quot;, 1)                      = 1
futex(0x88cd144, FUTEX_WAIT, 1, NULL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88288</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-03-30 08:31:09 +0400</bug_when>
    <thetext>rpm -q psi ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88290</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Yakshin">greycat</who>
    <bug_when>2009-03-30 10:06:10 +0400</bug_when>
    <thetext>Reassign</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88291</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2009-03-30 11:20:09 +0400</bug_when>
    <thetext>psi-0.13-alt0.git6.f6760d1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88299</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-03-30 12:34:46 +0400</bug_when>
    <thetext>qt-4.5 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88317</commentid>
    <comment_count>5</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-03-30 14:47:06 +0400</bug_when>
    <thetext>Ошибка воспроизводится только на qt-4.5. С предыдущей версией qt никаких проблем нет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88328</commentid>
    <comment_count>6</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2009-03-30 17:29:28 +0400</bug_when>
    <thetext>http://svn.mandriva.com:80/cgi-bin/viewvc.cgi/packages/cooker/psi/current/SOURCES/psi-0.12-qt-4_5-compatibility.patch?view=markup</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88351</commentid>
    <comment_count>7</comment_count>
    <who name="nwtour">nwtour</who>
    <bug_when>2009-03-30 22:16:39 +0400</bug_when>
    <thetext>Все так:
libqt4-core-4.5.0-alt2
psi-0.13-alt0.git6.f6760d1

Менял местами
PsiApplication app(argc, argv);
и
QCA::Initializer init;

не помогает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88389</commentid>
    <comment_count>8</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-03-31 12:15:52 +0400</bug_when>
    <thetext>Этот патч, естественно, не помогает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88464</commentid>
    <comment_count>9</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-04-01 09:58:21 +0400</bug_when>
    <thetext>2zerg: Сборка с внешним QCA2 не помогает.

У меня оно висит несколько на другом процессе:

13651 &lt;... select resumed&gt; )            = 0 (Timeout)
13651 clock_gettime(CLOCK_MONOTONIC, {656911, 366129250}) = 0
13651 select(15, [], [], [], {0, 984})  = 0 (Timeout)
13651 clock_gettime(CLOCK_MONOTONIC, {656911, 370105250}) = 0
13651 clock_gettime(CLOCK_MONOTONIC, {656911, 370139250}) = 0
13651 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 17
13651 ioctl(17, SIOCGIFCONF, {80, {{&quot;lo&quot;, {AF_INET, inet_addr(&quot;127.0.0.1&quot;)}}, {&quot;venet0:1&quot;, {AF_INET, inet_addr(&quot;10.2.0.11&quot;)}}}}) = 0
13651 ioctl(17, SIOCGIFCONF, {80, {{&quot;lo&quot;, {AF_INET, inet_addr(&quot;127.0.0.1&quot;)}}, {&quot;venet0:1&quot;, {AF_INET, inet_addr(&quot;10.2.0.11&quot;)}}}}) = 0
13651 ioctl(17, SIOCGIFFLAGS, {ifr_name=&quot;lo&quot;, ifr_flags=IFF_UP|IFF_LOOPBACK|IFF_RUNNING}) = 0
13651 close(17)                         = 0
13651 open(&quot;/proc/net/if_inet6&quot;, O_RDONLY) = 17
13651 fstat(17, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
13651 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b076f938000
13651 read(17, &quot;00000000000000000000000000000001&quot;..., 4096) = 54
13651 read(17, &quot;&quot;, 4096)                = 0
13651 close(17)                         = 0
13651 munmap(0x2b076f938000, 4096)      = 0
13651 open(&quot;/proc/net/route&quot;, O_RDONLY) = 17
13651 fstat(17, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
13651 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b076f938000
13651 read(17, &quot;Iface\tDestination\tGateway \tFlags&quot;..., 4096) = 384
13651 read(17, &quot;&quot;, 4096)                = 0
13651 close(17)                         = 0
13651 munmap(0x2b076f938000, 4096)      = 0
13651 open(&quot;/proc/net/ipv6_route&quot;, O_RDONLY) = 17


Это не потерянный тред, это пытается что-то куда-то послать... 

futex() тоже висит, но если подождать немного, то оно пролетает дальше в соседнем треде.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88483</commentid>
    <comment_count>10</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-04-01 12:54:24 +0400</bug_when>
    <thetext>Ждём qt-4.5.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89436</commentid>
    <comment_count>11</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-04-15 10:28:35 +0400</bug_when>
    <thetext>Ошибка в psi-0.13. В новой версии QT QObject::sender () возвращает NULL, если сигнал пришёл из другого треда.

Iris использует sender() для получения сигналов о завершении процессов. 

Думаю. что до переписывания куска кода в upstream мы не будет дожидаться окончания всех процессов и просто сделаем quit (но shutdown каждому из тредов скажем в любом случае).

Либо, Зерг подскажет какой-то другой способ определить объект, отправивший сигнал...

Как вариант - можно дожидаться завершения каждого треда после отправки shutdown(). Но мне тут тоже нужна помощь от Сергея.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89498</commentid>
    <comment_count>12</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2009-04-15 19:13:28 +0400</bug_when>
    <thetext>psi-0.13-alt3.git8.36d25d7 -&gt; sisyphus:

* Wed Apr 15 2009 Anton Farygin &lt;rider@altlinux&gt; 0.13-alt3.git8.36d25d7

- added workaround for threaded sender() and QT-4.5 in iris (closes #19391)
- added qca2-gnupg and qca2-ossl requires</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>