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

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

    <bug>
          <bug_id>15356</bug_id>
          
          <creation_ts>2008-04-15 01:11:30 +0400</creation_ts>
          <short_desc>futex() подвисает</short_desc>
          <delta_ts>2012-03-16 13:59:03 +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>kernel-image-std-def</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc>http://lkml.org/lkml/2005/3/21/364</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>16292</blocked>
    
    <blocked>17641</blocked>
    
    <blocked>19391</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Egorov">lunohod</reporter>
          <assigned_to name="Vitaly Chikunov">vt</assigned_to>
          <cc>combr</cc>
    
    <cc>kernelbot</cc>
    
    <cc>legion</cc>
    
    <cc>php-coder</cc>
    
    <cc>placeholder</cc>
    
    <cc>redbaron</cc>
    
    <cc>thresh</cc>
    
    <cc>vt</cc>
    
    <cc>vvk</cc>
    
    <cc>wrar</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68329</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Egorov">lunohod</who>
    <bug_when>2008-04-15 01:11:30 +0400</bug_when>
    <thetext>Старая проблема с зависанием futex(), в LKM есть рецепт, как воспроизвести этот
баг с xmms+jack. Ещё я заметил, что irssi в скрине стал зависать именно на
вызове futex().

У меня это происходит на 2.6.18-std-smp-alt12.
Steps to Reproduce:
см. ссылку!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72150</commentid>
    <comment_count>1</comment_count>
    <who name="Mikhail Gusarov">dottedmag</who>
    <bug_when>2008-06-13 13:00:39 +0400</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73935</commentid>
    <comment_count>2</comment_count>
    <who name="Michail Yakushin">silicium</who>
    <bug_when>2008-07-11 13:25:48 +0400</bug_when>
    <thetext>Ещё актуально?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73943</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2008-07-11 13:36:56 +0400</bug_when>
    <thetext>Да.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80173</commentid>
    <comment_count>4</comment_count>
    <who name="Konstantin Pavlov">thresh</who>
    <bug_when>2008-10-24 12:26:00 +0400</bug_when>
    <thetext>Очень актуально, irssi виснет на футексе на 2.6.26-wks-pae.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80176</commentid>
    <comment_count>5</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2008-10-24 12:42:14 +0400</bug_when>
    <thetext>Фигасе.
Это от конфига зависит или как?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80177</commentid>
    <comment_count>6</comment_count>
    <who name="Vladimir V. Kamarzin">vvk</who>
    <bug_when>2008-10-24 12:55:28 +0400</bug_when>
    <thetext>4.1 бранч irssi виснет тоже, 2.6.25-std-ll-alt8.M41.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86073</commentid>
    <comment_count>7</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2009-02-18 12:34:03 +0300</bug_when>
    <thetext>у меня виснет  k3b-1.0.4-alt3 на ядре 2.6.27-std-def-alt11

метод воспроизведения:
1. начать копировать двд-диск.
2. k3b создает образ, 50% выполнения (вторые 50% - это запись на чистый диск скопированного).
3. открывает лоток и тут же его закрывает (с полным диском). 
4. окно виснет без элементов управления (серый прямоугольник)

$ strace -p 8096 -fF -o k3b-strace.log
Process 8096 attached - interrupt to quit
^CProcess 8096 detached

в логе одна строка:
8096  futex(0x844670c, FUTEX_WAIT_PRIVATE, 2, NULL &lt;unfinished ...&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88392</commentid>
    <comment_count>8</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-03-31 12:53:03 +0400</bug_when>
    <thetext>Попал с psi на qt-4.5, виснет при выходе на futex на всех ядрах, включая в контейнере ovz 2.6.18.

Есть исправление для этой проблемы ? Я нашёл только один старый патч http://lkml.org/lkml/2005/3/21/386 и без продолжения этой темы.

Или, проблема всё-таки в userspace ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88422</commentid>
    <comment_count>9</comment_count>
    <who name="Michail Yakushin">silicium</who>
    <bug_when>2009-03-31 16:03:04 +0400</bug_when>
    <thetext>futex нужен для того чтобы на нем виснуть. Возможно в userspace есть deadlock</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88457</commentid>
    <comment_count>10</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2009-03-31 20:40:20 +0400</bug_when>
    <thetext>В таком количестве разных юзерспейсов один плавающий дедлок?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88461</commentid>
    <comment_count>11</comment_count>
    <who name="Michail Yakushin">silicium</who>
    <bug_when>2009-03-31 23:00:49 +0400</bug_when>
    <thetext>можно выявить последовательность вызовов futexа которое заканчивается повисанием?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88505</commentid>
    <comment_count>12</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2009-04-01 17:19:45 +0400</bug_when>
    <thetext>(В ответ на комментарий №11)
&gt; можно выявить последовательность вызовов futexа которое заканчивается
&gt; повисанием?

а что, k3b у вас работает и не виснет? 
(см. условия в комменте #7)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89390</commentid>
    <comment_count>13</comment_count>
    <who name="redbaron">redbaron</who>
    <bug_when>2009-04-14 17:54:47 +0400</bug_when>
    <thetext>У одного пользователя стабильно раз в час-два виснет firefox, сидит на branch 5.0, firefox-3.0.8, ядро 2.6.27-std-def-alt15

strace -f -p &lt;pid&gt; показывает 4 зависших futex</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89475</commentid>
    <comment_count>14</comment_count>
    <who name="redbaron">redbaron</who>
    <bug_when>2009-04-15 14:39:13 +0400</bug_when>
    <thetext>(В ответ на комментарий №13)
&gt; У одного пользователя стабильно раз в час-два виснет firefox, сидит на branch
&gt; 5.0, firefox-3.0.8, ядро 2.6.27-std-def-alt15
&gt; 
&gt; strace -f -p &lt;pid&gt; показывает 4 зависших futex

После удаления всего профиля и импорта только закладок (никаких расширений). Подвисания стали носить другой характер - теперь очень быстрый бесконечный цикл, жрёт весь проц.

[pid 17100] clock_gettime(CLOCK_REALTIME, {1239789551, 139823}) = 0
[pid 17100] futex(0xa77fefc4, FUTEX_WAIT_PRIVATE, 1, {0, 19914177}) = -1 ETIMEDOUT (Connection timed out)
[pid 17100] gettimeofday({1239789551, 20225}, NULL) = 0
[pid 17100] clock_gettime(CLOCK_REALTIME, {1239789551, 20340802}) = 0
[pid 17100] futex(0xa77fefc4, FUTEX_WAIT_PRIVATE, 1, {0, 19884198}) = -1 ETIMEDOUT (Connection timed out)
[pid 17100] gettimeofday({1239789551, 66618}, NULL) = 0
[pid 17100] clock_gettime(CLOCK_REALTIME, {1239789551, 66721114}) = 0
[pid 17100] futex(0xa77fefc4, FUTEX_WAIT_PRIVATE, 1, {0, 19896886}) = -1 ETIMEDOUT (Connection timed out)
[pid 17100] gettimeofday({1239789551, 86806}, NULL) = 0
[pid 17100] clock_gettime(CLOCK_REALTIME, {1239789551, 86849329}) = 0
[pid 17100] futex(0xa77fefc4, FUTEX_WAIT_PRIVATE, 1, {0, 19956671}) = -1 ETIMEDOUT (Connection timed out)
[pid 17100] gettimeofday({1239789551, 106945}, NULL) = 0
[pid 17100] clock_gettime(CLOCK_REALTIME, {1239789551, 106987948}) = 0
[pid 17100] futex(0xa77fefc4, FUTEX_WAIT_PRIVATE, 1, {0, 19957052}) = -1 ETIMEDOUT (Connection timed out)
[pid 17100] gettimeofday({1239789551, 127085}, NULL) = 0
[pid 17100] clock_gettime(CLOCK_REALTIME, {1239789551, 127128823}) = 0
[pid 17100] futex(0xa77fefc4, FUTEX_WAIT_PRIVATE, 1, {0, 19956177}) = -1 ETIMEDOUT (Connection timed out)
[pid 17100] gettimeofday({1239789551, 147298}, NULL) = 0
[pid 17100] clock_gettime(CLOCK_REALTIME, {1239789551, 147341509}) = 0
[pid 17100] futex(0xa77fefc4, FUTEX_WAIT_PRIVATE, 1, {0, 19956491}) = -1 ETIMEDOUT (Connection timed out)
[pid 17100] gettimeofday({1239789551, 167531}, NULL) = 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110258</commentid>
    <comment_count>15</comment_count>
    <who name="Michail Yakushin">silicium</who>
    <bug_when>2010-07-02 10:16:51 +0400</bug_when>
    <thetext>Это проблема неправильного юзерспейса.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>