[hobbit] Getting hobbit running on FreeBSD
We are using hobbit for a while on FreeBSD (from the beta to the latest 4.1.1), we never encountered this problem. We are running two hobbits servers on 5.4 stable. Do you get a core as soon as you start it ? What version of hobbit have you tried to install ? On the client side, we needed to modify the hobbit client (already reported on this list) to be able to check memory bigger than 2 gb and to avoid to report disk problem with devfs at 100% Laurent -----Original Message----- From: Scott, Brian [mailto:Brian.Scott at det.nsw.edu.au] Sent: Thursday, September 01, 2005 7:05 AM To: hobbit at hswn.dk Subject: [hobbit] Getting hobbit running on FreeBSD Hello all, I've just had a try at installing hobbit on various versions (5.3, 5.4) of FreeBSD. I was getting segvs whenever hobbitd started. After a little work with gdb I found that allocating some buffers was based on hostcount when hostcount was zero. I presume that on some other platforms a zero sized malloc returns some useful amount of memory but not on FreeBSD (it claims to return some storage rather than NULL depending on /etc/malloc.conf but apparently not enough). I patched hobbitd.c to increase the size (without bothering to look at the code in any detail) and now it doesn't segv on me. I hope this helps someone else trying to make it run. BTW: I also had to change the group of most of the installation to my web server group after installation. I possibly could have created the hobbit user in the web group to get arround this but somehow it seems tacky. Thanks for the nice software, Brian --- hobbit-4.1.1.orig/hobbitd/hobbitd.c Tue Jul 26 00:55:43 2005 +++ hobbit-4.1.1/hobbitd/hobbitd.c Thu Sep 1 13:18:04 2005 @@ -2122,7 +2122,7 @@ if (lastboardsize == 0) { /* A guesstimate - 8 tests per hosts, 1KB/test (only 1st line of msg) */ - bufsz = hostcount*8*1024; + bufsz = (hostcount+1)*8*1024; } else { /* Add 10% to the last size we used */ @@ -2274,7 +2274,7 @@ if (lastboardsize == 0) { /* A guesstimate - 8 tests per hosts, 2KB/test (only 1st line of msg) */ - bufsz = hostcount*8*2048; + bufsz = (hostcount+1)*8*2048; } else { /* Add 10% to the last size we used */ ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ********************************************************************** To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. This communication is from TI Automotive.
participants (1)
-
lgrilli@be.tiauto.com