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

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

    <bug>
          <bug_id>2790</bug_id>
          
          <creation_ts>2003-07-29 16:59:57 +0400</creation_ts>
          <short_desc>syslogd dies if logfile reaches 2G-1 limit</short_desc>
          <delta_ts>2003-08-25 15:18:52 +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>syslogd</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>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sir Raorn">raorn</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2551</commentid>
    <comment_count>0</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2003-07-29 16:59:57 +0400</bug_when>
    <thetext>Демон умирает по SIGXFSZ (File size limit exceeded) если один из его логфайлов разрастается до двух гигабайт (2147483647 байт). Файл открывается успешно, но попытка записи перерубается сигналом. После этого демон не стартует.

В случае когда файл больше 2G-1, open(2) возвращает EBIG и этот файл просто пропускается.

На файловой системе квот/ограничений нет (ext2/ext3, я лично создавал большие файлы). Кусок strace в Additional Information.
---

---
5033  select(47, [3 44 45 46], NULL, NULL, NULL) = 1 (in [44])
5033  recv(44, \&amp;quot;&amp;lt;134&amp;gt;Jul 29 16:52:45 postgres[37\&amp;quot;..., 1022, 0) = 75
5033  time([1059483165])                = 1059483165
5033  writev(39, [{\&amp;quot;Jul 29 16:52:45\&amp;quot;, 15}, {\&amp;quot; \&amp;quot;, 1}, {\&amp;quot;namo\&amp;quot;, 4}, {\&amp;quot; \&amp;quot;, 1}, {\&amp;quot;postgres[3759]: [1410330] LOG:  \&amp;quot;..., 54}, {\&amp;quot;\\n\&amp;quot;, 1}], 6) = 76
5033  writev(42, [{\&amp;quot;Jul 29 16:52:45\&amp;quot;, 15}, {\&amp;quot; \&amp;quot;, 1}, {\&amp;quot;namo\&amp;quot;, 4}, {\&amp;quot; \&amp;quot;, 1}, {\&amp;quot;postgres[3759]: [1410330] LOG:  \&amp;quot;..., 54}, {\&amp;quot;\\n\&amp;quot;, 1}], 6) = -1 EFBIG (File too large)
5033  --- SIGXFSZ (File size limit exceeded) @ 0 (0) ---
5033  +++ killed by SIGXFSZ +++
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5659</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-07-29 18:39:10 +0400</bug_when>
    <thetext>Try to recompile with
%add_optflags -D_FILE_OFFSET_BITS=64
line added in %build section.

It should work but I have no platform for test ATM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9028</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-07-29 18:39:10 +0400</bug_when>
    <thetext>Try to recompile with
%add_optflags -D_FILE_OFFSET_BITS=64
line added in %build section.

It should work but I have no platform for test ATM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5660</commentid>
    <comment_count>3</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2003-07-30 11:22:48 +0400</bug_when>
    <thetext>%add_optflags -D_FILE_OFFSET_BITS=64 works just fine.

Security update would be nice ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9029</commentid>
    <comment_count>4</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2003-07-30 11:22:48 +0400</bug_when>
    <thetext>%add_optflags -D_FILE_OFFSET_BITS=64 works just fine.

Security update would be nice ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5661</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-07-30 16:35:18 +0400</bug_when>
    <thetext>Fixed in sysklogd-1.4.1-alt15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9030</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-07-30 16:35:18 +0400</bug_when>
    <thetext>Fixed in sysklogd-1.4.1-alt15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5662</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-08-05 15:58:57 +0400</bug_when>
    <thetext>Fixed in errata.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9031</commentid>
    <comment_count>8</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-08-05 15:58:57 +0400</bug_when>
    <thetext>Fixed in errata.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>