#319: indefinite loop in input.http
---------------------------+------------------------------------------------
Reporter: romeodeepmind | Owner: admin
Type: Bugs | Status: new
Priority: 1 | Milestone: NEAR FUTURE
Component: Liquidsoap | Version: 0.9.1+svn
Keywords: | Mac: 1
Linux: 1 | Netbsd: 1
Other: 1 | Freebsd: 1
---------------------------+------------------------------------------------
Hi!
under some circumstances input.http can go into indefinite loop.
steps to reproduce:[[BR]]
1. set output that libaacplus doesn't support,[[BR]]
2. set wrong url for input.http (for example that gives 404)[[BR]]
3. get indefinite loop in input.http
4. kill proscess with kill -KILL <pid>
script:
{{{
def out_aacplus(host, port, mount, pass, bitrate, s) =
output.icecast.aacplus(
id="rvk#{bitrate}a",
restart=true,
mount=mount,
host=host,
port=port,
password=pass,
genre=streamGenre,
url=streamUrl,
description=streamDescr,
name=streamTitle,
bitrate=bitrate,
s)
end
input = input.http(
masterUrl
);
input = mksafe(input)
################### [Output] ###################
out_aacplus(
masterHost,
masterPort,
"rvk64a",
masterPasswd,
80,
input
)
}}}
log:
{{{
2009/10/22 02:54:46 >>> LOG START
2009/10/22 02:54:46 [protocols.external:3] Didn't find "ufetch"
2009/10/22 02:54:46 [protocols.external:3] Found "/usr/bin/wget"
2009/10/22 02:54:46 [main:3] Liquidsoap 0.9.1+svn
(trunk/liquids...@rev6846)
2009/10/22 02:54:46 [video.converter:4] Couldn't find prefered video
converter: gavl
2009/10/22 02:54:46 [audio.converter:4] Using prefered samplerate
converter: libsamplerate
2009/10/22 02:54:46 [threads:3] Created thread "non-blocking queue #1".
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop-atom
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@start-triggers
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop-triggers
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@return
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@called
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@start
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@start-depends
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop-depends
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@start-atom
2009/10/22 02:54:46 [threads:3] Created thread "generic queue #1".
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop-atom
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@start-triggers
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop-triggers
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@return
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop-triggers
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@stop
2009/10/22 02:54:46 [stdout:3] init(0):init-start
@return
2009/10/22 02:54:46 [threads:3] Created thread "root" (1 total).
2009/10/22 02:54:46 [root:3] Waking up active nodes...
2009/10/22 02:54:46 [source:4] rvk72a gets up
2009/10/22 02:54:46 [source:4] mksafe gets up
2009/10/22 02:54:46 [source:4] src_5642 gets up
2009/10/22 02:54:46 [src_5642:4] Connecting to
<http://127.0.0.1:8000/rvk.ogg>...
2009/10/22 02:54:46 [threads:3] Created thread "http polling" (2 total).
2009/10/22 02:54:46 [src_5642:4] Activations changed: static=[],
dynamic=[mksafe:rvk72a:rvk72a].
2009/10/22 02:54:46 [source:4] safe_blank gets up
2009/10/22 02:54:46 [safe_blank:4] Activations changed: static=[],
dynamic=[mksafe:rvk72a:rvk72a].
2009/10/22 02:54:46 [mksafe:4] Activations changed:
static=[rvk72a:rvk72a], dynamic=[].
2009/10/22 02:54:46 [rvk72a:4] Activations changed: static=[rvk72a],
dynamic=[].
2009/10/22 02:54:46 [rvk72a:4] Enabling caching mode (active source)
2009/10/22 02:54:46 [rvk72a:3] Connecting mount rvk for
sou...@localhost...
2009/10/22 02:54:46 [src_5642:4] Could not get file: File Not Found
2009/10/22 02:54:46 [src_5642:4] Connection failed: Http_source.Internal
2009/10/22 02:54:46 [rvk72a:3] Connection setup was successful.
2009/10/22 02:54:46 [threads:1] Thread "root" aborts with exception
Aacplus.No_sbr_settings!
2009/10/22 02:54:46 [stderr:3] Thread 4 killed on uncaught exception
Aacplus.No_sbr_settings
2009/10/22 02:54:46 [stderr:3] Raised at file "aacplus.ml", line 42,
characters 2-36
2009/10/22 02:54:46 [stderr:3] Called from file
"outputs/aacplus_encoded.ml", line 75, characters 14-49
2009/10/22 02:54:46 [stderr:3] Called from file "outputs/output.ml", line
153, characters 8-25
2009/10/22 02:54:46 [stderr:3] Called from file "list.ml", line 69,
characters 12-15
2009/10/22 02:54:46 [stderr:3] Called from file "source.ml", line 271,
characters 21-41
2009/10/22 02:54:46 [stderr:3] Called from file "tools/tutils.ml", line
122, characters 15-18
2009/10/22 02:54:46 [stderr:3] Re-raised at file "tools/tutils.ml", line
145, characters 21-22
2009/10/22 02:54:46 [stderr:3] Called from file "thread.ml", line 38,
characters 8-14
2009/10/22 02:54:46 [main:3] Shutdown started!
2009/10/22 02:54:46 [main:3] Waiting for threads to terminate...
2009/10/22 02:54:46 [stdout:3] init(0):init-stop
@called
2009/10/22 02:54:46 [stdout:3] init(0):init-stop
@start
2009/10/22 02:54:46 [stdout:3] init(0):init-stop
@start-depends
2009/10/22 02:54:46 [stdout:3] init(0):init-stop
@called
2009/10/22 02:54:46 [stdout:3] init(0):init-stop
@start
2009/10/22 02:54:46 [stdout:3] init(0):init-stop
@start-depends
2009/10/22 02:54:46 [stdout:3] init(0):init-stop
@stop-depends
2009/10/22 02:54:46 [stdout:3] init(0):init-stop
@start-atom
2009/10/22 02:54:48 [src_5642:4] Connecting to
<http://127.0.0.1:8000/rvk.ogg>...
2009/10/22 02:54:49 [src_5642:4] Could not get file: File Not Found
2009/10/22 02:54:49 [src_5642:4] Connection failed: Http_source.Internal
2009/10/22 02:54:51 [src_5642:4] Connecting to
<http://127.0.0.1:8000/rvk.ogg>...
2009/10/22 02:54:51 [src_5642:4] Could not get file: File Not Found
2009/10/22 02:54:51 [src_5642:4] Connection failed: Http_source.Internal
2009/10/22 02:54:53 [src_5642:4] Connecting to
<http://127.0.0.1:8000/rvk.ogg>...
2009/10/22 02:54:53 [src_5642:4] Could not get file: File Not Found
2009/10/22 02:54:53 [src_5642:4] Connection failed: Http_source.Internal
2009/10/22 02:54:55 [src_5642:4] Connecting to
<http://127.0.0.1:8000/rvk.ogg>...
2009/10/22 02:54:55 [src_5642:4] Could not get file: File Not Found
2009/10/22 02:54:55 [src_5642:4] Connection failed: Http_source.Internal
2009/10/22 02:54:57 [src_5642:4] Connecting to
<http://127.0.0.1:8000/rvk.ogg>...
2009/10/22 02:54:57 [src_5642:4] Could not get file: File Not Found
2009/10/22 02:54:57 [src_5642:4] Connection failed: Http_source.Internal
2009/10/22 02:54:59 [src_5642:4] Connecting to
<http://127.0.0.1:8000/rvk.ogg>...
2009/10/22 02:55:00 [src_5642:4] Could not get file: File Not Found
2009/10/22 02:55:00 [src_5642:4] Connection failed: Http_source.Internal
<... and so on ...>
2009/10/22 02:57:24 >>> LOG START
}}}
--
Ticket URL: <http://savonet.rastageeks.org/ticket/319>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac