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

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

    <bug>
          <bug_id>9051</bug_id>
          
          <creation_ts>2006-02-11 02:31:09 +0300</creation_ts>
          <short_desc>Похоже, есть проблема с true/false</short_desc>
          <delta_ts>2007-09-20 02:30:21 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Archive</classification>
          <product>Branch 3.0</product>
          <component>kernel-image-std26-up</component>
          <version>3.0</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Sergey Vlasov">vsu</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="at@altlinux.org">at</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35637</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-11 02:31:12 +0300</bug_when>
    <thetext>При использовании в Makefile команд true или false 
происходит SegFault. 
 
Вот что происходит с прилагаемым файлом: 
$ ls Makefile -l 
-rw-r--r-- 1 lav users 120 Фев 11 02:33 Makefile 
$ make 
echo &quot;timestamp&quot; &gt;stamp-eggtypebuiltins.h 
make: *** [eggtypebuiltins.h] Segmentation fault (сделан дамп памяти) 
 
$ rpmqf true 
coreutils-5.93-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35638</commentid>
    <comment_count>1</comment_count>
      <attachid>1383</attachid>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-11 02:32:27 +0300</bug_when>
    <thetext>Created attachment 1383
Makefile for problem reproduce</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35641</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2006-02-11 13:42:21 +0300</bug_when>
    <thetext>На alt1 не падает.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35652</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-02-11 20:13:52 +0300</bug_when>
    <thetext>Не падает:

$ rpmquery coreutils make sh
coreutils-5.93-alt2
make-3.81beta4-alt1
sh-3.1.7-alt1

Запустите strace, посмотрите, что у вас неисправно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35660</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-12 02:07:24 +0300</bug_when>
    <thetext>И так не воспроизводится? 
$ /bin/true QTDIR=/usr/lib/qt3/ MC_SID=1936 LINES=24 COLUMNS=127 
SHELL=/bin/bash 
Segmentation fault </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35663</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-12 02:14:22 +0300</bug_when>
    <thetext>Ну я не знаю :( 
 
execve(&quot;/bin/true&quot;, [&quot;/bin/true&quot;], [/* 92 vars */]) = -1 EFAULT (Bad address) 
--- SIGSEGV (Segmentation fault) @ 0 (0) --- 
+++ killed by SIGSEGV (core dumped) +++ 
Process 2907 detached 
 
$ md5sum /bin/true 
3a4776ba7a9465b4aa5a95b88f2bdd2b  /bin/true </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35664</commentid>
    <comment_count>6</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-12 02:15:53 +0300</bug_when>
    <thetext>У меня воспроизводится на любой машине и в hasher. 
Достаточно запустить 
$ /bin/true 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35668</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-02-12 03:21:32 +0300</bug_when>
    <thetext>Плохо дело в вашей системе: /bin/true даже не запускается.
Попробуйте ещё 2 теста:
$ env -i strace -v /bin/true
$ strace -v /bin/true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35677</commentid>
    <comment_count>8</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-12 15:02:57 +0300</bug_when>
    <thetext>$ env -i strace -v /bin/true 
execve(&quot;/bin/true&quot;, [&quot;/bin/true&quot;], [])  = -1 EFAULT (Bad address) 
--- SIGSEGV (Segmentation fault) @ 0 (0) --- 
+++ killed by SIGSEGV +++ 
Process 26750 detached 
 
$ strace -v /bin/true 
execve(&quot;/bin/true&quot;, [&quot;/bin/true&quot;], [&quot;GTK_FILESEL_SIMPLE=0&quot;, 
&quot;LESSKEY=/etc/.less&quot;, &quot;KDE_MULTIHEAD=false&quot;, &quot;SSH_AGENT_PID=21591&quot;, 
&quot;DM_CONTROL=/var/run/xdmctl&quot;, &quot;HOSTNAME=lav.sp.ru&quot;, 
&quot;GPG_AGENT_INFO=/tmp/gpg-gv5asy/S&quot;..., &quot;TERM=xterm&quot;, &quot;SHELL=/bin/bash&quot;, 
&quot;AEGIS_AUTOMOUNT_POINTS=/tmp_mnt:&quot;..., &quot;XDM_MANAGED=/var/run/xdmctl/xdmc&quot;..., 
&quot;HISTSIZE=9999&quot;, &quot;GTK2_RC_FILES=/usr/share/themes/&quot;..., 
&quot;TMPDIR=/tmp/.private/lav&quot;, &quot;GTK_RC_FILES=/usr/share/themes/I&quot;..., 
&quot;GS_LIB=/home/lav/.fonts&quot;, &quot;WINDOWID=33554439&quot;, &quot;KDEHOME=/home/lav/.kde&quot;, 
&quot;QTDIR=/usr/lib/qt3/&quot;, &quot;QTINC=/usr/lib/qt3/include/&quot;, 
&quot;TMAKEPATH=/usr/lib/tmake/linux-g&quot;..., &quot;KDE_FULL_SESSION=true&quot;, 
&quot;XLIB_SKIP_ARGB_VISUALS=1&quot;, &quot;KDEVARTMP=/tmp/.private/lav&quot;, &quot;USER=lav&quot;, 
&quot;HISTFILESIZE=9999&quot;, &quot;LS_COLORS=&quot;, &quot;SSH_AUTH_SOCK=/home/lav/.ssh/age&quot;..., 
&quot;KDEDIR=/usr&quot;, &quot;SESSION_MANAGER=local/lav.sp.ru:&quot;..., &quot;USERNAME=&quot;, 
&quot;COLUMNS=80&quot;, &quot;XDG_CONFIG_DIRS=/etc/xdg:/etc/kd&quot;..., 
&quot;KONSOLE_DCOP=DCOPRef(konsole-217&quot;..., &quot;MINICOM= -c on -8&quot;, 
&quot;PATH=/home/lav/bin/et:/home/lav/&quot;..., &quot;DESKTOP_SESSION=KDE&quot;, 
&quot;MAIL=/var/mail/lav&quot;, &quot;KONSOLE_DCOP_SESSION=DCOPRef(kon&quot;..., &quot;PWD=/home/lav&quot;, 
&quot;INPUTRC=/etc/inputrc&quot;, &quot;JAVA_HOME=/usr/lib/j2se1.4-black&quot;..., &quot;EDITOR=edr&quot;, 
&quot;LANG=ru_RU.KOI8-R&quot;, &quot;GTK_FILESEL_NO_ICONS=1&quot;, &quot;HELP_BROWSER=konqueror 
--profile&quot;..., &quot;LINES=42&quot;, &quot;SSH_ASKPASS=/usr/lib/openssh/ssh&quot;..., 
&quot;GPG_TTY=\316\305 \324\305\314\305\324\301\312\320&quot;, &quot;HOME=/home/lav&quot;, 
&quot;SHLVL=2&quot;, &quot;GIVERTCAP=/usr/bin/givertcap&quot;, &quot;XCURSOR_THEME=jimmac&quot;, 
&quot;BASH_ENV=/home/lav/.bashrc&quot;, &quot;LOGNAME=lav&quot;, &quot;TMP=/tmp/.private/lav&quot;, 
&quot;LESS=-MM&quot;, &quot;G_FILENAME_ENCODING=koi8-r&quot;, &quot;CVS_RSH=ssh&quot;, 
&quot;QTLIB=/usr/lib/qt3/lib/&quot;, &quot;MPAGE=-CKOI8-R&quot;, 
&quot;XDG_DATA_DIRS=/usr/share:/var/ca&quot;..., &quot;LESSOPEN=|/usr/share/less/lesspi&quot;..., 
&quot;XMP_LIB_PATH=/usr/lib/xmp&quot;, &quot;BROWSER=konqueror --profile webb&quot;..., 
&quot;KDETMP=/tmp/.private/lav&quot;, &quot;DISPLAY=:0&quot;, &quot;LADSPA_PATH=/usr/lib/ladspa&quot;, 
&quot;GTK_FILESEL_NO_MIME=1&quot;, &quot;G_BROKEN_FILENAMES=1&quot;, &quot;COLORTERM=&quot;, 
&quot;XAUTHORITY=/home/lav/.Xauthority&quot;..., &quot;_=/usr/bin/strace&quot;]) = -1 EFAULT (Bad 
address) 
--- SIGSEGV (Segmentation fault) @ 0 (0) --- 
+++ killed by SIGSEGV +++ 
Process 11118 detached 
 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35678</commentid>
    <comment_count>9</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-12 15:04:29 +0300</bug_when>
    <thetext>У меня воспроизводится просто на любой машине. Берём скрипт и запускаем: 
#!/bin/sh 
HASHDIR=/srv/lav/hsh-test 
hsh --initroot-only $HASHDIR 
hsh-install $HASHDIR mc 
echo Run /bin/true for testing... 
hsh-shell $HASHDIR 
 
$ ./1.sh 
Components: hasher 
Processing pkglists... hasher done 
Processing srclists...  hasher done 
Creating component releases... done 
Updating global release file... done 
Appending MD5Sum... hasher done 
All your base are belong to us!!! 
... 
Preparing packages for installation... 
libslang-1.4.9-alt1 
mc-4.6.1r-alt3 
Run /bin/true for testing... 
[builder@lav .in]$ /bin/true 
Segmentation fault 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35682</commentid>
    <comment_count>10</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-02-12 18:58:45 +0300</bug_when>
    <thetext>Если
execve(&quot;/bin/true&quot;, [&quot;/bin/true&quot;], [])  = -1 EFAULT (Bad address)
значит, виновато ядро.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35696</commentid>
    <comment_count>11</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-12 22:32:28 +0300</bug_when>
    <thetext>Только что произвёл опыт на машине, где обновления не было и /bin/true 
работал. Обновил coreutils и получил SegFault. 
 
/var/log/messages: 
Feb 12 22:29:54 office rpm: coreutils-0:5.93-alt2 installed 
Feb 12 22:29:56 office rpm: coreutils-0:5.92-alt1 removed 
 
Вот ядра на машинах: 
# uname -a 
Linux lav.sp.ru 2.6.12-std26-up-alt4 #1 Tue Aug 16 04:29:11 MSD 2005 i686 
GNU/Linux 
 
# uname -a 
Linux office.pecgalateja.ru 2.6.12-std26-smp-alt4 #1 SMP Tue Aug 16 04:28:27 
MSD 2005 i686 GNU/Linux 
 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35699</commentid>
    <comment_count>12</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-02-12 22:56:25 +0300</bug_when>
    <thetext>Придётся багу закрыть, поскольку у меня весь Сизиф пересобрался на этих сборках
bash и coreutils c разными ядрами, от 2.4.26-std-smp-alt13 до
2.6.14-std26-up-alt5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35704</commentid>
    <comment_count>13</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2006-02-12 23:43:58 +0300</bug_when>
    <thetext>На 2.6.12-std26-up-alt9 действительно не работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35705</commentid>
    <comment_count>14</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2006-02-12 23:44:24 +0300</bug_when>
    <thetext>Reassigned to maintainer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35706</commentid>
    <comment_count>15</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-13 01:24:38 +0300</bug_when>
    <thetext>Мне кажется, или coreutils не должны быть такими, чтобы перестать 
работать даже на старых ядрах? </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35720</commentid>
    <comment_count>16</comment_count>
    <who name="Kachalov Anton">mouse</who>
    <bug_when>2006-02-13 11:01:59 +0300</bug_when>
    <thetext>(In reply to comment #15)
&gt; Мне кажется, или coreutils не должны быть такими, чтобы перестать 
&gt; работать даже на старых ядрах? 

Если ядро глючное, то coreutils имеют полное право оставаться такими, какими они
являются.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36348</commentid>
    <comment_count>17</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2006-03-01 17:34:48 +0300</bug_when>
    <thetext>Fixed in std26-*-2.6.12-alt10.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1383</attachid>
            <date>2006-02-11 02:32:27 +0300</date>
            <delta_ts>2006-02-11 02:32:27 +0300</delta_ts>
            <desc>Makefile for problem reproduce</desc>
            <filename>Makefile</filename>
            <type>text/plain</type>
            <size>120</size>
            <attacher name="Vitaly Lipatov">lav</attacher>
            
              <data encoding="base64">CmVnZ3R5cGVidWlsdGlucy5oOiBzdGFtcC1lZ2d0eXBlYnVpbHRpbnMuaAoJQHRydWUKCnN0YW1w
LWVnZ3R5cGVidWlsdGlucy5oOgoJZWNobyAidGltZXN0YW1wIiA+c3RhbXAtZWdndHlwZWJ1aWx0
aW5zLmgK
</data>

          </attachment>
      

    </bug>

</bugzilla>