Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault when receiving playlist #273

Closed
dlobue opened this issue Jun 6, 2012 · 1 comment
Closed

segfault when receiving playlist #273

dlobue opened this issue Jun 6, 2012 · 1 comment

Comments

@dlobue
Copy link

dlobue commented Jun 6, 2012

Since yesterday afternoon, pianobar has been segfaulting every time it receives a new playlist. This occurs on multiple computers, and I've not changed anything on either of these computers since the last time pianobar worked.

This is what happens:

./pianobar
Welcome to pianobar (2012.05.06-dev)! Press ? for a list of commands.
(i) Control fifo at /root/.config/pianobar/ctl opened
(i) Login... Ok.
(i) Get stations...
** (process:10863): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:10863): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:10863): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
Ok.
...
23) Static-X Radio
...
[?] Select station: 23
|> Station "Static-X Radio" (481298244262991107)
(i) Receiving new playlist... Segmentation fault

(no idea what those warnings are about. I've tried recompiling pianobar several times, but they stick around).
Recompiling after a make clean also did not fix the problem.

gdb with bt:

q
nyx pianobar (master=) $ gdb ./pianobar
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /root/pianobar/pianobar...done.
(gdb) run
Starting program: /root/pianobar/pianobar
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Welcome to pianobar (2012.05.06-dev)! Press ? for a list of commands.
(i) Control fifo at /root/.config/pianobar/ctl opened
(i) Login... Ok.
(i) Get stations...
** (process:11459): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:11459): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:11459): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
Ok.

...(playlists)

(i) Receiving new playlist...
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff67bd3a1 in __strlen_sse2 () from /lib/libc.so.6
(gdb) bt
#0 0x00007ffff67bd3a1 in __strlen_sse2 () from /lib/libc.so.6
#1 0x00007ffff67bd016 in strdup () from /lib/libc.so.6
#2 0x000000000040cd3f in PianoJsonStrdup (j=0x63fcc0, key=0x414673 "additionalAudioUrl") at src/libpiano/response.c:40
#3 0x000000000040d564 in PianoResponse (ph=0x616fe0, req=0x7fffffffd900) at src/libpiano/response.c:248
#4 0x0000000000408d73 in BarUiPianoCall (app=0x616fe0, type=PIANO_REQUEST_GET_PLAYLIST, data=0x7fffffffdd50,

pRet=0x7fffffffdd6c, wRet=0x7fffffffdd68) at src/ui.c:185

#5 0x00000000004038d7 in BarMainGetPlaylist (app=0x616fe0) at src/main.c:169
#6 0x0000000000403f72 in BarMainLoop (app=0x616fe0) at src/main.c:306
#7 0x00000000004042f4 in main (argc=1, argv=0x7fffffffdf98) at src/main.c:391

(gdb)

I'm guessing that pandora made some sort of protocol change that pianobar isn't expecting?

Any thoughts?

Thanks!

Dominic

@PromyLOPh
Copy link
Owner

Known issue, see #271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants