[icecast] Ices 0.3 won't play mp3 file

Brendan Cully brendan at xiph.org
Tue Apr 13 12:08:29 PDT 2004



On Tuesday, 13 April 2004 at 18:48, Joe Jones wrote:
> OK...messing with 'gdb' (of which I am completely new to)
> 
> Here's is the complete output from what I've done with 'gdb'
> 
> # gdb ices
> GNU gdb 4.18 (FreeBSD)

<snip> 

> (gdb) run -c /local/ices0.3/conf/ices.conf
> Starting program: /local/ices0.3/bin/ices -c /local/ices0.3/conf/ices.conf
> Logfile opened

<snip>

> DEBUG: Updated metadata on /stream.mp3 to: Assassinatorr
> After a few mins, this is where I had to use a "kill -9" to stop the never 
> ending Ices
> Program received signal SIGKILL, Killed.
> 0x282a2da4 in .cerror () from /usr/lib/libc.so.4
> (gdb) backtrace
> #0  0x282a2da4 in .cerror () from /usr/lib/libc.so.4
> #1  0x2842ff59 in _thread_sig_handle_pending () from /usr/lib/libc_r.so.4
> #2  0x2842f84d in _thread_sig_handler () from /usr/lib/libc_r.so.4
> #3  0xbfbfffac in ?? ()
> #4  0x281192b4 in _shout_timing_sleep (sleeptime=231) at timing.c:59
> #5  0x281161a7 in shout_sync (self=0x81be200) at shout.c:261
> #6  0x805c597 in stream_send_data (stream=0x81be180, buf=0xbfbfeb30 "f", 
> len=4096) at stream.c:369
> #7  0x805c211 in stream_send (config=0x81b4a00, source=0xbfbffb60) at 
> stream.c:256
> #8  0x805be61 in ices_stream_loop (config=0x81b4a00) at stream.c:111
> #9  0x805ac82 in main (argc=3, argv=0xbfbffc14) at ices.c:40

That's interesting. It's hanging inside the timing module of
libshout, presumably in the select call (I don't have the source here
to check). It's being given a reasonable value (231 milliseconds), but
it never returns.

I'm not sure what could be going wrong here (maybe someone with more
freebsd knowledge could comment). You might try rebuilding libshout
without thread support (--disable-pthread, I think).

Otherwise, maybe replace the select call in timing.c with something
like

if (sleeper.tv_sec)
  sleep(sleeper.tv_sec);
usleep(sleeper.tv_usec);

-b
--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list