Discussion:
Cmus 2.4.3 crashes when trying to add stream
Peter Bjørn Jørgensen
2012-06-12 14:14:38 UTC
Permalink
Thank you for my favourite music player.
I just discovered the ability to add streams to cmus, but it doesnt seem
to work.
The program crashes when trying
:add http://live-icy.gss.dr.dk:8000/A/A29H.mp3.m3u
Don't know what is special about this stream. It doesn't work in
mplayer, but works in vlc.

Doing a
:add http://www.koqx.com/koqx.m3u
works fine.

I'm running cmus 2.4.3 on 64 bit Arch linux.
Peter Bjørn Jørgensen
2012-06-12 14:23:37 UTC
Permalink
Post by Peter Bjørn Jørgensen
Don't know what is special about this stream. It doesn't work in
mplayer, but works in vlc.
I works in mplayer as well.. You just have to add the -playlist command
line argument.
Peter Bjørn Jørgensen
2012-06-12 14:27:35 UTC
Permalink
Post by Peter Bjørn Jørgensen
Thank you for my favourite music player.
I just discovered the ability to add streams to cmus, but it doesnt
seem to work.
The program crashes when trying
:add http://live-icy.gss.dr.dk:8000/A/A29H.mp3.m3u
Don't know what is special about this stream. It doesn't work in
mplayer, but works in vlc.
Doing a
:add http://www.koqx.com/koqx.m3u
works fine.
I'm running cmus 2.4.3 on 64 bit Arch linux.
Sorry for all the spamming.
Extracting the stream from the playlist manually also works.
:add http://live-icy.gss.dr.dk:8000/A/A29H.mp3

apparently the problem lies in the playlist handling.
Gregory Petrosyan
2012-06-12 14:50:25 UTC
Permalink
On Tue, Jun 12, 2012 at 6:27 PM, Peter Bjørn Jørgensen
Post by Peter Bjørn Jørgensen
Post by Peter Bjørn Jørgensen
Thank you for my favourite music player.
I just discovered the ability to add streams to cmus, but it doesnt
seem to work.
The program crashes when trying
:add http://live-icy.gss.dr.dk:8000/A/A29H.mp3.m3u
Don't know what is special about this stream. It doesn't work in
mplayer, but works in vlc.
Doing a
:add http://www.koqx.com/koqx.m3u
works fine.
I'm running cmus 2.4.3 on 64 bit Arch linux.
Sorry for all the spamming.
Extracting the stream from the playlist manually also works.
:add http://live-icy.gss.dr.dk:8000/A/A29H.mp3
apparently the problem lies in the playlist handling.
I can't reproduce the problem — cmus reports (in ~/cmus-debug.txt)
"http_open: getaddrinfo: nodename nor servname provided, or not known"
(same for wget).

Can you please try to run cmus under gdb/lldb and save a backtrace? Or
do you know another playlist that crashes cmus?

       Gregory
Peter Bjørn Jørgensen
2012-06-12 16:04:55 UTC
Permalink
Post by Gregory Petrosyan
Can you please try to run cmus under gdb/lldb and save a backtrace? Or
do you know another playlist that crashes cmus?
Unfortunately, I can't find another playlist that crashes cmus. The
reason why you can't access is that it is public danish radio and they
like putting borders on the internet :)

I get the following backtrace
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffebefa700 (LWP 30966)]
0x00007ffff70fcc35 in raise () from /lib/libc.so.6
(gdb) backtrace
#0 0x00007ffff70fcc35 in raise () from /lib/libc.so.6
#1 0x00007ffff70fe0b8 in abort () from /lib/libc.so.6
#2 0x00007ffff713ae5b in __libc_message () from /lib/libc.so.6
#3 0x00007ffff7140a56 in malloc_printerr () from /lib/libc.so.6
#4 0x000000000041d8c5 in keyvals_free ()
#5 0x000000000041967e in http_get_free ()
#6 0x000000000041b8be in ?? ()
#7 0x000000000043088b in buffer_for_each_line ()
#8 0x000000000040df83 in cmus_playlist_for_each ()
#9 0x000000000041bee0 in ip_open ()
#10 0x000000000040c23e in ?? ()
#11 0x000000000040cd18 in cache_get_ti ()
#12 0x000000000041cb46 in ?? ()
#13 0x000000000041cf77 in do_add_job ()
#14 0x0000000000430217 in ?? ()
#15 0x00007ffff7bc6e0e in start_thread () from /lib/libpthread.so.0
#16 0x00007ffff71ac1ed in clone () from /lib/libc.so.6


I also checked out the latest git revision (master branch) to provide a
more useful backtrace:
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff5d53700 (LWP 6655)]
0x00007ffff70fcc35 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00007ffff70fcc35 in raise () from /lib/libc.so.6
#1 0x00007ffff70fe0b8 in abort () from /lib/libc.so.6
#2 0x00007ffff713ae5b in __libc_message () from /lib/libc.so.6
#3 0x00007ffff7140a56 in malloc_printerr () from /lib/libc.so.6
#4 0x000000000041e255 in keyvals_free (keyvals=0x7ffff0002c30) at
keyval.c:59
#5 0x0000000000419bbe in http_get_free (hg=0x7ffff5d52c00) at http.c:450
#6 0x000000000041bda4 in handle_line (data=0x7ffff5d52d10,
uri=<optimized out>) at input.c:306
#7 0x0000000000431afb in buffer_for_each_line (buf=0x7ffff0002370
"http://licysd02.dr.dk:8000/Channel5_HQ.mp3\r\n", size=44,
cb=0x40d4c0 <pl_handle_line>, data=0x7ffff5d52cd0) at file.c:131
#8 0x000000000040db43 in cmus_playlist_for_each
(buf=***@entry=0x7ffff0002370
"http://licysd02.dr.dk:8000/Channel5_HQ.mp3\r\n",
size=44, reverse=***@entry=0, cb=***@entry=0x41bd50
<handle_line>, data=***@entry=0x7ffff5d52d10) at cmus.c:386
#9 0x000000000041c3be in read_playlist (sock=9, ip=0x7ffff00008f0) at
input.c:326
#10 open_remote (ip=0x7ffff00008f0) at input.c:359
#11 ip_open (ip=***@entry=0x7ffff00008f0) at input.c:525
#12 0x000000000040bcae in ip_get_ti (filename=***@entry=0x65ed50
"http://live-icy.gss.dr.dk:8000/Channel5_HQ.mp3.m3u")
at cache.c:390
#13 0x000000000040c818 in cache_get_ti (filename=***@entry=0x65ed50
"http://live-icy.gss.dr.dk:8000/Channel5_HQ.mp3.m3u")
at cache.c:417
#14 0x000000000041d366 in add_file (filename=0x65ed50
"http://live-icy.gss.dr.dk:8000/Channel5_HQ.mp3.m3u") at job.c:86
#15 0x000000000041d7c1 in do_add_job (data=<optimized out>) at job.c:297
#16 0x0000000000431487 in worker_loop (arg=<optimized out>) at worker.c:76
#17 0x00007ffff7bc6e0e in start_thread () from /lib/libpthread.so.0
#18 0x00007ffff71ac1ed in clone () from /lib/libc.so.6

And here is the cmus-debug.txt:
do_http_get: http://live-icy.gss.dr.dk:8000/Channel5_HQ.mp3.m3u
http_open: connecting. timeout=5 s 0 us
http_open: connecting. timeout=4 s 986120 us
http_write: timeout=5 s 0 us
do_http_get: HTTP response: 200 OK
do_http_get: Content-Type: audio/x-mpegurl
open_remote: Content-Type: audio/x-mpegurl
do_http_get: http://licysd02.dr.dk:8000/Channel5_HQ.mp3
http_open: connecting. timeout=5 s 0 us
http_open: connecting. timeout=4 s 889658 us
http_write: timeout=5 s 0 us
do_http_get: HTTP response: 303 See Other
do_http_get: Location:
http://guidetest.a.id.opendns.com/?url=licysd02%2Edr%2Edk%2FChannel5%5FHQ%2Emp3
do_http_get: Content-Length: 0
do_http_get: Connection: close
do_http_get: Date: Tue, 12 Jun 2012 15:53:23 GMT
do_http_get: Server: OpenDNS Guide
do_http_get:
http://guidetest.a.id.opendns.com/?url=licysd02%2Edr%2Edk%2FChannel5%5FHQ%2Emp3
http_open: connecting. timeout=5 s 0 us
http_open: connecting. timeout=4 s 901411 us
http_write: timeout=5 s 0 us
do_http_get: HTTP response: 302 Found
do_http_get: Location:
http://w24.guidetest.b.id.opendns.com/?url=licysd02%2Edr%2Edk%2FChannel5%5FHQ%2Emp3
do_http_get: Content-Length: 0
do_http_get: Connection: close
do_http_get: Date: Tue, 12 Jun 2012 15:53:23 GMT
do_http_get: Server: OpenDNS Guide
do_http_get:
http://w24.guidetest.b.id.opendns.com/?url=licysd02%2Edr%2Edk%2FChannel5%5FHQ%2Emp3
http_open: connecting. timeout=5 s 0 us
http_open: connecting. timeout=4 s 891531 us
http_write: timeout=5 s 0 us
do_http_get: HTTP response: 302 Found
do_http_get: Location:
http://w100.w24.guidetest.c.id.opendns.com/?url=licysd02%2Edr%2Edk%2FChannel5%5FHQ%2Emp3
do_http_get: Content-Length: 0
do_http_get: Connection: close
do_http_get: Date: Tue, 12 Jun 2012 15:53:24 GMT
do_http_get: Server: OpenDNS Guide

Loading...