Xymon Mailing List Archive search

Snapshot 19/2 crash

3 messages in this thread

list Lars Ebeling · Sun, 19 Feb 2006 14:59:41 +0100 ·
Hi all,

todays (060219)  crashed.

This was found in hobbitlaunch.log:
$ pg *                                                                          2006-02-19 14:54:38 hobbitlaunch starting                                       2006-02-19 14:54:38 Loading tasklist configuration from /home/hobbit/server/etc/
hobbitlaunch.cfg                                                                2006-02-19 14:54:38 Loading hostnames                                           2006-02-19 14:54:38 xmalloc: Out of memory!                                     2006-02-19 14:54:39 Could not connect to bbdÉ192.168.0.2:1984 - Connection refus
ed                                                                              2006-02-19 14:54:39 Whoops ! bb failed to send message - Connection failed      2006-02-19 14:54:39 Task hobbitd terminated by signal 6                         2006-02-19 14:54:46 Loading hostnames                                           2006-02-19 14:54:46 xmalloc: Out of memory!                                     2006-02-19 14:54:47 Task hobbitd terminated by signal 6                         $                                                                               
And this is from the coredump:

$ ll core                                                                       -rw-------   1 hobbit     users       312908 Feb 19 14:50 core                  $ file core                                                                     core:           core file from 'hobbitd' - received SIGABRT                     $ gdb bin/hobbitd ./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.0n-hp-hpux11.00"...                           Core was generated by éhobbitd'.                                                Program terminated with signal 6, Aborted.                                                                                                                      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 referenced in dld_list.                        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  0xc020bad0 in kill () from /usr/lib/libc.2                                  (gdb) bt                                                                        #0  0xc020bad0 in kill () from /usr/lib/libc.2                                  #1  0xc01a655c in raise () from /usr/lib/libc.2                                 #2  0xc01e69a8 in abort_C () from /usr/lib/libc.2                               #3  0xc01e6a04 in abort () from /usr/lib/libc.2                                 #4  0x00011cc0 in xmalloc (size=1073749888) at memory.c:122                     #5  0x00003688 in load_clientconfig () at hobbitd.c:328                         #6  0x0000c914 in main (argc=14, argv=0x18000) at hobbitd.c:3755                (gdb) q                                                                         $                                                                               Regards
Lars Ebeling

http://leopg9.no-ip.org
Hobbithobbyist

"It is better to keep your mouth shut and appear stupid than to open it and remove all doubt."
-- Mark Twain
list Henrik Størner · Sun, 19 Feb 2006 15:26:24 +0100 ·
quoted from Lars Ebeling
On Sun, Feb 19, 2006 at 02:59:41PM +0100, lars ebeling wrote:
todays (060219)  crashed.

This was found in hobbitlaunch.log:
2006-02-19 14:54:46 xmalloc: Out of memory!                                     
2006-02-19 14:54:47 Task hobbitd terminated by signal 6                         
#4  0x00011cc0 in xmalloc (size=1073749888) at memory.c:122                     
#5  0x00003688 in load_clientconfig () at hobbitd.c:328                         
#6  0x0000c914 in main (argc=14, argv=0x18000) at hobbitd.c:3755                
No wonder it did that ... trying to allocate 1 GB RAM is
a bit out of the ordinary. It should work better with the attached
patch.


Henrik

-------------- next part --------------
--- beta/snapshot/hobbitd/hobbitd.c	2006-02-17 14:08:51.000000000 +0100
+++ hobbitd/hobbitd.c	2006-02-19 15:23:18.592658680 +0100
@@ -25,7 +25,7 @@
 /*                                                                            */
 /*----------------------------------------------------------------------------*/
 
-static char rcsid[] = "$Id: hobbitd.c,v 1.204 2006/02/17 13:08:53 henrik Exp $";
+static char rcsid[] = "$Id: hobbitd.c,v 1.204 2006/02/17 13:08:53 henrik Exp henrik $";
 
 #include <limits.h>
 #include <sys/time.h>
@@ -325,6 +325,7 @@
 	fd = stackfopen(configfn, "r", &clientconflist); if (!fd) return;
 	if (clientconfigs) xfree(clientconfigs);
 
+	fstat(fileno(fd), &st);
 	clientconfigs = (char *)malloc(st.st_size + 2);
 	*clientconfigs = '\n';
 	n = fread(clientconfigs+1, 1, st.st_size, fd);
list Lars Ebeling · Sun, 19 Feb 2006 15:28:37 +0100 ·
Forgotten patch-command-syntax

Lars
quoted from Henrik Størner

----- Original Message ----- 
From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Sunday, February 19, 2006 3:26 PM
Subject: Re: [hobbit] Snapshot 19/2 crash

On Sun, Feb 19, 2006 at 02:59:41PM +0100, lars ebeling wrote:
todays (060219)  crashed.

This was found in hobbitlaunch.log:
2006-02-19 14:54:46 xmalloc: Out of memory!
2006-02-19 14:54:47 Task hobbitd terminated by signal 6
#4  0x00011cc0 in xmalloc (size=1073749888) at memory.c:122
#5  0x00003688 in load_clientconfig () at hobbitd.c:328
#6  0x0000c914 in main (argc=14, argv=0x18000) at hobbitd.c:3755
No wonder it did that ... trying to allocate 1 GB RAM is
a bit out of the ordinary. It should work better with the attached
patch.


Henrik