Old 1st February 2004, 12:47   #1
Junior Member
Join Date: Jan 2003
Posts: 33
sc_serv crashes on connect


my config is like any other, port 9500, a nice password, no logfiles (!!)...

But, when I start the sc_serv as any user but root, the server crashes on the first listener-connect!
Here from the logfile

<02/01/04@03:34:05> [source] connected from
<02/01/04@03:34:06> [source] icy-nameimunostra - DIfferent MUsic NOnSTop-RAdio: unmoderiert ; icy-genre:FillUp
<02/01/04@03:34:06> [source] icy-pub:1 ; icy-br:64 ; icy-url:http://www.dimunostra.de
<02/01/04@03:34:06> [source] icy-irc:http://chat.dimunostra.de ; icy-icq:19878098 ; icy-aim:NA
<02/01/04@03:34:07> [dest:] starting stream (UID: 0)[L: 1]{A: SHOUTcast Directory Tester}(P: 0)
<02/01/04@03:34:07> [dest:] connection closed (0 seconds) (UID: 0)[L: 0]{Bytes: 14433}(P: 0)
<02/01/04@03:34:08> [yp_add] yp.shoutcast.com added me successfully
<02/01/04@03:35:01> [dest: 81.2.xxx.xxx] starting stream (UID: 1)[L: 1]{A: Winamp/2.x}(P: 0)

However, after the connect the server crashes without any error-message...

If I'm logged in as root, there's no problem!

Anyone can tell me why?

DJLopez is offline   Reply With Quote
Old 1st February 2004, 14:48   #2
Junior Member
Join Date: Jan 2003
Posts: 33
Look this

I recognized, there IS an error, an segmantation fault, look:

rn:/home/shoutcast$ ./sc_serv configs/dimu2.conf
** SHOUTcast Distributed Network Audio Server
** Copyright (C) 1998-2000 Nullsoft, Inc. All Rights Reserved.
** Use "sc_serv filename.ini" to specify an ini file.

Event log:
<02/01/04@16:45:44> [SHOUTcast] DNAS/Linux v1.9.2 (Nov 25 2002) starting up...
<02/01/04@16:45:44> [main] pid: 4765
<02/01/04@16:45:44> [main] loaded config from configs/dimu2.conf
<02/01/04@16:45:44> [main] initializing (usermax:5 portbase:9550)...
<02/01/04@16:45:44> [main] No ban file found (sc_serv.ban)
<02/01/04@16:45:44> [main] No rip file found (sc_serv.rip)
<02/01/04@16:45:44> [main] opening source socket
<02/01/04@16:45:44> [main] source thread starting
<02/01/04@16:45:44> [source] listening for connection on port 9551
<02/01/04@16:45:44> [main] opening client socket
<02/01/04@16:45:44> [main] Client Stream thread [0] starting
<02/01/04@16:45:44> [main] client main thread starting
<02/01/04@16:45:54> [source] connected from
Segmentation fault

So what is the error? Logfiles are turned off
DJLopez is offline   Reply With Quote
Old 1st February 2004, 15:37   #3
Junior Member
Join Date: Jan 2003
Posts: 33
I found the error, and a new sc_serv bug!!

It's about the file-permissions on *nix-servers, but not what you think!

So I log in with ssh, and I am in my homedir. Now I cd to anywhere else, letme say /root (where I have no permissions but reading).

Here I start sc_serv:
/path/to/sc_serv /path/to/config &

Now, it's in the background, and after the first connect, the server crashes, no output to logfile (if set), but "Segmentation fault" on terminal!

The config:
Port: 8000
Pass: nomatter
; Banfile = sc_serv.ban
; Logfile = sc_serv.log

Please take a look, Banfile is commented!
After I switched back to my homedir, the server didn't crash anymore!
So I cd back to /root and there:
touch sc_serv.ban
touch sc_serv.rip

and starting the server. Now the server runs perfectly!

OK, thats the punchline:
Even if you don't process the banfile in your config, you need the permission to write the file in the directory where you start the server (in my case /root).

It *IS* a bug of shoutcast, however, you may use my workaround!
DJLopez is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump