[icecast-dev] IceCast 1.3.11: Segmentation Violation in Linux

Kenyon, Paul pkenyon at CSOURCEKC.COM
Wed Aug 8 13:12:14 PDT 2001



Hello all,

When I try to run IceCast 1.3.11, it starts up okay, but crashes with
Segmentation Violation as soon as a client tries to connect to it.  I am
suspecting that there is a race condition, because when I try to strace
icecast, it works fine.  I am a novice level coder, so I dont know how
else I can help you. :-)  This is a problem I had with 1.3.10, but I
downloaded 1.3.11 to see if you all fixed it first.  My current work
around is to "strace -o /dev/null ./icecast"  

Linux poseidon 2.2.15 #1 SMP Wed Mar 21 16:48:40 CST 2001 i686 unknown
libc version is 5.4.46

Also, in order for icecast to even compile on my system, I had to modify
ice_resolv.c.  Apparently, youre expecting an extra parameter in
gethostbyname_r and gethostbyaddr_r.  Diffs follow:

170c170
<       if (gethostbyname_r (hostname, res, buffer, buflen, error) >= 0)

---
>       if (gethostbyname_r (hostname, res, buffer, buflen, &res, error)
>= 0)
181c181
<       if ((out = gethostbyaddr_r (host, hostlen, AF_INET, he, buffer,
buflen,
error) >= 0))
---
>       if ((out = gethostbyaddr_r (host, hostlen, AF_INET, he, buffer,
buflen,
&he, error) >= 0))

If I recall correctly, the linux man pages for gethostbyname were so
useless I had to use Solaris man pages!  Luckily, the call
specifications seem to be the same, because it built and sorta works.
:-)

Thanks for the help all, and keep up the good work - I'm loving IceCast
already!

-P

--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Icecast-dev mailing list