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

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

    <bug>
          <bug_id>30029</bug_id>
          
          <creation_ts>2014-04-24 14:47:18 +0400</creation_ts>
          <short_desc>ssh-agent удаляет сокет при отсутствующем ssh-askpass</short_desc>
          <delta_ts>2014-05-16 18:02:15 +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>openssh</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>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Farygin">rider</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>rider</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>146334</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-04-24 14:47:18 +0400</bug_when>
    <thetext>[root@riderbook ~]# strace -fF -p 24033
Process 24033 attached
select(4, [3], [], NULL, NULL)          = 1 (in [3])
accept(3, {sa_family=AF_LOCAL, NULL}, [2]) = 4
getsockopt(4, SOL_SOCKET, SO_PEERCRED, {pid=24459, uid=500, gid=500}, [12]) = 0
getuid()                                = 500
fcntl(4, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
select(5, [3 4], [], NULL, NULL)        = 1 (in [4])
read(4, &quot;\0\0\0\1\v&quot;, 1024)             = 5
select(5, [3 4], [4], NULL, NULL)       = 1 (out [4])
write(4, &quot;\0\0\1\325\f\0\0\0\1\0\0\1\261\0\0\0\7ssh-dss\0\0\0\201\0\214,\356&quot;..., 473) = 473
select(5, [3 4], [], NULL, NULL)        = 1 (in [4])
read(4, &quot;\0\0\3\314\r\0\0\1\261\0\0\0\7ssh-dss\0\0\0\201\0\214,\356B\324`.&quot;..., 1024) = 976
getsockopt(4, SOL_SOCKET, SO_PEERCRED, {pid=24459, uid=500, gid=500}, [12]) = 0
open(&quot;/proc/24459/cmdline&quot;, O_RDONLY)   = 5
read(5, &quot;ssh\0riderkvms\0-AY\0&quot;, 79)    = 18
close(5)                                = 0
pipe([5, 6])                            = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
clone(Process 24460 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f65a10bb9d0) = 24460
[pid 24460] getuid( &lt;unfinished ...&gt;
[pid 24033] close(6 &lt;unfinished ...&gt;
[pid 24460] &lt;... getuid resumed&gt; )      = 500
[pid 24033] &lt;... close resumed&gt; )       = 0
[pid 24460] getuid( &lt;unfinished ...&gt;
[pid 24033] read(5,  &lt;unfinished ...&gt;
[pid 24460] &lt;... getuid resumed&gt; )      = 500
[pid 24460] setresuid(500, 500, 500)    = 0
[pid 24460] getuid()                    = 500
[pid 24460] geteuid()                   = 500
[pid 24460] close(5)                    = 0                                                                                                                  
[pid 24460] dup2(6, 1)                  = 1
[pid 24460] execve(&quot;/usr/lib/openssh/ssh-askpass&quot;, [&quot;/usr/lib/openssh/ssh-askpass&quot;, &quot;Allow use of key /home/rider/.ss&quot;...], [/* 43 vars */]) = -1 ENOENT (No such file or directory)
[pid 24460] open(&quot;/etc/localtime&quot;, O_RDONLY|O_CLOEXEC) = 5
[pid 24460] fstat(5, {st_mode=S_IFREG|0644, st_size=1464, ...}) = 0
[pid 24460] fstat(5, {st_mode=S_IFREG|0644, st_size=1464, ...}) = 0
[pid 24460] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f65a10e4000
[pid 24460] read(5, &quot;TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\0\0\0\16\0\0\0\0&quot;..., 4096) = 1464
[pid 24460] lseek(5, -898, SEEK_CUR)    = 566
[pid 24460] read(5, &quot;TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\0\0\0\17\0\0\0\0&quot;..., 4096) = 898
[pid 24460] close(5)                    = 0
[pid 24460] munmap(0x7f65a10e4000, 4096) = 0
[pid 24460] socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5
[pid 24460] connect(5, {sa_family=AF_LOCAL, sun_path=&quot;/dev/log&quot;}, 110) = 0
[pid 24460] sendto(5, &quot;&lt;34&gt;Apr 24 14:44:49 ssh-agent[24&quot;..., 119, MSG_NOSIGNAL, NULL, 0) = 119
[pid 24460] close(5)                    = 0
[pid 24460] unlink(&quot;/home/rider/.ssh/agent&quot;) = 0
[pid 24460] exit_group(255)             = ?
[pid 24460] +++ exited with 255 +++
&lt;... read resumed&gt; &quot;&quot;, 1023)            = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24460, si_status=255, si_utime=0, si_stime=0} ---
close(5)                                = 0
wait4(24460, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 255}], 0, NULL) = 24460
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
select(5, [3 4], [4], NULL, NULL)       = 1 (out [4])
write(4, &quot;\0\0\0\1\5&quot;, 5)               = 5
select(5, [3 4], [], NULL, NULL)        = 1 (in [4])
read(4, &quot;&quot;, 1024)                       = 0
close(4)                                = 0
select(4, [3], [], NULL, NULL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146339</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2014-04-25 00:43:22 +0400</bug_when>
    <thetext>Fixed in http://git.altlinux.org/people/ldv/packages/?p=openssh.git;a=commitdiff;h=6.6p1-alt2-1-g4c865a3
Filed upstream bug with the fix at https://bugzilla.mindrot.org/show_bug.cgi?id=2236</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146346</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-04-25 17:09:25 +0400</bug_when>
    <thetext>а в p7 когда упадёт ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146347</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2014-04-25 17:21:06 +0400</bug_when>
    <thetext>(In reply to comment #2)
&gt; а в p7 когда упадёт ?

Я и в Сизиф не отправлял - ошибка очень редкая.
Обычно какой-нибудь ssh-askpass в системе уже установлен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146349</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-04-25 17:28:57 +0400</bug_when>
    <thetext>Это дефолтный kdesktop-7

На эту же ошибку нарвался lioka, но проигнорировал, т.к. понятны пути объезда</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146350</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2014-04-25 17:48:51 +0400</bug_when>
    <thetext>(In reply to comment #4)
&gt; Это дефолтный kdesktop-7
&gt; 
&gt; На эту же ошибку нарвался lioka, но проигнорировал, т.к. понятны пути объезда

Автор kdesktop в курсе?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146355</commentid>
    <comment_count>6</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-04-25 18:43:48 +0400</bug_when>
    <thetext>да, сидит вот собирает kde4-askpass ;)
но мне от этого как ты догадываешься не особо легко ;) я к askpass вообще не привык, если честно</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146357</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2014-04-25 18:47:55 +0400</bug_when>
    <thetext>(In reply to comment #6)
&gt; я к askpass вообще не привык, если честно

Как же ты жил все эти годы? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146358</commentid>
    <comment_count>8</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-04-25 18:48:35 +0400</bug_when>
    <thetext>не замечал никаких проблем, за исключением этой волшебной ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146363</commentid>
    <comment_count>9</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2014-04-26 06:34:23 +0400</bug_when>
    <thetext>openssh-6.6p1-alt3 -&gt; sisyphus:

* Fri Apr 25 2014 Dmitry V. Levin &lt;ldv@altlinux&gt; 6.6p1-alt3
- ssh-agent: fixed unintended socket removal (closes: #30029).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146601</commentid>
    <comment_count>10</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-05-16 17:15:35 +0400</bug_when>
    <thetext>Отправь его ещё в p7, пожалуйста.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146603</commentid>
    <comment_count>11</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2014-05-16 17:48:19 +0400</bug_when>
    <thetext>(In reply to comment #10)
&gt; Отправь его ещё в p7, пожалуйста.

Новую версию openssh, или только этот фикс?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146604</commentid>
    <comment_count>12</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-05-16 18:02:15 +0400</bug_when>
    <thetext>мне нужен только этот фикс.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>