Solaris 9 bug with string variable

"Al Rankin" <[email protected]> Tue, 28 Jun 2005 14:07:30 -0300
Newsgroups gmane.network.bb4.devel
Message-ID <[email protected]>
This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=__PartAA8924C2.0__=
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

I have posted on the [email protected] concerning not getting paged with a new
install of big brother 1.9f on a Solaris 9/SPARC machine. I have put
several of the C source files in debug and recompiled and looked at the
output in BBOUT.  Lines in BBOUT that interested me were:
 
Included hosts are: <diis2 nsos1 nsas1 nshsm1 nsas2>
INTO REPLACESTR
...
Column 1 converted to a regex: <>
...
match on [ ]
[ ] generates a string too large, stopped !
 
Ive looked at another 'older' big brother server and the regexp line
seemed to read :
 
diis2|nsos1|nsas1|nshsm1|nsas2
 
This leads me to believe that there is some kind of bug in bbpage.c
surrounding the lines:
 
.
#2118  space_sep(hosts);
.  if( DEBUG ) {
.   fprintf(stderr,"Included hosts are: <%s>\n",hosts);
.   fflush(stderr);
.  }  
.  /*replacestr(hosts,sizeof(hosts),"*",".*");*/
.  replacestr(hosts,sizeof(hosts)," ","|");
.  if( DEBUG ) {
.   fprintf(stderr,"Column 1 converted to a regex: <%s>\n",hosts);
.   fflush(stderr);
.  }
 
My BBOUT output clearly shows that `hosts` is equal to <diis2 nsos1
nsas1 nshsm1 nsas2> when space_sep(hosts) is called, but when the next
function is called:
 
replacestr(hosts,sizeof(hosts)," ","|");
 
the value 'hosts' does not get passed as shown in the BBOUT output:
 
dst: [] from: [  ] to: [ ] dstmaxlen: [0]
 
Any idead from the gurus ??
 
Al Rankin   B.Sc., R.T.N.M.
 
Provincial PACS Specialist
 
vm. 902 473 4000 x2
ph.  902 473 4351
pg. 902 473 1760 p7701

Confidentiality: This email message may contain confidential
information and is intended only for the individual named. If you
are not the named addressee you should not disseminate, distribute
or copy this email. Please notify the sender immediately by email
if you have received this email by mistake and delete this email
from your system. Email transmissions cannot be guaranteed to be
secure or error free as information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses. 
The sender therefore does not accept any liability for errors or
omissions in the contents of this message that arise as a result 
of email transmissions. If verification is required please request a hard 
copy version.

--=__PartAA8924C2.0__=
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML

<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>I have posted on the <A href=3D"mailto:[email protected]">[email protected]</A> =
concerning not getting paged with a new install of big brother 1.9f on a =
Solaris 9/SPARC machine. I have put several of the C source files in debug =
and recompiled and looked at the output in BBOUT.&nbsp; Lines in BBOUT =
that interested me were:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Included hosts are: &lt;diis2 nsos1 nsas1 nshsm1 nsas2&gt;<BR>INTO =
REPLACESTR</DIV>
<DIV>...</DIV>
<DIV>Column 1 converted to a regex: &lt;&gt;</DIV>
<DIV>...</DIV>
<DIV>match on [ ]<BR>[ ] generates a string too large, stopped !</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ive looked at another 'older' big brother server and&nbsp;the =
regexp&nbsp;line seemed to read :</DIV>
<DIV>&nbsp;</DIV>
<DIV>diis2|nsos1|nsas1|nshsm1|nsas2</DIV>
<DIV>&nbsp;</DIV>
<DIV>This leads me to believe that there is some kind of bug in bbpage.c =
surrounding the lines:</DIV>
<DIV>&nbsp;</DIV>
<DIV>.</DIV>
<DIV>#2118&nbsp;&nbsp;space_sep(hosts);<BR>.&nbsp;&nbsp;if( DEBUG ) =
{<BR>.&nbsp;&nbsp;&nbsp;fprintf(stderr,"Included hosts are: &lt;%s&gt;\n",h=
osts);<BR>.&nbsp;&nbsp;&nbsp;fflush(stderr);<BR>.&nbsp;&nbsp;}&nbsp;&nbsp;<=
BR>.&nbsp;&nbsp;/*replacestr(hosts,sizeof(hosts),"*",".*");*/<BR>.&nbsp;&nb=
sp;replacestr(hosts,sizeof(hosts)," ","|");<BR>.&nbsp;&nbsp;if( DEBUG ) =
{<BR>.&nbsp;&nbsp;&nbsp;fprintf(stderr,"Column 1 converted to a regex: =
&lt;%s&gt;\n",hosts);<BR>.&nbsp;&nbsp;&nbsp;fflush(stderr);<BR>.&nbsp;&nbsp=
;}</DIV>
<DIV>&nbsp;</DIV>
<DIV>My BBOUT output clearly shows that `hosts` is equal to &lt;diis2 =
nsos1 nsas1 nshsm1 nsas2&gt; when space_sep(hosts) is called, but when the =
next function is called:</DIV>
<DIV>&nbsp;</DIV>
<DIV>replacestr(hosts,sizeof(hosts)," ","|");</DIV>
<DIV>&nbsp;</DIV>
<DIV>the value 'hosts' does not get passed as shown in the BBOUT output:</D=
IV>
<DIV>&nbsp;</DIV>
<DIV>dst: [] from: [&nbsp; ] to: [ ] dstmaxlen: [0]</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any idead from the gurus ??</DIV>
<DIV>&nbsp;</DIV>
<DIV>Al Rankin&nbsp;&nbsp; B.Sc., R.T.N.M.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Provincial PACS Specialist</DIV>
<DIV>&nbsp;</DIV>
<DIV>vm. 902 473 4000 x2<BR>ph.&nbsp; 902 473 4351<BR>pg. 902 473 1760 =
p7701</DIV></BODY></HTML>

<table><tr><td><font size="1" face="Arial, Helvetica, sans-serif"><strong>Confidentiality: 
      </strong><em>This email message may contain confidential information and 
      is intended only for the individual named. If you are not the named addressee 
      you should not disseminate, distribute or copy this email. Please notify 
      the sender immediately by email if you have received this email by mistake 
      and delete this email from your system. Email transmissions cannot be guaranteed 
      to be secure or error free as information could be intercepted, corrupted, 
      lost, destroyed, arrive late or incomplete, or contain viruses. The sender 
      therefore does not accept any liability for errors or omissions in the contents 
      of this message that arise as a result of email transmissions. If verification 
      is required please request a hard copy version. </em></font><td></tr></table>
</BODY></HTML>

--=__PartAA8924C2.0__=--
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list send e-mail to mailto:[email protected]
with unsubscribe bbd in the BODY of the message.