Henrik,
would you mind take a look on my next problem? :)
As just reported, hobbitd_client module stopped work. This is probably because i copied the fresh compiled hpux-meminfo tool to my client machine. On this machine this tool reports following: [memory] Total:0 Free:0
Any ideas why this happens? On my server machine, where the client is present as well - the memory is well reported. [memory] Total:2047 Free:432
Anyway, hobbitd_client crashes leaving a core file. It seems to be a problem with zero values. take a look:
t040m902:/opt/hobbit/server # gdb bin/hobbitd_client core GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "hppa2.0w-hp-hpux11.11"... Core was generated by `hobbitd_client'. Program terminated with signal 8, Arithmetic exception.
warning: The shared libraries were not privately mapped; setting a breakpoint in a shared library will not work until you rerun the program.
warning: Can't find file hobbitd_client referenced in dld_list. Reading symbols from /usr/local/lib/libpcre.sl...done. Reading symbols from /usr/lib/libnsl.1...done. Reading symbols from /usr/lib/libxti.2...done. Reading symbols from /usr/lib/libc.2...done. Reading symbols from /usr/lib/libdld.2...done. #0 0x00001ff0 in small_divisor () (gdb) bt #0 0x00001ff0 in small_divisor () #1 0x00004224 in unix_memory_report (hostname=0x4001ad6d "t040m901", hinfo=0x0, fromline=0x7f7f1a78 "\nStatus message received from 53.37.9.59\n", timestr=0x4001ad99 "Wed Aug 3 16:35:41 METDST 2005", memphystotal=0, memphysused=0, memactused=-1, memswaptotal=5355, memswapused=2245) at hobbitd_client.c:366 #2 0x00005d34 in handle_hpux_client (hostname=0x4001ad6d "t040m901", hinfo=0x4003b1c8, sender=0x3 "", timestamp=2139041612, clientdata=0x4001ad7c "client t040m901.hp-ux\n[date") at client/hpux.c:72 #3 0x0000694c in main (argc=1073851766, argv=0x7f7f14b4) at hobbitd_client.c:812 #4 0xc0143158 in _start () from /usr/lib/libc.2
Greetings,
Anatoli Bogajewski
On Wed, Aug 03, 2005 at 04:50:05PM +0200, cits.bogajewski at daimlerchrysler.com wrote:
would you mind take a look on my next problem? :)
Sure ;-)
As just reported, hobbitd_client module stopped work. This is probably because i copied the fresh compiled hpux-meminfo tool to my client machine. On this machine this tool reports following: [memory] Total:0 Free:0
Oops - doesn't look good. Could it be that the system you compiled hpux-meminfo on is a different OS version than the one you're running it on ? Still I'd expect the code to be runnable across the two.
The obvious thing to try is to compile it on the machine where it fails - I know that might be easier said than done.
One thing you could try: There's a bug in the hpux-meminfo tool, the line that reads: pstat_getdynamic(&dbuf, sizeof(sbuf), 1, 0); should be pstat_getdynamic(&dbuf, sizeof(dbuf), 1, 0);
i.e. an "d" instead of an "s" in the "sizeof(Xbuf)". You could try fixing this and recompiling the tool, although it shouldn't cause the problem you see.
Anyway, hobbitd_client crashes leaving a core file. It seems to be a problem with zero values.
Yeah, it doesn't like doing a divide by zero. Patch attached.
Regards, Henrik
Henrik,
after applying of the patch there was a missing ";" at the end of line 391: memorysummary = "detection FAILED"; not a problem, but just to let you know.
Could it be that the system you compiled hpux-meminfo on is a different OS version than the one you're running it on ? Yes its true :/ hpux 11.11 vs. hpux 11.00
I know that might be easier said than done. hm.. i'll have to meditate about the 'how' for a while.
Thanks for help! hobbitd_client is working again.
Anatoli Bogajewski
participants (2)
-
cits.bogajewski@daimlerchrysler.com
-
henrik@hswn.dk