[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] RE: [hobbit] Bug in bbcombotest 4.3.0-beta2
- To: xymon (at) xymon.com
- Subject: Re: [xymon] RE: [hobbit] Bug in bbcombotest 4.3.0-beta2
- From: Henrik Størner <henrik (at) hswn.dk>
- Date: Mon, 31 Jan 2011 22:40:33 +0000 (UTC)
- Newsgroups: lists.hobbit
- Organization: Linux Users Inc.
- References: <72E9469F0632D54EBFB43920325B64CB02486240D7 (at) ITROMEX21.Q8INT.COM> <833FE11B4A07FD4789F720B6F915124F0786CA3481 (at) HHCGVL-COMM01> <833FE11B4A07FD4789F720B6F915124F0786CA3511 (at) HHCGVL-COMM01> <833FE11B4A07FD4789F720B6F915124F0786CA3513 (at) HHCGVL-COMM01> <200907241145.19772.bgmilne (at) staff.telkomsa.net> <72E9469F0632D54EBFB43920325B64CB02486240D7 (at) ITROMEX21.Q8INT.COM> <7EA6A25EC6360A488E0EBB5F3F21A0DC2EA18AA2 (at) mail-sd4.ad.soe.sony.com>
- User-agent: Pan/0.133 (House of Butterflies)
On Mon, 31 Jan 2011 13:28:45 -0800, Cleaver, Japheth wrote:
> I noticed the logic below seems to still be present in 4.3.0-RC1 (line
> 211 in xymond/combostatus.c).
You didn't look close enough. The code was changed from
>> hobbitdresult = sendmessage("hobbitdboard ....
>> if ((hobbitdresult != BB_OK) || (board == NULL)) {
to
xymondresult = sendmessage("xymondboard ....
board = getsendreturnstr(sres, 1);
if ((xymondresult != XYMONSEND_OK) || (board == NULL)) {
Notice the new assignment of "board" to something sensible before
it is tested.
Regards,
Henrik
>
>> -----Original Message-----
>> From: Francesco Duranti [mailto:fduranti (at) q8.it] Sent: Friday, July 24,
>> 2009 10:31 AM
>> To: hobbit (at) hswn.dk
>> Subject: [hobbit] Bug in bbcombotest 4.3.0-beta2
>>
>> Hi all,
>> I don't know if anyone use it or is interested but there's a bug in
>> 4.3.0-beta2 (and 4.4.0 too) related to the bbcombotest.
>>
>> The bug is at line 216 in the if just after the sendmessage...
>>
>> This is the code interested... the problem is that in 4.3.0 variable
>> board is not passed to sendmessage anymore (as in 4.2.3) so the if for
>> the error is always true and the test are not checked.
>>
>> hobbitdresult = sendmessage("hobbitdboard
>> fields=hostname,testname,color", NULL,
>> BBTALK_TIMEOUT, sres);
>> if ((hobbitdresult != BB_OK) || (board == NULL)) {
>> board = "";
>> *errptr += sprintf(*errptr, "Could not access
>> hobbitd board, error %d\n",
>> hobbitdresult);
>> return COL_CLEAR;
>> }
>>
>> Changing the "if" to "if (hobbitdresult != BB_OK) {" should solve the
>> problem.
>>