On 2009/02/10 14:46, Romain Bignon <rom...@peerfuse.org> wrote:
> >   results are scrambled, and I got an assertion failure in one case:
> > 
> >   ncmpc: playlist.h:66: playlist_get: Assertion `idx <
> >   playlist_length(playlist)' failed.
> > 
> >   I can get you a backtrace, but I think you'll be able to reproduce
> >   easily.
> 
> I don't success to reproduce it. Could you give me more information?

Here's what I did: playlist of 9 songs, selected the first 3.  Then I
pressed ctrl-J - ncmpc crashed.  Here's the interesting part of the
backtrace:

 #3  0x000000000040a415 in playlist_get (playlist=0x1bf5b50,
 idx=4294967295) at playlist.h:66
 #4  0x000000000040a49e in mpdclient_cmd_move (c=0x1bf5b50,
 old_index=-1, new_index=0) at mpdclient.c:484
 #5  0x0000000000410b92 in play_cmd (c=0x1bf5b50,
 cmd=CMD_LIST_MOVE_DOWN) at screen_play.c:641

Problem might be:

 unsigned i = lw->selected_end;
 for(; i >= lw->selected_start; --i)

i is now 4294967295 (i.e. -1).  You can't do ">=0" with an unsigned
integer ;-)

Max

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to