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

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

    <bug>
          <bug_id>23760</bug_id>
          
          <creation_ts>2010-07-12 23:17:24 +0400</creation_ts>
          <short_desc>Падает при индексации некоторых файлов</short_desc>
          <delta_ts>2010-10-27 12:11:00 +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>mpd</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Rahmatullin">wrar</reporter>
          <assigned_to name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</assigned_to>
          <cc>aen</cc>
    
    <cc>anatoly.bashmakov</cc>
    
    <cc>aris</cc>
    
    <cc>lakostis</cc>
    
    <cc>nenderus</cc>
    
    <cc>rider</cc>
    
    <cc>swi</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110549</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-07-12 23:17:24 +0400</bug_when>
    <thetext>(gdb) bt                                                                                                                                                     
#0  0x4ef5a247 in raise () from /lib/libc.so.6                                                                                                               
#1  0x4ef5b96a in abort () from /lib/libc.so.6                                                                                                               
#2  0x4ef533f7 in __assert_fail () from /lib/libc.so.6                                                                                                       
#3  0x0807737e in decoder_read (decoder=0x30, is=0x81eb655, buffer=0x82727a0, length=32768) at src/decoder_api.c:140                                         
#4  0x080624f8 in mpd_ffmpeg_read (h=0x826d750, buf=0x82727a0 &quot; &quot;, size=32768) at src/decoder/ffmpeg_plugin.c:91                                             
#5  0x4472f313 in get_buffer () from /usr/lib/libavformat.so.52                                                                                              
#6  0x000036c8 in ?? ()                                                                                                                                      
(gdb) fr 4
#4  0x080624f8 in mpd_ffmpeg_read (h=0x826d750, buf=0x82727a0 &quot; &quot;, size=32768) at src/decoder/ffmpeg_plugin.c:91
91              return decoder_read(stream-&gt;decoder, stream-&gt;input,
(gdb) fr 3
#3  0x0807737e in decoder_read (decoder=0x30, is=0x81eb655, buffer=0x82727a0, length=32768) at src/decoder_api.c:140
140             assert(decoder == NULL ||</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110550</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-07-12 23:19:07 +0400</bug_when>
    <thetext>Точнее, там то ABRT, то SEGV, но при decoder=0x30 я бы как раз SEGV ожидал, странно что в данном случае ассерт не прошёл.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110562</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-07-13 08:55:29 +0400</bug_when>
    <thetext>==11962== Invalid read of size 4
==11962==    at 0x806249F: mpd_ffmpeg_open (ffmpeg_plugin.c:83)
==11962==    by 0x4472DAA4: url_open (in /usr/lib/libavformat.so.52.71.0)
==11962==  Address 0x60e2880 is not stack&apos;d, malloc&apos;d or (recently) free&apos;d
==11962== 
==11962== Invalid read of size 1
==11962==    at 0x80624A2: mpd_ffmpeg_open (ffmpeg_plugin.c:83)
==11962==    by 0x4472DAA4: url_open (in /usr/lib/libavformat.so.52.71.0)
==11962==  Address 0x9 is not stack&apos;d, malloc&apos;d or (recently) free&apos;d

==11962== Process terminating with default action of signal 11 (SIGSEGV)
==11962==  Access not within mapped region at address 0x9
==11962==    at 0x80624A2: mpd_ffmpeg_open (ffmpeg_plugin.c:83)
==11962==    by 0x4472DAA4: url_open (in /usr/lib/libavformat.so.52.71.0)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110563</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-07-13 09:06:32 +0400</bug_when>
    <thetext>А падает оно всего лишь на файле из нулей (с расширением .mp3). На авишке какой-то ещё падало, но я её удалил. Не исключаю, что в ней тоже нули были.


#0  0x080624a2 in mpd_ffmpeg_open (h=0x80e4280, filename=0x80e429c &quot;mpd://X.mp3&quot;, flags=0) at src/decoder/ffmpeg_plugin.c:83
83              h-&gt;is_streamed = stream-&gt;input-&gt;seekable ? 0 : 1;

(gdb) p *stream
$4 = {url = &quot;mpd://X.mp3\000e/wr)\000\000\000\000C\016\bpdtest/02 The Human Stain.mpX\000\000\000\021\000\000\000яяяя&quot;, decoder = 0x0, input = 0x0}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114192</commentid>
    <comment_count>4</comment_count>
    <who name="swi">swi</who>
    <bug_when>2010-10-24 12:22:32 +0400</bug_when>
    <thetext>Подтверждаю. Тоже падало на update или создании базы.
0.15.13 пошло в сизиф. У меня падать перестало.
С пульс оно смешное.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114193</commentid>
    <comment_count>5</comment_count>
    <who name="swi">swi</who>
    <bug_when>2010-10-24 12:25:00 +0400</bug_when>
    <thetext>Подтверждаю. Тоже падало на update или создании базы.
0.15.13 пошло в сизиф. У меня падать перестало.
С пульс оно смешное.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114332</commentid>
    <comment_count>6</comment_count>
    <who name="tolya">anatoly.bashmakov</who>
    <bug_when>2010-10-27 00:58:18 +0400</bug_when>
    <thetext>Похоже, что с 0.15.13 не падает (с 0.15.8 падало)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114359</commentid>
    <comment_count>7</comment_count>
    <who name="swi">swi</who>
    <bug_when>2010-10-27 12:11:00 +0400</bug_when>
    <thetext>0.15.13</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>