Segmentation fault5

Steamcast is a stand alone server that combines the features of SHOUTcast and Icecast2 and more to make one mega awesome server.
Post Reply
Salvis
Posts: 9
Joined: Thu Feb 07, 2008 4:28 am
Location: Riga, Latvia

Segmentation fault5

Post by Salvis »

Server: Fedora 8 64bit
Software: Steamcast Distributed Network Multimedia Server/0.9.75 beta

Server crashes with: "Segmentation fault5" and "Segmentation fault4".
What that's mean and how to fix it?
LOG file not writing this error in log.
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

What action preceded this?
- Jay
Salvis
Posts: 9
Joined: Thu Feb 07, 2008 4:28 am
Location: Riga, Latvia

Post by Salvis »

<09/02/2008@20:45:17> [src] Content-Type: audio/mpeg
<09/02/2008@20:45:17> [src] Source Connection Complete
<09/02/2008@20:45:17> [src] Starting YP Services...
Segmentation fault4 Nodes: 45 (Unique: 45) Tx: 289.55 Kbps<->5.84 Mbps
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

What are you using to source the connection, could you also post your config?
- Jay
Salvis
Posts: 9
Joined: Thu Feb 07, 2008 4:28 am
Location: Riga, Latvia

Post by Salvis »

For streaming we using winamp with DSP plugin.

steamcast.conf:

Code: Select all

; Steamcast Configuration File
; ================================
; This is the default Steamcast server configuration file, feel free to use
; it as a template for your server's configuration.  All lines beginning with ;
; or blank are ignored by the server's configuration parser.
;
; Server Configuration
; ====================
;
PortBase=2005
; MaxUser=20
MaxBandwidth=100000
; IPMaxUser=0
LogFile=%Y-%m-%d-steamcast.log
MimeFile=mime.types
BanFile=steamcast.ban
VipFile=steamcast.vip
ScreenLog=Yes
RealtimeLog=Yes
YPLog=No
PidFile=steamcast.pid
NameLookups=No
ShowLastSongs=50
ClientTimeout=300
;
; User Configuration
; ==================
;
AdminUser=MyUsername
AdminPass=MyPassword
;
; Source Configuration
; ====================
; Each source that you wish to allow on the server needs to be configured
; here first.  The parser will read strait down the file so if you have
; multiple source mounts and you declare a new mount before finishing
; configuration of another, then those configurations after the new
; declaration will go to the new mount.
;
SourceMount=/live
SourceUser=Encoder
SourcePass=coolpass
SourceUserMax=500
; SourceRelay=audio.str3am.com:4080
; SourceDisconnectWait=10 
; SourceDirectory=./content
; SourceGateway=/intro.%s
; SourceBackup=/live_back
; SourceAvgBitrateLimit=128
SourceIsSC=Yes
; SourceNameFormat=%s powered by Steamcast
SourceIsDefault=No
; SourceIP=123.45.67.89
; SourceAuth=No
; SourceAuthMax=0
; SourceListenerTimer=0
; SourcePublic=Default
; SourcePublicRelays=Yes
; SourceRawKey=rawdata
; SourceBuffUtil=100
;
; Nekas
SourceMount=/nostream
SourceUser=NOSTREAM
SourcePass=coolpass2
SourceUserMax=1
;SourceBackup=/Hitz
;SourceBuffUtil=60
;
; Nekas
SourceGateway=
SourceMount=/nostream2
SourceUser=NOTSTREAM
SourcePass=willnotstreamthissource
SourceUserMax=1
;SourceBuffUtil=0
;
; FANO Radio
SourceMount=/fano
SourceUser=12345
SourcePass=123456789
SourceUserMax=500
SourceGateway=./intro.fano
SourceRawKey=flash
SourceBackup=/Hitz
;
;
; jauniesi
SourceMount=/111111111
SourceUser=11111111
SourcePass=1111111
SourceUserMax=150
;
;Hitz Radio
;
SourceMount=/Hitz
SourceUser=Hitz
SourcePass=22222222
SourceRelay=http://scfire-nyk-aa03.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-nyk-aa01.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-dll-aa02.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-nyk-aa04.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-chi-aa04.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-chi-aa01.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-ntc-aa05.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-ntc-aa02.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-nyk-aa02.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-chi-aa03.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-dll-aa05.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-ntc-aa03.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-nyk-aa05.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-ntc-aa01.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-chi-aa02.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-ntc-aa04.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-dll-aa03.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-chi-aa05.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-dll-aa04.stream.aol.com:80/stream/1038
SourceRelay=http://scfire-dll-aa01.stream.aol.com:80/stream/1038
SourceUserMax=500
;
; ZIPFM
SourceMount=/zip
SourceUser=ZIPFM
SourcePass=3333333333
SourceRelay=http://84.32.194.146:80/zip.aac
SourceUserMax=500
;SourceBackup=/Hitz
;SourceBuffUtil=60
;
; outlawradio
SourceGateway=
SourceMount=/44444444
SourceUser=44444444
SourcePass=555555555
SourceUserMax=500
;SourceBuffUtil=0
;
;
; Radio Wc3
SourceGateway=
SourceMount=/666666666666
SourceUser=6666666
SourcePass=66666666
SourceUserMax=500
;SourceBuffUtil=0
;
;
; SkaKri
SourceGateway=
SourceMount=/777777
SourceUser=7777777777777
SourcePass=8888888
SourceUserMax=500
;SourceBuffUtil=0
;
;
; messung
SourceGateway=
SourceMount=/8888888
SourceUser=88888888
SourcePass=999999999
SourceUserMax=100
;SourceBuffUtil=0
;
;
;
; Directory Configuration
; =======================
Directory=http://www.steamcast.com/sbin/yp.php
;Directory=http://dir.xiph.org/cgi-bin/yp-cgi
;
; Advanced Configuration
; ======================
; Do not mess with these configuration values unless you know what you are
; doing, typically these are settings which should not need adjusting.  But
; are here for those users who feel they need more control over how the 
; server behaves.
;
; ServIP=ANY
; SrcIP=ANY
ThreadPool=100
; MetaInterval=8192
;
; if I could smile I would.
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

which stream is that log identifying? I need to know as much about the source that is causing the crash as possible.

Thanks.
- Jay
Salvis
Posts: 9
Joined: Thu Feb 07, 2008 4:28 am
Location: Riga, Latvia

Post by Salvis »

Its hard to tell with stream it was, but here is crash again, but differ from others:

Code: Select all

<09/07/2008@13:58:21> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/07/2008@13:58:21> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/07/2008@13:58:22> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/07/2008@13:58:22> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/07/2008@13:58:30> [dest] <80.232.247.211> [200] (OK) "Request: GET /admin.cgi" {UA: Mozilla/3.0 (compatible)}
<09/07/2008@13:58:30> [src] Name:.::DecodeR::RadiO::Dj_GG; Genre:Various
<09/07/2008@13:58:30> [src] Public:1; Bitrate:96; URL:http://ezis1005.lv
<09/07/2008@13:58:30> [src] Content-Type: audio/mpeg
<09/07/2008@13:58:30> [src] Source Connection Complete
<09/07/2008@13:58:30> [src] Starting YP Services...
<09/07/2008@13:58:31> [ypadd] <updinfo> [/44444444] NAK: No YPResponse!
<09/07/2008@13:58:37> [dest] <194.143.152.107> [401] (No Source) "Request: GET /777777.mp3" {UA: WinampMPEG/5.0}
<09/07/2008@13:58:40> [dest] <78.84.255.26> Connection Opened (A: 195.244.128.88:2005/44444444.mp3) [L: 20] {UA: WinampMPEG/5.54}
<09/07/2008@13:58:46> [dest] <87.110.0.79> Connection Closed [L: 19] {18869747 bytes} (1215 secs) RE: Success
<09/07/2008@13:58:48> [dest] <194.143.152.107> [401] (No Source) "Request: GET /777777.mp3" {UA: WinampMPEG/5.0}
*** glibc detected *** ./steamcast: munmap_chunk(): invalid pointer: 0x085e86e8 ***
======= Backtrace: =========
/lib/libc.so.6(cfree+0x1bb)[0x2cd55b]
./steamcast[0x805c8dd]
./steamcast[0x806359e]
/lib/libpthread.so.0[0x3ef44b]
/lib/libc.so.6(clone+0x5e)[0x33280e]
======= Memory map: ========
00243000-0025e000 r-xp 00000000 fd:00 34275558                           /lib/ld-2.6.so
0025e000-0025f000 r-xp 0001a000 fd:00 34275558                           /lib/ld-2.6.so
0025f000-00260000 rwxp 0001b000 fd:00 34275558                           /lib/ld-2.6.so
00262000-003b0000 r-xp 00000000 fd:00 34275344                           /lib/libc-2.6.so
003b0000-003b2000 r-xp 0014e000 fd:00 34275344                           /lib/libc-2.6.so
003b2000-003b3000 rwxp 00150000 fd:00 34275344                           /lib/libc-2.6.so
003b3000-003b6000 rwxp 003b3000 00:00 0
003bf000-003e6000 r-xp 00000000 fd:00 34275395                           /lib/libm-2.6.so
003e6000-003e7000 r-xp 00026000 fd:00 34275395                           /lib/libm-2.6.so
003e7000-003e8000 rwxp 00027000 fd:00 34275395                           /lib/libm-2.6.so
003ea000-003fe000 r-xp 00000000 fd:00 34275396                           /lib/libpthread-2.6.so
003fe000-003ff000 r-xp 00013000 fd:00 34275396                           /lib/libpthread-2.6.so
003ff000-00400000 rwxp 00014000 fd:00 34275396                           /lib/libpthread-2.6.so
00400000-00402000 rwxp 00400000 00:00 0
00500000-0050b000 r-xp 00000000 fd:00 34275375                           /lib/libgcc_s-4.1.2-20070925.so.1
0050b000-0050c000 rwxp 0000a000 fd:00 34275375                           /lib/libgcc_s-4.1.2-20070925.so.1
00543000-00553000 r-xp 00000000 fd:00 34275362                           /lib/libresolv-2.6.so
00553000-00554000 r-xp 0000f000 fd:00 34275362                           /lib/libresolv-2.6.so
00554000-00555000 rwxp 00010000 fd:00 34275362                           /lib/libresolv-2.6.so
00555000-00557000 rwxp 00555000 00:00 0
08048000-080b1000 r-xp 00000000 fd:00 23396460                           /root/radio/steamcast
080b1000-080cb000 rwxp 00069000 fd:00 23396460                           /root/radio/steamcast
080cb000-0879c000 rwxp 080cb000 00:00 0                                  [heap]
af3fc000-af3fd000 ---p af3fc000 00:00 0
af3fd000-afdfd000 rwxp af3fd000 00:00 0
afdfd000-afdfe000 ---p afdfd000 00:00 0
afdfe000-b07fe000 rwxp afdfe000 00:00 0
b07fe000-b07ff000 ---p b07fe000 00:00 0
b07ff000-b11ff000 rwxp b07ff000 00:00 0
b11ff000-b1200000 ---p b11ff000 00:00 0
b1200000-b1cf3000 rwxp b1200000 00:00 0
b1cf3000-b1d00000 ---p b1cf3000 00:00 0
b1dac000-b1eff000 rwxp b1dac000 00:00 0
b1eff000-b1f00000 ---p b1eff000 00:00 0
b1f47000-b1f48000 ---p b1f47000 00:00 0
b1f48000-b2948000 rwxp b1f48000 00:00 0
b2948000-b2949000 ---p b2948000 00:00 0
b2949000-b3349000 rwxp b2949000 00:00 0
b3d3a000-b3d3b000 ---p b3d3a000 00:00 0
b3d3b000-b474b000 rwxp b3d3b000 00:00 0
b5000000-b5060000 rwxp b5000000 00:00 0
b5060000-b5100000 ---p b5060000 00:00 0
b5143000-b514c000 rwxp b5143000 00:00 0
b514c000-b514d000 ---p b514c000 00:00 0
b514d000-b5b4d000 rwxp b514d000 00:00 0
b5b4d000-b5b4e000 ---p b5b4d000 00:00 0
b5b4e000-b654e000 rwxp b5b4e000 00:00 0
b654e000-b654f000 ---p b654e000 00:00 0
b654f000-b6f4f000 rwxp b654f000 00:00 0
b6f4f000-b6f50000 ---p b6f4f000 00:00 0
b6f50000-b7950000 rwxp b6f50000 00:00 0
b7950000-b7951000 ---p b7950000 00:00 0
b7951000-b8351000 rwxp b7951000 00:00 0
b8351000-b8352000 ---p b8351000 00:00 0
b8352000-b8d52000 rwxp b8352000 00:00 0
b8d52000-b8d53000 ---p b8d52000 00:00 0
b8d53000-b9753000 rwxp b8d53000 00:00 0
b9753000-b9754000 ---p b9753000 00:00 0
b9754000-ba154000 rwxp b9754000 00:00 0
ba154000-ba155000 ---p ba154000 00:00 0
ba155000-bab55000 rwxp ba155000 00:00 0
bab55000-bab56000 ---p bab55000 00:00 0
bab56000-bb556000 rwxp bab56000 00:00 0
bb556000-bb557000 ---p bb556000 00:00 0
bb557000-bbf57000 rwxp bb557000 00:00 0
bbf57000-bbf58000 ---p bbf57000 00:00 0
bbf58000-bc958000 rwxp bbf58000 00:00 0
bc958000-bc959000 ---p Aborted
[root@lainux radio]#
And here is segmentation fault5:

Code: Select all

<09/07/2008@17:53:42> [dest] <85.255.65.218> Connection Closed [L: 23] {459037 bytes} (6 secs) RE: Success
<09/07/2008@17:54:28> [dest] <87.110.106.91> [200] (OK) "Request: GET /admin.cgi" {UA: VirtualDJ (Mozilla compatible)}
<09/07/2008@17:54:57> [dest] <78.84.32.108> Connection Closed [L: 22] {6459052 bytes} (382 secs) RE: Success
<09/07/2008@17:54:57> [dest] <87.110.88.116> Connection Closed [L: 21] {2632392 bytes} (202 secs) RE: No Data Flow Timeout
<09/07/2008@17:55:13> [dest] <81.198.255.197> [200] (OK) "Request: GET /admin.cgi" {UA: ShoutcastDSP (Mozilla Compatible)}
<09/07/2008@17:55:26> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/07/2008@17:55:31> [dest] <81.198.133.191> Connection Closed [L: 20] {2793757 bytes} (155 secs) RE: Success
<09/07/2008@17:55:41> [dest] <85.15.239.19> Connection Opened (A: 195.244.128.88:2005/fano.mp3) [L: 21] {UA: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16}
<09/07/2008@17:55:41> [serv] Intro File Size: 81400
Segmentation fault5 Nodes: 21 (Unique: 21) Tx: 952.80 Kbps<->5.60 Mbps
[root@lainux radio]#


Is this information you need ?
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

Has anyone gotten steamcast to work successfully in a 64bit environment? Also you might try disabling some of your mounts until the crash goes away to see if we can pinpoint a source.
- Jay
Salvis
Posts: 9
Joined: Thu Feb 07, 2008 4:28 am
Location: Riga, Latvia

Post by Salvis »

Code: Select all

<09/09/2008@21:17:00> [dest] <81.198.255.197> [200] (OK) "Request: GET /admin.cgi" {UA: Mozilla/3.0 (compatible)}
<09/09/2008@21:17:01> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/09/2008@21:17:02> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/09/2008@21:17:02> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/09/2008@21:17:02> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/09/2008@21:17:02> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/09/2008@21:17:03> [dest] <194.8.16.3> [200] (OK) "Request: GET /" {UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)}
<09/09/2008@21:17:17> [dest] <84.237.185.51> [200] (OK) "Request: GET /listen.m3u" {UA: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16}
<09/09/2008@21:17:18> [dest] <84.237.185.51> Connection Opened (A: 195.244.128.88:2005/outlawradio.mp3) [L: 37] {UA: NSPlayer/11.0.5721.5145 WMFSDK/11.0}
<09/09/2008@21:17:18> [dest] <84.237.185.51> Connection Closed [L: 35] {16339 bytes} (2 secs) RE: Success
<09/09/2008@21:17:18> [dest] <84.237.185.51> Connection Closed [L: 34] {385303 bytes} (80 secs) RE: Success
<09/09/2008@21:17:18> [dest] <84.237.185.51> Connection Closed [L: 34] {0 bytes} (-2 secs) RE: Success
out of memoryces: 4 Nodes: 34 (Unique: 33) Tx: 378.48 Kbps<->4.49 Mbps
Segmentation fault
]#
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

I would say that this is due to the 64bit environment. The out of memory error is strange.
- Jay
Post Reply