Xymon Mailing List Archive search

beta-5 bugfix for hobbitd going dead

2 messages in this thread

list Henrik Størner · Mon, 17 Jan 2005 22:28:40 +0100 ·
Thanks to the very helpful Gordon Thiesfeld, I now believe I've found
the bug that was causing Hobbit to lock up and die.

It was - of course - a stupid programming error. It's in all of the
Hobbit beta-versions, so it really is quite amazing it hasn't
triggered on any of the systems I run Hobbit on internally.

I'd recommend applying the attached patch to your Hobbit 4.0-beta5
sources, then rebuild and restart Hobbit. I.e. :

   Save attached patch to /tmp/post-beta5-loop.patch

   cd hobbit-4.0-beta5
   patch lib/encoding.c < /tmp/post-beta5-loop.patch
   make
   make install


Regards,
Henrik
-------------- next part --------------
--- lib/encoding.c	2005/01/16 11:44:18	1.4
+++ lib/encoding.c	2005/01/17 20:54:17
@@ -229,8 +229,8 @@
 
 	while (*inp) {
 		n = strcspn(inp, "\\");
-		if ((n > 0) && (inp != outp)) {
-			memmove(outp, inp, n);
+		if (n > 0) {
+			if (inp != outp) memmove(outp, inp, n);
 			inp += n;
 			outp += n;
 		}
list Charles Jones · Tue, 18 Jan 2005 13:32:32 -0700 ·
Just wanted to report that I am now successfully testing Hobbit in conjunction with my production BigBrother server, by adding the BBRELAY option in the bb-hosts of my BigBrother server.  All the client status messages get relayed to the test Hobbit server, so now I am free to test Hobbit and configure test alerts without affecting the production BigBrother setup :-)

-Charles