/check_http: malloc(): memory corruption: 0x00000000010b0120

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

/check_http: malloc(): memory corruption: 0x00000000010b0120

Postby op-team » Thu Jun 18, 2020 3:20 am

Hi,

I have this error when running the plugin check_http v2.2.1

[root@nagios-01: /]# /usr/local/nagios/libexec/check_http -H xx.xx.xx.xx -t 30 -f ok -u /login.html --ssl -p 443
*** glibc detected *** /usr/local/nagios/libexec/check_http: malloc(): memory corruption: 0x0000000000a14120 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x75e5e)[0x7fed23756e5e]
/lib64/libc.so.6(+0x7a41a)[0x7fed2375b41a]
/lib64/libc.so.6(__libc_malloc+0x5c)[0x7fed2375bb1c]
/lib64/libc.so.6(vasprintf+0x39)[0x7fed23750239]
/usr/local/nagios/libexec/check_http[0x407b89]
/usr/local/nagios/libexec/check_http[0x407c46]
/usr/local/nagios/libexec/check_http[0x4063a3]
/usr/local/nagios/libexec/check_http[0x4078e0]
/lib64/libc.so.6(__libc_start_main+0x100)[0x7fed236ffd20]
/usr/local/nagios/libexec/check_http[0x402bd9]
======= Memory map: ========
00400000-00417000 r-xp 00000000 fd:00 649549 /usr/local/nagios/libexec/check_http
00616000-00622000 rw-p 00016000 fd:00 649549 /usr/local/nagios/libexec/check_http
00622000-00626000 rw-p 00000000 00:00 0
009dc000-00a1e000 rw-p 00000000 00:00 0 [heap]
7fed18000000-7fed18021000 rw-p 00000000 00:00 0
7fed18021000-7fed1c000000 ---p 00000000 00:00 0
7fed1c498000-7fed1c4ae000 r-xp 00000000 fd:00 296149 /lib64/libgcc_s-4.4.7-20120601.so.1
7fed1c4ae000-7fed1c6ad000 ---p 00016000 fd:00 296149 /lib64/libgcc_s-4.4.7-20120601.so.1
7fed1c6ad000-7fed1c6ae000 rw-p 00015000 fd:00 296149 /lib64/libgcc_s-4.4.7-20120601.so.1
7fed1c6ae000-7fed22543000 r--p 00000000 fd:00 304618 /usr/lib/locale/locale-archive
7fed22543000-7fed22560000 r-xp 00000000 fd:00 271286 /lib64/libselinux.so.1
7fed22560000-7fed2275f000 ---p 0001d000 fd:00 271286 /lib64/libselinux.so.1
7fed2275f000-7fed22760000 r--p 0001c000 fd:00 271286 /lib64/libselinux.so.1
7fed22760000-7fed22761000 rw-p 0001d000 fd:00 271286 /lib64/libselinux.so.1
7fed22761000-7fed22762000 rw-p 00000000 00:00 0
7fed22762000-7fed22764000 r-xp 00000000 fd:00 264453 /lib64/libkeyutils.so.1.3
7fed22764000-7fed22963000 ---p 00002000 fd:00 264453 /lib64/libkeyutils.so.1.3
7fed22963000-7fed22964000 r--p 00001000 fd:00 264453 /lib64/libkeyutils.so.1.3
7fed22964000-7fed22965000 rw-p 00002000 fd:00 264453 /lib64/libkeyutils.so.1.3
7fed22965000-7fed2296f000 r-xp 00000000 fd:00 271290 /lib64/libkrb5support.so.0.1
7fed2296f000-7fed22b6e000 ---p 0000a000 fd:00 271290 /lib64/libkrb5support.so.0.1
7fed22b6e000-7fed22b6f000 r--p 00009000 fd:00 271290 /lib64/libkrb5support.so.0.1
7fed22b6f000-7fed22b70000 rw-p 0000a000 fd:00 271290 /lib64/libkrb5support.so.0.1
7fed22b70000-7fed22b85000 r-xp 00000000 fd:00 262799 /lib64/libz.so.1.2.3
7fed22b85000-7fed22d84000 ---p 00015000 fd:00 262799 /lib64/libz.so.1.2.3
7fed22d84000-7fed22d85000 r--p 00014000 fd:00 262799 /lib64/libz.so.1.2.3
7fed22d85000-7fed22d86000 rw-p 00015000 fd:00 262799 /lib64/libz.so.1.2.3
7fed22d86000-7fed22daf000 r-xp 00000000 fd:00 264457 /lib64/libk5crypto.so.3.1
7fed22daf000-7fed22faf000 ---p 00029000 fd:00 264457 /lib64/libk5crypto.so.3.1
7fed22faf000-7fed22fb0000 r--p 00029000 fd:00 264457 /lib64/libk5crypto.so.3.1
7fed22fb0000-7fed22fb1000 rw-p 0002a000 fd:00 264457 /lib64/libk5crypto.so.3.1
7fed22fb1000-7fed22fb2000 rw-p 00000000 00:00 0
7fed22fb2000-7fed22fb5000 r-xp 00000000 fd:00 315743 /lib64/libcom_err.so.2.1
7fed22fb5000-7fed231b4000 ---p 00003000 fd:00 315743 /lib64/libcom_err.so.2.1
7fed231b4000-7fed231b5000 r--p 00002000 fd:00 315743 /lib64/libcom_err.so.2.1
7fed231b5000-7fed231b6000 rw-p 00003000 fd:00 315743 /lib64/libcom_err.so.2.1
7fed231b6000-7fed23292000 r-xp 00000000 fd:00 271289 /lib64/libkrb5.so.3.3
7fed23292000-7fed23491000 ---p 000dc000 fd:00 271289 /lib64/libkrb5.so.3.3
7fed23491000-7fed2349b000 r--p 000db000 fd:00 271289 /lib64/libkrb5.so.3.3
7fed2349b000-7fed2349d000 rw-p 000e5000 fd:00 271289 /lib64/libkrb5.so.3.3
7fed2349d000-7fed234de000 r-xp 00000000 fd:00 262637 /lib64/libgssapi_krb5.so.2.2
7fed234de000-7fed236de000 ---p 00041000 fd:00 262637 /lib64/libgssapi_krb5.so.2.2
7fed236de000-7fed236df000 r--p 00041000 fd:00 262637 /lib64/libgssapi_krb5.so.2.2
7fed236df000-7fed236e1000 rw-p 00042000 fd:00 262637 /lib64/libgssapi_krb5.so.2.2
7fed236e1000-7fed2386c000 r-xp 00000000 fd:00 262202 /lib64/libc-2.12.so
7fed2386c000-7fed23a6b000 ---p 0018b000 fd:00 262202 /lib64/libc-2.12.so
7fed23a6b000-7fed23a6f000 r--p 0018a000 fd:00 262202 /lib64/libc-2.12.so
7fed23a6f000-7fed23a71000 rw-p 0018e000 fd:00 262202 /lib64/libc-2.12.so
7fed23a71000-7fed23a75000 rw-p 00000000 00:00 0
7fed23a75000-7fed23a77000 r-xp 00000000 fd:00 298436 /lib64/libdl-2.12.so
7fed23a77000-7fed23c77000 ---p 00002000 fd:00 298436 /lib64/libdl-2.12.so
7fed23c77000-7fed23c78000 r--p 00002000 fd:00 298436 /lib64/libdl-2.12.so
7fed23c78000-7fed23c79000 rw-p 00003000 fd:00 298436 /lib64/libdl-2.12.so
7fed23c79000-7fed23c90000 r-xp 00000000 fd:00 262226 /lib64/libpthread-2.12.so
7fed23c90000-7fed23e90000 ---p 00017000 fd:00 262226 /lib64/libpthread-2.12.so
7fed23e90000-7fed23e91000 r--p 00017000 fd:00 262226 /lib64/libpthread-2.12.so
7fed23e91000-7fed23e92000 rw-p 00018000 fd:00 262226 /lib64/libpthread-2.12.so
7fed23e92000-7fed23e96000 rw-p 00000000 00:00 0
7fed23e96000-7fed24050000 r-xp 00000000 fd:00 264416 /usr/lib64/libcrypto.so.1.0.1e
7fed24050000-7fed24250000 ---p 001ba000 fd:00 264416 /usr/lib64/libcrypto.so.1.0.1e
7fed24250000-7fed2426b000 r--p 001ba000 fd:00 264416 /usr/lib64/libcrypto.so.1.0.1e
7fed2426b000-7fed24277000 rw-p 001d5000 fd:00 264416 /usr/lib64/libcrypto.so.1.0.1e
7fed24277000-7fed2427b000 rw-p 00000000 00:00 0 Aborted

Any idea about a solution? Thanks
op-team
 
Posts: 28
Joined: Fri Jun 02, 2017 6:19 am

Re: /check_http: malloc(): memory corruption: 0x00000000010b

Postby cdienger » Fri Jun 19, 2020 3:37 pm

Possibly something with the secure option. Did you compile with ssl support? Does a check_http command work if you test with a http (not https) site?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 4395
Joined: Tue Feb 07, 2017 11:26 am

Re: /check_http: malloc(): memory corruption: 0x00000000010b

Postby op-team » Fri Jun 26, 2020 2:01 am

Hi,

The issue disappeared when running the recent version of the plugin: check_http v2.3.3
B.Regards
op-team
 
Posts: 28
Joined: Fri Jun 02, 2017 6:19 am

Re: /check_http: malloc(): memory corruption: 0x00000000010b

Postby scottwilkerson » Mon Jul 06, 2020 3:13 pm

op-team wrote:Hi,

The issue disappeared when running the recent version of the plugin: check_http v2.3.3
B.Regards

Great! Glad to hear it is resolved!

Locking thread
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 18485
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Community Support

Who is online

Users browsing this forum: Google [Bot], maxsec, tvoll and 13 guests