On Sun, 15 Jan 2012, Michael Friedrich wrote:

> gcc4 is preferred. gcc3 and sooner cause funny problems with realloc.
> how about sunfreeware tools?

    I'm still on 2.95.3, backed out all the hacking I did on the
idoutils and rebuilt everything (making subtle changes here and
there to get compiles to run) from scratch.  The symptoms are
now identical to what I first saw when I started in on idoutils.

    I have very verbose debugging turned on in ido2db.cfg:

debug_level=-1
debug_verbosity=2
debug_file=/usr/local/icinga/var/ido2db.debug
max_debug_file_size=10000000
debug_readable_timestamp=0

    Running ido2db in gdb yields the following:

Program received signal SIGSEGV, Segmentation fault.
0xff032150 in strlen () from /lib/libc.so.1
(gdb) bt
#0  0xff032150 in strlen () from /lib/libc.so.1
#1  0xff09d704 in _ndoprnt () from /lib/libc.so.1
#2  0xff09fbe0 in vfprintf () from /lib/libc.so.1
#3  0x2d190 in ido2db_log_debug_info (level=1, verbosity=2, fmt=0x32bf8 
"ido2db_handle_client_input(instance_name=%s) start\n")    at logging.c:99
#4  0x17070 in ido2db_handle_client_input (idi=0xffbff760, buf=0x57340 "") at 
ido2db.c:1512
#5  0x16fc8 in ido2db_check_for_client_input (idi=0xffbff760) at ido2db.c:1476
#6  0x16dc4 in ido2db_handle_client_connection (sd=10) at ido2db.c:1354
#7  0x16c1c in ido2db_wait_for_connections () at ido2db.c:1156
#8  0x15194 in main (argc=0, argv=0xffbffb44) at ido2db.c:303
(gdb) x/32 0xffbff760
0xffbff760:     0x00000000      0x00000000      0x00000000      0x00000000
0xffbff770:     0x00000000      0x00000000      0x00000000      0x00000000
0xffbff780:     0x00000000      0x00000000      0x00000000      0x00000000
0xffbff790:     0x00000000      0x00000000      0x00000000      0x00000000
0xffbff7a0:     0x00000000      0x00000000      0x00000000      0x00000000
0xffbff7b0:     0x00000000      0x00000000      0x00000000      0x00000000
0xffbff7c0:     0x00000000      0x00000000      0x00000000      0x00000000
0xffbff7d0:     0x00000000      0x00000000      0x00000000      0x00000000
(gdb)

    My reading of the above is that the idi structure should be
present at 0xffbff760 but the contents therein are all zero,
including several char pointers including the "instance_name"
which is making the routines in libc crash (and rightly so).

    The contents of ido2db.debug:

[1326650944.218143] [001.2] [pid=7543] [tid=1] ido2db_open_debug_log() end
[1326650944.218962] [001.2] [pid=7543] [tid=1] ido2db_wait_for_connections() 
start
[1326650963.878674] [001.2] [pid=7543] [tid=1] 
ido2db_handle_client_connection() start
[1326650963.879355] [001.2] [pid=7543] [tid=1] ido2db_open_debug_log() end
[1326650963.883086] [001.2] [pid=7543] [tid=1] ido2db_idi_init() start
[1326650963.883231] [001.2] [pid=7543] [tid=1] ido2db_idi_init() end
[1326650963.883386] [001.2] [pid=7543] [tid=1] ido2db_db_init() start
[1326650963.884441] [001.2] [pid=7543] [tid=1] ido2db_db_init() end
[1326650963.884551] [001.2] [pid=7543] [tid=1] ido2db_db_connect() start
[1326650963.906420] [001.2] [pid=7543] [tid=1] ido2db_db_connect(0) end
[1326650963.906701] [001.2] [pid=7543] [tid=1] ido2db_check_for_client_input() 
dbuf.size=423

    Cheers!

+------------------------------------------------+---------------------+
| Carl Richard Friend (UNIX Sysadmin)            | West Boylston       |
| Minicomputer Collector / Enthusiast            | Massachusetts, USA  |
| mailto:crfri...@rcn.com                        +---------------------+
| http://users.rcn.com/crfriend/museum           | ICBM: 42:22N 71:47W |
+------------------------------------------------+---------------------+

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to