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

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

    <bug>
          <bug_id>28749</bug_id>
          
          <creation_ts>2013-03-25 21:11:22 +0400</creation_ts>
          <short_desc>Maximum RSS calculation incorrect</short_desc>
          <delta_ts>2013-04-19 00:11: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>time</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>http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700934</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="Dmitry Chistikov">dd1email</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>139062</commentid>
    <comment_count>0</comment_count>
      <attachid>5788</attachid>
    <who name="Dmitry Chistikov">dd1email</who>
    <bug_when>2013-03-25 21:11:22 +0400</bug_when>
    <thetext>Created attachment 5788
test for GNU time

Мой коллега обнаружил, что GNU time в Debian неправильно определяет maximum RSS (см. ссылку). Бага воспроизводится и у нас; насколько удалось нагуглить, некоторые дистрибутивы ее обнаруживали и исправляли, а вот апстрим, похоже, уже не больно-то жив. Патч, насколько я понимаю, практически прямолинеен (см. объяснения по ссылке).

[altlinux@localhost ~]$ gcc -std=c99 -O0 test-time.c 
[altlinux@localhost ~]$ /usr/bin/time ./a.out 
0.00user 0.00system 0:00.00elapsed 88%CPU (0avgtext+0avgdata 5472maxresident)k
0inputs+0outputs (0major+379minor)pagefaults 0swaps

(4MB вместо 1MB, далее точно так же 8MB вместо 2MB с #define NUM 2)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139063</commentid>
    <comment_count>1</comment_count>
      <attachid>5789</attachid>
    <who name="Dmitry Chistikov">dd1email</who>
    <bug_when>2013-03-25 21:13:05 +0400</bug_when>
    <thetext>Created attachment 5789
test for GNU time</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139744</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2013-04-19 00:11:03 +0400</bug_when>
    <thetext>time-1:1.7-alt3 -&gt; sisyphus:

* Thu Apr 18 2013 Dmitry V. Levin &lt;ldv@altlinux&gt; 1:1.7-alt3
- Merged two fixes from Fedora (closes: #28749).
- Built with LFS support enabled.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5788</attachid>
            <date>2013-03-25 21:11:22 +0400</date>
            <delta_ts>2013-03-25 21:13:05 +0400</delta_ts>
            <desc>test for GNU time</desc>
            <filename>test-time.c</filename>
            <type>text/plain</type>
            <size>235</size>
            <attacher name="Dmitry Chistikov">dd1email</attacher>
            
              <data encoding="base64">I2luY2x1ZGU8c3RkbGliLmg+CgojZGVmaW5lIE1FR0FCWVRFIDEwNDg1NzYKI2RlZmluZSBOVU0g
MgoKaW50IG1haW4oaW50IGFyZ2MsIGNvbnN0IGNoYXIgKiphcmd2KSB7CiAgICAgICAgY2hhciAq
ZHVtbXkgPSBtYWxsb2MoTlVNICogTUVHQUJZVEUpOwogICAgICAgIGZvciAodW5zaWduZWQgaSA9
IDA7IGk8ICBOVU0gKiBNRUdBQllURTsgaSArKykgZHVtbXlbaV0gPSAxOwogICAgICAgIHJldHVy
biAwOwp9Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5789</attachid>
            <date>2013-03-25 21:13:05 +0400</date>
            <delta_ts>2013-03-25 21:13:05 +0400</delta_ts>
            <desc>test for GNU time</desc>
            <filename>test-time.c</filename>
            <type>text/plain</type>
            <size>235</size>
            <attacher name="Dmitry Chistikov">dd1email</attacher>
            
              <data encoding="base64">I2luY2x1ZGU8c3RkbGliLmg+CgojZGVmaW5lIE1FR0FCWVRFIDEwNDg1NzYKI2RlZmluZSBOVU0g
MQoKaW50IG1haW4oaW50IGFyZ2MsIGNvbnN0IGNoYXIgKiphcmd2KSB7CiAgICAgICAgY2hhciAq
ZHVtbXkgPSBtYWxsb2MoTlVNICogTUVHQUJZVEUpOwogICAgICAgIGZvciAodW5zaWduZWQgaSA9
IDA7IGk8ICBOVU0gKiBNRUdBQllURTsgaSArKykgZHVtbXlbaV0gPSAxOwogICAgICAgIHJldHVy
biAwOwp9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>