Hi,

I am having problems with ido2db and the icinga-web interface.

The standard (cgi) icinga interface works well. It displays the status
data as it supposed to.

I set up a PostgreSQL db and ido2db, idomod is loaded in icinga.
If I run ido2db as a foreground process I can clearly see the crash.
(see the attached log file)

I cannot tell when exactly, but it will crash sooner or later.
I am running the latest version from git (id: df296ca7622)
(This is Debian lenny.)

With the previous version I was able to see a libdbi assertion fail.
It seems to me that it does not escape the data properly it inputs to
the Postgres database.

The icinga-web interface shows the icinga log (as long as ido2db is
running), but I cannot see actual hosts services, just 0s or nulls
everywhere (and at the same time I see them with icinga cgi, this is
some legacy config from nagios).

Can you help me how to debug/find the problem?

Thanks in advance.

Regards,
  cstamas
-- 
CSILLAG Tamas (cstamas) - http://digitus.itk.ppke.hu/~cstamas

"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
                 -- C.A.R. Hoare

*** glibc detected *** /usr/sbin/ido2db: malloc(): memory corruption: 
0xb7d52008 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7dc4935]
/lib/libc.so.6[0xb7dc6ed2]
/lib/libc.so.6(__libc_malloc+0x96)[0xb7dc8676]
/usr/lib/i686/cmov/libcrypto.so.0.9.8[0xb7bda4ce]
/usr/lib/i686/cmov/libcrypto.so.0.9.8(CRYPTO_malloc+0x7f)[0xb7bdab4f]
/usr/lib/i686/cmov/libcrypto.so.0.9.8(EVP_DigestInit_ex+0x11a)[0xb7c4dada]
/usr/lib/i686/cmov/libcrypto.so.0.9.8(HMAC_Init_ex+0x198)[0xb7bf1dc8]
/usr/lib/i686/cmov/libssl.so.0.9.8(tls1_mac+0xd6)[0xb7d0c0c6]
/usr/lib/i686/cmov/libssl.so.0.9.8[0xb7d067b9]
/usr/lib/i686/cmov/libssl.so.0.9.8[0xb7d0670f]
/usr/lib/i686/cmov/libssl.so.0.9.8(ssl3_write_bytes+0x103)[0xb7d06a83]
/usr/lib/i686/cmov/libssl.so.0.9.8(ssl3_write+0x5a)[0xb7d0380a]
/usr/lib/i686/cmov/libssl.so.0.9.8(SSL_write+0x39)[0xb7d168d9]
/usr/lib/libpq.so.5[0xb7d44dc6]
/usr/lib/libpq.so.5[0xb7d3c92e]
/usr/lib/libpq.so.5[0xb7d35128]
/usr/lib/libpq.so.5(PQfinish+0x15)[0xb7d35295]
/usr/lib/dbd/libdbdpgsql.so(dbd_disconnect+0x24)[0xb7ee5da4]
/usr/lib/libdbi.so.0(dbi_conn_close+0x60)[0xb7edb5e0]
/usr/sbin/ido2db[0x8064a99]
/usr/sbin/ido2db[0x8049f42]
/usr/sbin/ido2db[0x804ca4f]
[0xb7eeb400]
/usr/sbin/ido2db[0x804a106]
/usr/sbin/ido2db[0x80655ad]
/usr/sbin/ido2db[0x8050a66]
/usr/sbin/ido2db[0x8050d59]
/usr/sbin/ido2db[0x80567e8]
/usr/sbin/ido2db[0x804b1cd]
/usr/sbin/ido2db[0x804be73]
/usr/sbin/ido2db[0x804c467]
/usr/sbin/ido2db[0x804c674]
/usr/sbin/ido2db[0x804d170]
/usr/sbin/ido2db[0x804e240]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7d70455]
/usr/sbin/ido2db[0x8049e91]
======= Memory map: ========
08048000-0807a000 r-xp 00000000 fd:01 256559     /usr/sbin/ido2db
0807a000-0807b000 rw-p 00032000 fd:01 256559     /usr/sbin/ido2db
09b8f000-09e3c000 rw-p 09b8f000 00:00 0          [heap]
b6f00000-b6f21000 rw-p b6f00000 00:00 0
b6f21000-b7000000 ---p b6f21000 00:00 0
b701c000-b7028000 r-xp 00000000 fd:00 1049253    /lib/libgcc_s.so.1
b7028000-b7029000 rw-p 0000b000 fd:00 1049253    /lib/libgcc_s.so.1
b7030000-b7094000 rw-p b7030000 00:00 0
b7094000-b7095000 ---p b7094000 00:00 0
b7095000-b7894000 rw-p b7095000 00:00 0
b7894000-b789d000 r-xp 00000000 fd:00 1149176    /lib/libnss_files-2.7.so
b789d000-b789f000 rw-p 00008000 fd:00 1149176    /lib/libnss_files-2.7.so
b789f000-b78a7000 r-xp 00000000 fd:00 1149192    /lib/libnss_nis-2.7.so
b78a7000-b78a9000 rw-p 00007000 fd:00 1149192    /lib/libnss_nis-2.7.so
b78a9000-b78bc000 r-xp 00000000 fd:00 1149175    /lib/libnsl-2.7.so
b78bc000-b78be000 rw-p 00012000 fd:00 1149175    /lib/libnsl-2.7.so
b78be000-b78c0000 rw-p b78be000 00:00 0
b78c0000-b78c7000 r-xp 00000000 fd:00 1149181    /lib/libnss_compat-2.7.so
b78c7000-b78c9000 rw-p 00006000 fd:00 1149181    /lib/libnss_compat-2.7.so
b78c9000-b792f000 r-xp 00000000 fd:01 50899478   /usr/lib/libgcrypt.so.11.4.4
b792f000-b7931000 rw-p 00066000 fd:01 50899478   /usr/lib/libgcrypt.so.11.4.4
b7931000-b7934000 r-xp 00000000 fd:01 50998189   /usr/lib/libgpg-error.so.0.3.0
b7934000-b7935000 rw-p 00002000 fd:01 50998189   /usr/lib/libgpg-error.so.0.3.0
b7935000-b7944000 r-xp 00000000 fd:01 51106825   /usr/lib/libtasn1.so.3.0.15
b7944000-b7945000 rw-p 0000e000 fd:01 51106825   /usr/lib/libtasn1.so.3.0.15
b7945000-b79dc000 r-xp 00000000 fd:01 50713903   /usr/lib/libgnutls.so.26.4.6
b79dc000-b79e2000 rw-p 00097000 fd:01 50713903   /usr/lib/libgnutls.so.26.4.6
b79e2000-b79f8000 r-xp 00000000 fd:01 50338615   /usr/lib/libsasl2.so.2.0.22
b79f8000-b79f9000 rw-p 00015000 fd:01 50338615   /usr/lib/libsasl2.so.2.0.22
b79f9000-b7a06000 r-xp 00000000 fd:01 50856333   /usr/lib/liblber-2.4.so.2.1.0
b7a06000-b7a07000 rw-p 0000c000 fd:01 50856333   /usr/lib/liblber-2.4.so.2.1.0
b7a07000-b7a16000 r-xp 00000000 fd:00 1149180    /lib/libresolv-2.7.so
b7a16000-b7a18000 rw-p 0000e000 fd:00 1149180    /lib/libresolv-2.7.so
b7a18000-b7a1a000 rw-p b7a18000 00:00 0
b7a1a000-b7a1c000 r-xp 00000000 fd:00 1050961    /lib/libkeyutils-1.2.so
b7a1c000-b7a1d000 rw-p 00001000 fd:00 1050961    /lib/libkeyutils-1.2.so
b7a1d000-b7a24000 r-xp 00000000 fd:01 50885988   /usr/lib/libkrb5support.so.0.1
b7a24000-b7a25000 rw-p 00006000 fd:01 50885988   /usr/lib/libkrb5support.so.0.1
b7a25000-b7a48000 r-xp 00000000 fd:01 50885959   /usr/lib/libk5crypto.so.3.1
b7a48000-b7a49000 rw-p 00023000 fd:01 50885959   /usr/lib/libk5crypto.so.3.1
b7a49000-b7a5d000 r-xp 00000000 fd:01 51106837   /usr/lib/libz.so.1.2.3.3
b7a5d000-b7a5e000 rw-p 00013000 fd:01 51106837   /usr/lib/libz.so.1.2.3.3
b7a5e000-b7a9e000 r-xp 00000000 fd:01 50856329   /usr/lib/libldap_r-2.4.so.2.1.0
b7a9e000-b7aa0000 rw-p 0003f000 fd:01 50856329   /usr/lib/libldap_r-2.4.so.2.1.0
b7aa0000-b7aa1000 rw-p b7aa0000 00:00 0
b7aa1000-b7aaa000 r-xp 00000000 fd:00 1149172    /lib/libcrypt-2.7.so
b7aaa000-b7aac000 rw-p 00008000 fd:00 1149172    /lib/libcrypt-2.7.so
b7aac000-b7ad3000 rw-p b7aac000 00:00 0
b7ad3000-b7afc000 r-xp 00000000 fd:01 50713945   /usr/lib/libgssapi_krb5.so.2.2
b7afc000-b7afd000 rw-p 00028000 fd:01 50713945   /usr/lib/libgssapi_krb5.so.2.2
b7afd000-b7aff000 r-xp 00000000 fd:00 1064550    /lib/libcom_err.so.2.1
b7aff000-b7b00000 rw-p 00001000 fd:00 1064550    /lib/libcom_err.so.2.1
b7b00000-b7b92000 r-xp 00000000 fd:01 50885964   /usr/lib/libkrb5.so.3.3
b7b92000-b7b94000 rw-p 00092000 fd:01 50885964   /usr/lib/libkrb5.so.3.3
b7b94000-b7cce000 r-xp 00000000 fd:01 16777957   
/usr/lib/i686/cmov/libcrypto.so.0.9.8
b7cce000-b7ce4000 rw-p 0013a000 fd:01 16777957   
/usr/lib/i686/cmov/libcrypto.so.0.9.8
b7ce4000-b7ce7000 rw-p b7ce4000 00:00 0
b7ce7000-b7d2a000 r-xp 00000000 fd:01 16777958   
/usr/lib/i686/cmov/libssl.so.0.9.8
b7d2a000-b7d2e000 rw-p 00042000 fd:01 16777958   
/usr/lib/i686/cmov/libssl.so.0.9.8
b7d2e000-b7d4c000 r-xp 00000000 fd:01 50338731   /usr/lib/libpq.so.5.1
b7d4c000-b7d4d000 rw-p 0001e000 fd:01 50338731   /usr/lib/libpq.so.5.1
b7d52000-b7d56000 rw-p b7d52000 00:00 0
b7d56000-b7d58000 r-xp 00000000 fd:00 1149186    /lib/libdl-2.7.so
b7d58000-b7d5a000 rw-p 00001000 fd:00 1149186    /lib/libdl-2.7.so
b7d5a000-b7e92000 r-xp 00000000 fd:00 1149184    /lib/libc-2.7.so
b7e92000-b7e93000 r--p 00138000 fd:00 1149184    /lib/libc-2.7.so
b7e93000-b7e95000 rw-p 00139000 fd:00 1149184    /lib/libc-2.7.so
b7e95000-b7e98000 rw-p b7e95000 00:00 0
b7e98000-b7ebc000 r-xp 00000000 fd:00 1149177    /lib/libm-2.7.so
b7ebc000-b7ebe000 rw-p 00023000 fd:00 1149177    /lib/libm-2.7.so
b7ebe000-b7ed2000 r-xp 00000000 fd:00 1149193    /lib/libpthread-2.7.so
b7ed2000-b7ed4000 rw-p 00013000 fd:00 1149193    /lib/libpthread-2.7.so
b7ed4000-b7ed6000 rw-p b7ed4000 00:00 0
b7ed6000-b7ee1000 r-xp 00000000 fd:01 51452781   /usr/lib/libdbi.so.0.0.5
b7ee1000-b7ee2000 rw-p 0000a000 fd:01 51452781   /usr/lib/libdbi.so.0.0.5
b7ee2000-b7ee3000 rw-p b7ee2000 00:00 0
b7ee3000-b7ee9000 r-xp 00000000 fd:01 33924017   /usr/lib/dbd/libdbdpgsql.so
b7ee9000-b7eea000 rw-p 00005000 fd:01 33924017   /usr/lib/dbd/libdbdpgsql.so
b7eea000-b7eeb000 rw-p b7eea000 00:00 0
b7eeb000-b7eec000 r-xp b7eeb000 00:00 0          [vdso]
b7eec000-b7f06000 r-xp 00000000 fd:00 1149183    /lib/ld-2.7.so
b7f06000-b7f08000 rw-p 0001a000 fd:00 1149183    /lib/ld-2.7.so
bfaf2000-bfb07000 rw-p bffeb000 00:00 0          [stack]
root@host:~/icinga-core/module/idoutils/src #
[1]  + abort      /usr/sbin/ido2db -c /etc/icinga/ido2db.cfg -f
/usr/sbin/ido2db -c /etc/icinga/ido2db.cfg -f  27.14s user 6.83s system 0% cpu 
7:57:12.86 total
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to