[prev in list] [next in list] [prev in thread] [next in thread]
List: spread-users
Subject: RE: [Spread-users] An unintentional bug in spread daemon 4
From: "Jacob Green" <jgreen () spreadconcepts ! com>
Date: 2006-05-24 16:38:08
Message-ID: 200605241641.k4OGf4wL001506 () mailer ! progressive-comp ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks Danish. Bug has been fixed, and all win32 project files link with
wsock32.lib rather then Ws2_32.lib.
Jacob
_____
From: spread-users-bounces@lists.spread.org
[mailto:spread-users-bounces@lists.spread.org] On Behalf Of Danish Ahmed
Sent: Wednesday, May 24, 2006 11:07 AM
To: spread-users@lists.spread.org
Subject: [Spread-users] An unintentional bug in spread daemon 4
releasecandidate for windows
Hi all
I run spread daemon with following configuration
Spread_Segment 234.5.6.7:5120 {
danish
jaywks
}
danish and jaywks are 2 computer names on our LAN.
i always got error:
DL_init_channel: problem in setsockopt to multicast address -368769529
Then i open spread code and debug it. What i saw the following call always
fail in Data_link.c file in DL_init_channel function.
if (setsockopt(chan, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void *)&mreq,
sizeof(mreq)) < 0)
{
Alarm( EXIT, "DL_init_channel: problem in setsockopt to multicast address
%d\n", mcast_address );
}
Then i was trying to see code carefully and was making some alteration but i
did not find any solution that would worked. As socket option always got
failed so i guessed it is some problem with membership option. So i made
another program( a very simple one ) to check this API and what i saw it too
always failed. Then i searched it and found it is a problem in winsock
library inclusion from the link http://support.microsoft.com/kb/q257460/.
So i changed the import library file according to this article and it
worked.
Suggestion:
Review all other spread projects source code for socket options and their
conflicts on winsock libraries and correct them if required according to
given link.
Best Regards
Danish Ahmed
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks Danish. Bug has been fixed,
and all win32 project files link with wsock32.lib rather then Ws2_32.lib. \
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jacob<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
spread-users-bounces@lists.spread.org [mailto:spread-users-bounces@lists.spread.org]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Danish Ahmed<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, May 24, 2006
11:07 AM<br>
<b><span style='font-weight:bold'>To:</span></b> spread-users@lists.spread.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Spread-users] An
unintentional bug in spread daemon 4 releasecandidate for \
windows</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hi \
all<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I run
spread daemon with following configuration<o:p></o:p></span></font></p>
<p><strong><b><font size=3 face="Times New Roman"><span \
style='font-size:12.0pt'>Spread_Segment 234.5.6.7:5120 \
{</span></font></b></strong><o:p></o:p></p>
<p><strong><b><font size=3 face="Times New Roman"><span \
style='font-size:12.0pt'>danish</span></font></b></strong><o:p></o:p></p>
<p><strong><b><font size=3 face="Times New Roman"><span \
style='font-size:12.0pt'>jaywks</span></font></b></strong><o:p></o:p></p>
<p><strong><b><font size=3 face="Times New Roman"><span \
style='font-size:12.0pt'>}</span></font></b></strong><o:p></o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>danish
and jaywks are 2 computer names on our LAN.<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>i always
got error:<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span \
style='font-size:12.0pt'>DL_init_channel: problem in setsockopt to multicast address \
-368769529<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Then i open spread code and debug it. What i saw the following
call always fail in Data_link.c file in </span></font><font size=2><span
style='font-size:10.0pt'>DL_init_channel function.</span></font><o:p></o:p></p>
</div>
<div>
<p><strong><b><font size=2 color=blue face="Times New Roman"><span
style='font-size:10.0pt;color:blue'>if</span></font></b></strong><strong><b><font
size=2 face="Times New Roman"><span style='font-size:10.0pt'> (setsockopt(chan,
IPPROTO_IP, IP_ADD_MEMBERSHIP, (<font color=blue><span \
style='color:blue'>void</span></font>
*)&mreq, </span></font></b></strong><font size=2><span style='font-size:
10.0pt'><o:p></o:p></span></font></p>
<p><strong><b><font size=2 color=blue face="Times New Roman"><span
style='font-size:10.0pt;color:blue'>sizeof</span></font></b></strong><strong><b><font
size=2 face="Times New Roman"><span style='font-size:10.0pt'>(mreq)) < 0) \
</span></font></b></strong><font size=2><span \
style='font-size:10.0pt'><o:p></o:p></span></font></p>
<p><strong><b><font size=2 face="Times New Roman"><span \
style='font-size:10.0pt'>{</span></font></b></strong><font size=2><span \
style='font-size:10.0pt'><o:p></o:p></span></font></p>
<p><strong><b><font size=2 face="Times New Roman"><span \
style='font-size:10.0pt'>Alarm( EXIT, "DL_init_channel: problem in setsockopt to \
multicast address %d\n", mcast_address );</span></font></b></strong><font \
size=2><span style='font-size:10.0pt'><o:p></o:p></span></font></p>
<p><strong><b><font size=2 face="Times New Roman"><span \
style='font-size:10.0pt'>}</span></font></b></strong><font size=2><span \
style='font-size:10.0pt'><o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Then i
was trying to see code carefully and was making some alteration but i did not
find any solution that would worked. As socket option always got failed so i
guessed it is some problem with membership option. So i made another program( a
very simple one ) to check this API and what i saw it too always
failed. Then i searched it and found it is a problem in winsock library
inclusion from the link <a \
href="http://support.microsoft.com/kb/q257460/">http://support.microsoft.com/kb/q257460/</a>.<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>So i
changed the import library file according to this article and it \
worked.<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span \
style='font-size:10.0pt'>Suggestion:<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Review
all other spread projects source code for socket options and their conflicts on
winsock libraries and correct them if required according to given \
link.<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Best
Regards<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Danish
Ahmed<o:p></o:p></span></font></p>
</div>
</div>
</div>
</body>
</html>
_______________________________________________
Spread-users mailing list
Spread-users@lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic