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

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

    <bug>
          <bug_id>31739</bug_id>
          
          <creation_ts>2016-01-28 21:01:16 +0300</creation_ts>
          <short_desc>Не выполняется exec корректно</short_desc>
          <delta_ts>2016-01-28 22:35:37 +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>tk</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></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="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Vladimir D. Seleznev">vseleznv</assigned_to>
          <cc>vseleznv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>154744</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2016-01-28 21:01:16 +0300</bug_when>
    <thetext>Предположительно после обновления до git-gui-2.6.5-alt2 перестал запускаться git gui.

Сообщение:
Cannot determine Git version:

error waiting for process to exit: child process lost (is SIGCHLD ignored or trapped?)

Git Gui requires Git 1.5.0 or later.

Код проверки:
if {[catch {set _git_version [git --version]} err]} {
&lt;------&gt;catch {wm withdraw .}
&lt;------&gt;tk_messageBox \
&lt;------&gt;&lt;------&gt;-icon error \
&lt;------&gt;&lt;------&gt;-type ok \
&lt;------&gt;&lt;------&gt;-title [mc &quot;git-gui: fatal error&quot;] \
&lt;------&gt;&lt;------&gt;-message &quot;Cannot determine Git version:

$err

[appname] requires Git 1.5.0 or later.&quot;
&lt;------&gt;exit 1
}


На другой машине, равно обновлённой до Сизифа, всё работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154746</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2016-01-28 22:09:03 +0300</bug_when>
    <thetext>Тестовый скрипт:
#!/usr/bin/wish

set _git  {/usr/bin/git}

proc _git_cmd {name} {
        return [list $::_git $name]
}

proc git {args} {
        set opt [list]

        set cmdp [_git_cmd [lindex $args 0]]
        set args [lrange $args 1 end]

        set result [eval exec $opt $cmdp $args]
        puts stderr &quot;&lt; $result&quot;
        return $result
}

git --version

strace:

pid 13416] pipe([6&lt;pipe:[143743268]&gt;, 7&lt;pipe:[143743268]&gt;]) = 0
[pid 13416] fcntl(6&lt;pipe:[143743268]&gt;, F_SETFD, FD_CLOEXEC) = 0
[pid 13416] fcntl(7&lt;pipe:[143743268]&gt;, F_SETFD, FD_CLOEXEC) = 0
[pid 13416] open(&quot;/tmp/tcliCOyqF&quot;, O_RDWR|O_CREAT|O_EXCL, 0600) = 9&lt;/tmp/tcliCOyqF&gt;
[pid 13416] fcntl(9&lt;/tmp/tcliCOyqF&gt;, F_SETFD, FD_CLOEXEC) = 0
[pid 13416] unlink(&quot;/tmp/tcliCOyqF&quot;)    = 0
[pid 13416] pipe([10&lt;pipe:[143743271]&gt;, 11&lt;pipe:[143743271]&gt;]) = 0
[pid 13416] fcntl(10&lt;pipe:[143743271]&gt;, F_SETFD, FD_CLOEXEC) = 0
[pid 13416] fcntl(11&lt;pipe:[143743271]&gt;, F_SETFD, FD_CLOEXEC) = 0
[pid 13416] close(11&lt;pipe:[143743271]&gt;) = 0
[pid 13416] read(10&lt;pipe:[143743271]&gt;, &quot;&quot;, 223) = 0
[pid 13416] close(10&lt;pipe:[143743271]&gt;) = 0
[pid 13416] close(7&lt;pipe:[143743268]&gt;)  = 0
[pid 13416] read(6&lt;pipe:[143743268]&gt;, &quot;&quot;, 4096) = 0
[pid 13416] close(6&lt;pipe:[143743268]&gt;)  = 0
[pid 13416] ioctl(9&lt; (deleted)/tmp/tcliCOyqF&gt;, TCGETS, 0x7ffe29879b50) = -1 ENOTTY (Inappropriate ioctl for device)
[pid 13416] getsockname(9&lt; (deleted)/tmp/tcliCOyqF&gt;, 0x7ffe29879bf0, 0x7ffe29879bec) = -1 ENOTSOCK (Socket operation on non-socket)
[pid 13416] wait4(1298893056, 0x7ffe29879bd0, 0, NULL) = -1 ECHILD (No child processes)
[pid 13416] lseek(9&lt; (deleted)/tmp/tcliCOyqF&gt;, 0, SEEK_SET) = 0
[pid 13416] read(9&lt; (deleted)/tmp/tcliCOyqF&gt;, &quot;&quot;, 4096) = 0
[pid 13416] close(9&lt; (deleted)/tmp/tcliCOyqF&gt;) = 0
[pid 13416] write(2&lt;/dev/pts/13&gt;, &quot;Error in startup script&quot;, 23Error in startup script) = 23</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154747</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2016-01-28 22:22:48 +0300</bug_when>
    <thetext>Судя по скрипту, проблема адресуется к wish из tk.
Проверялось на tk-8.5.9-alt3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154748</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2016-01-28 22:24:49 +0300</bug_when>
    <thetext>Было
# rpm -V tk
S.......   /usr/bin/wish8.5

то есть проблемы с размером файла.

После переустановки пакета tk всё заработало.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154749</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2016-01-28 22:35:37 +0300</bug_when>
    <thetext>Проблему вызывает запуск
# prelink /usr/bin/wish8.5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>