Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems to install IC2 (Segmentation fault Error)

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Tue Oct 31, 2006 8:27 pm    Post subject: Problems to install IC2 (Segmentation fault Error) Reply with quote

Hey guys,

I've interesseted in IceCast version 2.3.1, but I can't test it.

Here some informations about my system:
- OS: SuSE Linux 9.3
- Dedicated Root Server
- I've all rights (with root user)
- 64bit system
- AMD Athlon(tm) 64 Processor 3500+

So, I tried to install icecast... I'd typed "./configure", "make" and "make install". no errors!

Then, I edit the icecast.xml in "/usr/local/etc".

And now... My problem!
I started IceCast in my shell with follow command:

Quote:
s15203925:/usr/local # icecast -c /usr/local/etc/icecast.xml
Changed groupid to 100.
Changed userid to 10003.


GroupID 100 is users.
UserID 10003 is "streams".

I went to webadress http://myip:8000/ to test it.
I saw the normal interface, with links and so on.

But then I clicked to "Administration", typed my Username and Password and clicked "login"... But nothing happens... Only a white site without code or text.

I looked in my shell/console and there was a new line:
Quote:
Segmentation fault


I searched 2 hours at google, and 1 hour at icecast.org (include forum.icecast.org).

------

Here's my current icecast.xml config file: (I was tried again with the standard config, but I didn't work!)
Quote:
<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->
<source-password>hackme</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>hackme</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>

<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->

<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>localhost</hostname>

<!-- You can use these two if you only want a single listener -->
<!--<port>8000</port> -->
<!--<bind-address>127.0.0.1</bind-address>-->

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->

<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->

<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->

<!--
<relay>
<server>127.0.0.1</server>
<port>8001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<on-demand>0</on-demand>

<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->

<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.ogg</mount-name>

<username>othersource</username>
<password>hackmemore</password>

<max-listeners>1</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>/example_intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>

<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>

-->

<fileserve>1</fileserve>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/local/share/icecast</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>

<security>
<chroot>0</chroot>
<changeowner>
<user>streams</user>
<group>users</group>
</changeowner>
</security>
</icecast>


And here's my error.log:
Quote:
[2006-10-31 21:14:22] INFO main/main Icecast 2.3.0 server started
[2006-10-31 21:14:22] DBUG yp/yp_recheck_config Updating YP configuration
[2006-10-31 21:14:22] INFO stats/_stats_thread stats thread started
[2006-10-31 21:14:22] INFO fserve/fserv_thread_function file serving thread started
[2006-10-31 21:14:22] INFO yp/yp_update_thread YP update thread started
[2006-10-31 21:14:22] INFO auth/auth_run_thread Authentication thread started
[2006-10-31 21:14:23] DBUG slave/_slave_thread checking master stream list
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node connections (1)
[2006-10-31 21:15:23] DBUG connection/_handle_get_request alias has made / into /status.xsl
[2006-10-31 21:15:23] DBUG connection/_handle_get_request Stats request, sending XSL transformed stats
[2006-10-31 21:15:23] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:23] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css)
[2006-10-31 21:15:23] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node client_connections (1)
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node connections (2)
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node client_connections (2)
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node file_connections (1)
[2006-10-31 21:15:23] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:15:23] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png)
[2006-10-31 21:15:23] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:24] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg)
[2006-10-31 21:15:24] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node connections (3)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (2)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node connections (4)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node client_connections (3)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node file_connections (2)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (2)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node connections (5)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node client_connections (4)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node file_connections (3)
[2006-10-31 21:15:24] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg)
[2006-10-31 21:15:24] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:24] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg)
[2006-10-31 21:15:24] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node client_connections (5)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node file_connections (4)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node connections (6)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (2)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node connections (7)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node client_connections (6)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node file_connections (5)
[2006-10-31 21:15:24] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg)
[2006-10-31 21:15:24] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node client_connections (7)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node file_connections (6)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:24] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:15:29] DBUG admin/admin_handle_request Admin request (/admin/)
[2006-10-31 21:15:29] DBUG admin/admin_handle_request Got command ()
[2006-10-31 21:15:29] DBUG admin/command_stats Stats request, sending xml stats
[2006-10-31 21:15:29] DBUG admin/admin_send_response Sending XSLT (/usr/local/share/icecast/admin/stats.xsl)
[2006-10-31 21:15:45] INFO main/main Icecast 2.3.0 server started
[2006-10-31 21:15:45] DBUG yp/yp_recheck_config Updating YP configuration
[2006-10-31 21:15:45] INFO stats/_stats_thread stats thread started
[2006-10-31 21:15:45] INFO fserve/fserv_thread_function file serving thread started
[2006-10-31 21:15:45] INFO yp/yp_update_thread YP update thread started
[2006-10-31 21:15:45] INFO auth/auth_run_thread Authentication thread started
[2006-10-31 21:15:46] DBUG slave/_slave_thread checking master stream list
[2006-10-31 21:15:50] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:50] DBUG stats/modify_node_event update node connections (1)
[2006-10-31 21:15:50] DBUG admin/admin_handle_request Admin request (/admin/)
[2006-10-31 21:15:50] DBUG admin/admin_handle_request Got command ()
[2006-10-31 21:15:50] DBUG admin/command_stats Stats request, sending xml stats
[2006-10-31 21:15:50] DBUG admin/admin_send_response Sending XSLT (/usr/local/share/icecast/admin/stats.xsl)
[2006-10-31 21:15:55] INFO main/main Icecast 2.3.0 server started
[2006-10-31 21:15:55] DBUG yp/yp_recheck_config Updating YP configuration
[2006-10-31 21:15:55] INFO stats/_stats_thread stats thread started
[2006-10-31 21:15:55] INFO fserve/fserv_thread_function file serving thread started
[2006-10-31 21:15:55] INFO yp/yp_update_thread YP update thread started
[2006-10-31 21:15:55] INFO auth/auth_run_thread Authentication thread started
[2006-10-31 21:15:56] DBUG slave/_slave_thread checking master stream list
[2006-10-31 21:15:58] DBUG connection/_handle_get_request alias has made / into /status.xsl
[2006-10-31 21:15:58] DBUG connection/_handle_get_request Stats request, sending XSL transformed stats
[2006-10-31 21:15:58] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:58] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:58] DBUG stats/modify_node_event update node connections (1)
[2006-10-31 21:15:58] DBUG stats/modify_node_event update node client_connections (1)
[2006-10-31 21:15:59] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css)
[2006-10-31 21:15:59] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node connections (2)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node client_connections (2)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node file_connections (1)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node connections (3)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (2)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node connections (4)
[2006-10-31 21:15:59] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png)
[2006-10-31 21:15:59] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:59] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg)
[2006-10-31 21:15:59] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node client_connections (3)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node file_connections (2)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node client_connections (4)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node file_connections (3)
[2006-10-31 21:15:59] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg)
[2006-10-31 21:15:59] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:59] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg)
[2006-10-31 21:15:59] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node connections (5)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (2)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node connections (6)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node client_connections (5)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node file_connections (4)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node client_connections (6)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node file_connections (5)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:15:59] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:15:59] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg)
[2006-10-31 21:15:59] DBUG fserve/fserve_add_client Adding client to file serving engine
[2006-10-31 21:16:00] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:16:00] DBUG stats/modify_node_event update node connections (7)
[2006-10-31 21:16:00] DBUG stats/modify_node_event update node client_connections (7)
[2006-10-31 21:16:00] DBUG stats/modify_node_event update node file_connections (6)
[2006-10-31 21:16:00] DBUG stats/modify_node_event update node clients (0)
[2006-10-31 21:16:00] DBUG stats/modify_node_event update node clients (1)
[2006-10-31 21:16:00] DBUG stats/modify_node_event update node connections (Cool
[2006-10-31 21:16:00] DBUG connection/_handle_get_request Stats request, sending XSL transformed stats



I'll hope, you can help me...

Best wishes,
DenniX
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Nov 01, 2006 9:34 am    Post subject: Reply with quote

Usually, a segmentation fault is related to an unreachable address. This means you should compile icecast in debug mode and run it with gdb or another debugger to trace where the problem lies.
This kind of problem is not related to software code, could be a probem in libary loading, a mix between libraries (you should be aware, in 64 bit systems taht you have libraries in /usr/lib64 and /usr/lib). You should try:

./configure --help and add some directives to your configuration.

But you can also install it directly, as builds exist for SuSE 9.
See suser-scorot repository Smile
ftp.gwdg.de/pub/linux/misc/suser-scorot/suse93/RPMS/x86_64/icecast-2.3.1-1.x86_64.rpm
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Anonymous
Guest





PostPosted: Wed Nov 01, 2006 11:28 am    Post subject: Reply with quote

jcr wrote:
Usually, a segmentation fault is related to an unreachable address. This means you should compile icecast in debug mode and run it with gdb or another debugger to trace where the problem lies.
This kind of problem is not related to software code, could be a probem in libary loading, a mix between libraries (you should be aware, in 64 bit systems taht you have libraries in /usr/lib64 and /usr/lib). You should try:

./configure --help and add some directives to your configuration.


I don't know, what to add - I don't know what kind of error it is - eh... where to find the error and so... you know?

jcr wrote:
But you can also install it directly, as builds exist for SuSE 9.
See suser-scorot repository Smile
ftp.gwdg.de/pub/linux/misc/suser-scorot/suse93/RPMS/x86_64/icecast-2.3.1-1.x86_64.rpm

I installed... but same error Sad

Quote:
s15203925:/usr/bin # icecast -c /etc/icecast.xml
Changed groupid to 100.
Changed userid to 10003.
Segmentation fault


What did I wrong?
Config is the same.
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Nov 01, 2006 3:37 pm    Post subject: Reply with quote

try running iceast troug a debugger. When you get a segmentation fault, use the backtrace feature (bt command in gdb) to find from where the fault comes. Il cannot diagnose what exactly is your problem without knowing what causes the segfault.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Anonymous
Guest





PostPosted: Wed Nov 01, 2006 4:40 pm    Post subject: Reply with quote

Can you explain? I don't know how to do it Sad
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber