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

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

    <bug>
          <bug_id>8395</bug_id>
          
          <creation_ts>2005-11-02 01:23:44 +0300</creation_ts>
          <short_desc>Отваливается из-за ошибки в базе песен.</short_desc>
          <delta_ts>2008-07-06 02:58:46 +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>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexei V. Mezin">alexei.mezin</reporter>
          <assigned_to name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</assigned_to>
          <cc>aris</cc>
    
    <cc>lakostis</cc>
    
    <cc>nenderus</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32749</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei V. Mezin">alexei.mezin</who>
    <bug_when>2005-11-02 01:23:44 +0300</bug_when>
    <thetext>[alexei@threebears alexei]$ rpm -q mpd    
mpd-0.11.5-alt1.1


После генерации базы с песнями при запуске отваливается:
[alexei@threebears .mpd]$ mpd --verbose --no-daemon   ~/.mpd/mpd.conf
setFsCharset: fs charset is: CP1251
songinfo: unknown line in db:

Вероятная проблема: пустая строка в файле с базой. Решение найдено по адресу
http://www.musicpd.org/mantis/view.php?id=483

--- song.c.orig 2005-05-09 10:04:50.058063096 +0000
+++ song.c 2005-05-09 10:01:14.425844176 +0000
@@ -247,6 +247,9 @@
                else if(0==strncmp(SONG_MTIME,buffer,strlen(SONG_MTIME))) {
                        song-&gt;mtime = atoi(&amp;(buffer[strlen(SONG_TITLE)]));
                }
+ else if(0==strlen(buffer)) {
+ /* do nothing */
+ }
                else {
                        ERROR(&quot;songinfo: unknown line in db: %s\n&quot;,buffer);
                        exit(EXIT_FAILURE);


Проверено. Проблему решает. Все заработало.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32752</commentid>
    <comment_count>1</comment_count>
    <who name="algor">algor</who>
    <bug_when>2005-11-02 09:53:39 +0300</bug_when>
    <thetext>mpd-0.11.5-alt1.2 в инкаминге.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>