[Pkg-icecast-devel] Bug#475889: icecast2: Binding on random port

Vincent Riquer vincent at riquer.fr
Sun Apr 13 17:10:35 UTC 2008


Package: icecast2
Version: 2.3.1-6.1
Severity: important


Since last update, Icecast does not work correctly with IPv6 nor IPv4.

It runs successfully (no messages on standard output, nor in the logs, even in
loglevel 4 (debug), but it is not possible to connect to it (Connection refused).

When run with strace, one can see that instead of binding to the port specified 
in the listen-socket directive, it binds to a random port (0) :

bind(4, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0

In /etc/icecast2/icecast.xml, I have the following :
    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8000</port>
        <bind-address>::</bind-address>
    </listen-socket>

I also tried with
    <!-- You can use these two if you only want a single listener -->
    <port>8000</port>
    <bind-address>2a01:5d8:52f4:3ae9:21a:70ff:fea3:44ab</bind-address>

which didn't help.

# netstat -tlp
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
[...]
tcp6       0      0 [::]:45891              [::]:*                  LISTEN      10720/icecast2


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: arm (armv5tel)

Kernel: Linux 2.6.24-1-ixp4xx
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages icecast2 depends on:
ii  adduser               3.107              add and remove users and groups
ii  libc6                 2.7-10             GNU C Library: Shared libraries
ii  libcurl3-gnutls       7.18.0-1           Multi-protocol file transfer libra
ii  libkrb53              1.6.dfsg.3~beta1-4 MIT Kerberos runtime libraries
ii  libogg0               1.1.3-3            Ogg Bitstream Library
ii  libspeex1             1.1.12-3           The Speex Speech Codec
ii  libtheora0            1.0~beta2-4        The Theora Video Compression Codec
ii  libvorbis0a           1.2.0.dfsg-3       The Vorbis General Audio Compressi
ii  libxml2               2.6.31.dfsg-2      GNOME XML library
ii  libxslt1.1            1.1.22-1           XSLT processing library - runtime 

Versions of packages icecast2 recommends:
ii  ices2                         2.0.1-6    Ogg Vorbis streaming source for Ic

-- no debconf information





More information about the Pkg-icecast-devel mailing list