Hi there, im wondering if anyone has any guidelines on things such as
max execution times, etc on functions like ices_perl_get_next.
Obviously, you don't want ANY execution time really per se, but, as a
test I had ices go and do an sql call that took ~2 seconds before
returning a track file. Which resulted in a segfault. (output at bottom)
Also - as a side note, for anyone who doesn't realize - any modules you
write must return 1. Not just the functions, but for the module itself.
(example: ices.pm will not work as is. If you add a return 1; to the
bottom, it will return properly, and ices will start. (albeit broken -
you most likely don't have the default mp3 - but it will keep execing
next_track in a loop) If not, it complains about returning a null value
and wont start.)
<p>./dave
Segfault Output:
DEBUG: Done sending
DEBUG: Interpreting [ices_perl_get_next]
DEBUG: perl [ices_perl_get_next] returned 1 values, last
[/usr/local/mp3/Battle Axe Warriors - Swollen Members - Bad
Dreams/Swollen Members -16- Dark Riders (ft Buc Fifty).mp3]
DEBUG: Done interpreting [ices_perl_get_next]
DEBUG: Interpreting [ices_perl_get_current_lineno]
DEBUG: perl [ices_perl_get_current_lineno] returned 1 values, last [475]
DEBUG: Done interpreting [ices_perl_get_current_lineno]
DEBUG: ID3v1 song: Dark Riders (ft Buc Fifty)
DEBUG: ID3v1 artist: Swollen Members
DEBUG: ID3v2 tag size is 1908 bytes
DEBUG: Skipping to MP3 data
DEBUG: Layer: III Version: MPEG-1 Frequency: 44100
DEBUG: Bitrate: 192 kbit/s Padding: 1 Mode: j-stereo
DEBUG: Ext: 1 Mode_Ext: 2 Copyright: 0 Original: 1
DEBUG: Error Protection: 0 Emphasis: 0 Stereo: 2
Playing /usr/local/mp3/Battle Axe Warriors - Swollen Members - Bad
Dreams/Swollen Members -16- Dark Riders (ft Buc Fifty).mp3
DEBUG: Updated metadata on /stream1 to: Swollen Members - Dark Riders
(ft Buc Fifty)
Segmentation fault
[dave@linsux usr]#
<p>--- >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@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.