[
http://dev.sourcefabric.org/browse/LS-530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16073#action_16073
]
David Baelde commented on LS-530:
---------------------------------
I've ran the following two tests (Version hg,
LS-469@5b385e629167:20110501:104157):
./src/liquidsoap 'output.harbor(mount="/test",port=8888, %mp3, mksafe(sine()) )'
./src/liquidsoap 'output.harbor(mount="/test",port=8888, %vorbis.cbr,
mksafe(sine()) )'
First, I could not set the bitrate parameter for ogg, it says it's not
implemented with my version of the vorbis libs. It shouldn't matter anyway so I
removed all encoding parameters.
Just running those commands, without connecting any client to harbor, doesn't
cause the bug you're describing: I could interrupt both with control-C.
If I connect a client to the MP3 version, liquidsoap (the server, not the
client) actually dies immediately here:
2011/05/20 07:50:42 [threads:1] Thread "wallclock_main" aborts with exception
File "tools/utils.ml", line 23, characters 46-52: Assertion failed!
2011/05/20 07:50:42 [threads:3] Called from file "outputs/harbor_output.ml",
line 142, characters 29-50
2011/05/20 07:50:42 [threads:3] Called from file "outputs/harbor_output.ml",
line 145, characters 13-25
2011/05/20 07:50:42 [threads:3] Called from file "outputs/harbor_output.ml",
line 190, characters 20-35
2011/05/20 07:50:42 [threads:3] Called from file "outputs/harbor_output.ml",
line 203, characters 33-72
2011/05/20 07:50:42 [threads:3] Called from file "tools/tutils.ml", line 80,
characters 16-19
2011/05/20 07:50:42 [threads:3] Re-raised at file "tools/tutils.ml", line 82,
characters 39-40
etc
For the record here's the client:
./src/liquidsoap
'output.ao(fallible=true,input.http("http://localhost:8888/test"))'
> liquidsoap process becomes unstoppable on using mp3 at output.harbor
> --------------------------------------------------------------------
>
> Key: LS-530
> URL: http://dev.sourcefabric.org/browse/LS-530
> Project: Liquidsoap
> Issue Type: Bug
> Components: Liquidsoap
> Environment: Liquidsoap 1.0.0-beta+svn
> (@7a59a2e26b1e:20110518:171410).
> Linux machine 2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC
> 2011 i686 i686 i386 GNU/Linux
> Reporter: peter
>
> if a listener is connected to liquidsoap's output (using ogg),
> stopping liquidsoap with CTRL+C works fine
> liquidsoap 'output.harbor(mount="/test",port=8888,
> %vorbis.cbr(bitrate=160000,channels=2), mksafe(sine()) )'
> if you use mp3 encoding instead of, the liquidsoap process becomes unstoppable
> liquidsoap 'output.harbor(mount="/test",port=8888, %mp3(bitrate=160),
> mksafe(sine()) )'
> 2011/05/18 17:52:21 [threads:3] Created thread "generic queue #1".
> 2011/05/18 17:52:21 [harbor:3] Adding HTTP handler for '/test' on port 8888
> 2011/05/18 17:52:21 [threads:3] Created thread "wallclock_main" (1 total).
> 2011/05/18 17:52:21 [clock.wallclock_main:3] Streaming loop starts,
> synchronized with wallclock.
> 2011/05/18 17:52:21 [mksafe:3] Switch to sine_4389.
> ^C2011/05/18 17:52:31 [main:3] Shutdown started!
> 2011/05/18 17:52:31 [main:3] Waiting for threads to terminate...
> 2011/05/18 17:52:31 [harbor:3] Removing HTTP handler for '/test' on port 8888
> ^C^C^C^Z
> [1]+ Angehalten liquidsoap
> 'output.harbor(mount="/test",port=8888, %mp3(bitrate=160), mksafe(sine()) )'
> peter@machine:~/radio/savonet.hg/savonet$ ps -afe | grep liquidsoap
> peter 10619 2364 3 17:52 pts/2 00:00:00 liquidsoap
> output.harbor(mount="/test",port=8888, %mp3(bitrate=160), mksafe(sine()) )
> peter 10643 2364 0 17:52 pts/2 00:00:00 grep liquidsoap
> peter@machine:~/radio/savonet.hg/savonet$ pkill -f liquidsoap
> peter@machine:~/radio/savonet.hg/savonet$ ps -afe | grep liquidsoap
> peter 10619 2364 2 17:52 pts/2 00:00:00 liquidsoap
> output.harbor(mount="/test",port=8888, %mp3(bitrate=160), mksafe(sine()) )
> peter 10650 2364 0 17:52 pts/2 00:00:00 grep liquidsoap
> peter@machine:~/radio/savonet.hg/savonet$ kill -9 10619
> peter@machine:~/radio/savonet.hg/savonet$ ps -afe | grep liquidsoap
> peter 10658 2364 0 17:53 pts/2 00:00:00 grep liquidsoap
> [1]+ killed liquidsoap
> 'output.harbor(mount="/test",port=8888, %mp3(bitrate=160), mksafe(sine()) )'
> peter@machine:~/radio/savonet.hg/savonet$ ps -afe | grep liquidsoap
> peter 10660 2364 0 17:53 pts/2 00:00:00 grep liquidsoap
> (this is not important to me, since we use ogg only :)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl