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

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

    <bug>
          <bug_id>8649</bug_id>
          
          <creation_ts>2005-12-15 00:47:32 +0300</creation_ts>
          <short_desc>[FR] better diag on DB corruption</short_desc>
          <delta_ts>2008-10-30 15:19:56 +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>osec</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>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>legion</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33861</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2005-12-15 00:47:32 +0300</bug_when>
    <thetext>&gt; --
&gt; void in_db::init()
&gt; {
&gt;         ::memset(cdbp_.get(),0,sizeof(cdb));
&gt;         CDB_ASSERT_LIBC(::cdb_init(cdbp_.get(), fd_));
&gt;         //calculate end of data offset
&gt;         end_offset_ = cdb_unpack(cdbp_.get()-&gt;cdb_mem); //first TOK entry
&gt;         CDB_ASSERT_SURE(end_offset_ &gt;= start_offset_);
&gt; }
&gt; --
&gt; 
&gt; То бишь это означает, что база на диске побилась.
&gt; Предлагаю почистить каталог с базами и сделать всё заново.

Встречное предложение -- выводить &quot;check/reinit database?&quot;.

&gt; &gt; fatal:Assertion &apos;end_offset_ &gt;= start_offset_&apos;
&gt; &gt; failed at file:db.cc:101</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33951</commentid>
    <comment_count>1</comment_count>
    <who name="Zerg">anubix</who>
    <bug_when>2005-12-17 13:10:10 +0300</bug_when>
    <thetext>(In reply to comment #0) 
&gt; Встречное предложение -- выводить &quot;check/reinit database?&quot;. 
По почте :-) 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77980</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2008-09-17 16:09:53 +0400</bug_when>
    <thetext>Можно подробнее описать, что вы предлагаете сделать ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78026</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2008-09-17 23:35:51 +0400</bug_when>
    <thetext>Если возможно идентифицировать проблему с базой, об этом стоит сообщить понятно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80483</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2008-10-30 15:19:55 +0300</bug_when>
    <thetext>Мне кажется, что сейчас osec достаточно понятно ругается на ошибки с базой.
Переоткройте, если есть конкретные предложения.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>