Package: ncmpc
Version: 0.14-1
Severity: normal

It's possible to segfault ncmpc by pressing tab when it's just starting
up, possibly before or in the middle of connecting to the mpd server.
The time window is small, so the best way to reproduce it is as follows:

sleep 2; ncmpc -h somehost
<press tab before it starts>

Backtrace;

Program received signal SIGSEGV, Segmentation fault.
0x0804bad6 in mpd_executeCommand (connection=0x0, 
    command=0x80b6558 "lsinfo \"\"\n") at libmpdclient.c:456
456             if (connection->sock < 0) {
(gdb) bt
#0  0x0804bad6 in mpd_executeCommand (connection=0x0, 
    command=0x80b6558 "lsinfo \"\"\n") at libmpdclient.c:456
#1  0x0804c67e in mpd_sendInfoCommand (connection=0x0, dir=0x8062f2d "")
    at libmpdclient.c:945
#2  mpd_sendLsInfoCommand (connection=0x0, dir=0x8062f2d "")
    at libmpdclient.c:1156
#3  0x08050aee in mpdclient_filelist_get (c=0x80a4630, path=0x8062f2d "")
    at mpdclient.c:732
#4  0x08057e4b in browse_open (c=0x80a4630) at screen_file.c:187
#5  0x080540ab in screen_switch (sf=0x8063dc0, c=0x80a4630) at screen.c:89
#6  0x08054177 in screen_next_mode (c=0x80a4630, offset=1) at screen.c:145
#7  0x08050290 in do_input_event (cmd=CMD_SCREEN_NEXT) at main.c:310
#8  0x08050324 in keyboard_event (source=0x80b6188, condition=G_IO_IN, 
    data=0x0) at main.c:333
#9  0xb7f8389d in ?? () from /usr/lib/libglib-2.0.so.0
#10 0xb7f4d368 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0xb7f508c3 in ?? () from /usr/lib/libglib-2.0.so.0
#12 0xb7f50d8a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x0804fad7 in main (argc=Cannot access memory at address 0xa22
) at main.c:523

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ncmpc depends on:
ii  libc6                     2.9-23         GNU C Library: Shared libraries
ii  libglib2.0-0              2.20.4-1       The GLib library of C routines
ii  liblircclient0            0.8.3-3        infra-red remote control support -
ii  libncursesw5              5.7+20090613-1 shared libraries for terminal hand

ncmpc recommends no packages.

Versions of packages ncmpc suggests:
ii  mpd                           0.15.1-1   Music Player Daemon
pn  ncmpc-lyrics                  <none>     (no description available)

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to