#264: output restart failure
----------------------------+-----------------------------------------------
Reporter: romeodeepmind | Owner: admin
Type: Bugs | Status: new
Priority: 1 | Milestone:
Component: Liquidsoap | Version: 0.9.0+svn
Resolution: | Keywords:
Mac: 1 | Linux: 1
Netbsd: 1 | Other: 1
Freebsd: 1 |
----------------------------+-----------------------------------------------
Comment(by mrpingouin):
Concerning having OCAMLRUNPARAM=b for every liq, what you described might
work, but I'm not sure: the backtrace is printed by the caml runtime on
stderr, which _should_ be redirected automatically to the logs. It's easy
to test by forcing liq to crash, e.g. insert assert false in the code of
root.ml's main function, or the get_frame method of an useful operator.
Concerning the initial report, let me comment on your observations. Most
threads in liquidsoap are created using Tutils.create: such threads are
monitored, and if they die the shutdown procedure is initiated. The thread
that was killed because of your exception is not one of those. Maybe it
can help you to spot the responsible code -- in any case the backtrace
will help more.
Now, there is no thread creation in ocaml-cry, so I looked for
Thread.create in liquidsoap, and found the following:
{{{
src/tools/tutils.ml: Thread.create
src/io/opal_io.ml: ignore (Thread.create reader ());
src/io/opal_io.ml: ignore (Thread.create message_handler ())
src/visualization/GLvisualizer.ml: ignore (Thread.create
Glut.mainLoop ())
}}}
This is unrelated to this bug report, but only the first call is "normal".
The others should be Tutils.create, to be logged and monitored like other
threads.
--
Ticket URL: <http://savonet.rastageeks.org/ticket/264#comment:5>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac