monit 5.12 segfault on EL 7

Issue #155 resolved
Nathan Williams
created an issue

trying to build monit 5.12 from source on EL7, the build completes, but hitting a segfault trying to launch the daemon. does not happen with 5.11, so seems to be something in the latest release.

not hitting a segfault doing something simple like checking the version, so something with the config maybe?

attaching strace of segfault and config dump. let me know if i can help collect any other info!

Comments (9)

  1. Nathan Williams reporter

    core collected from:

    [root@monit-ng-source-centos-70 ~]# /usr/local/bin/monit -vI Adding host allow 'localhost' Skipping redundant host 'localhost' Skipping redundant host 'localhost' Skipping redundant host 'localhost' Skipping redundant host 'localhost' Skipping redundant host 'localhost' Cannot translate 'monit-ng-source-centos-70.vagrantup.com' to FQDN name -- Name or service not known Segmentation fault (core dumped)

  2. Michael Bakker

    Guten Tag,

    vielen Dank für Ihre Nachricht. Ich bin vom 26.02 bis einschließlich zum 17.03 im Urlaub und werde mich umgehend nach meiner Rückkehr bei Ihnen melden.

    Mit freundlichen Grüßen Michael Bakker

    -- Michael Bakker Systemadministrator Webhosting

    Host Europe GmbH is a company of HEG

    E-Mail: michael.bakker@heg.com Telefon: +49 2203 1045-7346

  3. Nathan Williams reporter

    regenerated a new coredump since the old one got destroyed along with the test instance, attaching here for reference:

    [root@monit-ng-source-centos-70 ~]# ulimit -c unlimited
    [root@monit-ng-source-centos-70 ~]# /usr/local/bin/monit -vI
    Adding host allow 'localhost'
    Skipping redundant host 'localhost'
    Skipping redundant host 'localhost'
    Skipping redundant host 'localhost'
    Skipping redundant host 'localhost'
    Skipping redundant host 'localhost'
    Cannot translate 'monit-ng-source-centos-70.vagrantup.com' to FQDN name -- Name or service not known
    Segmentation fault (core dumped)
    [root@monit-ng-source-centos-70 ~]# ls
    anaconda-ks.cfg  core.29748
    [root@monit-ng-source-centos-70 ~]# gdb /usr/local/bin/monit core.29748 
    GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/local/bin/monit...done.
    [New LWP 29748]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    Core was generated by `/usr/local/bin/monit -vI'.
    Program terminated with signal 11, Segmentation fault.
    #0  0x00007f701beca213 in freeaddrinfo () from /lib64/libc.so.6
    Missing separate debuginfos, use: debuginfo-install audit-libs-2.3.3-4.el7.x86_64 glibc-2.17-55.el7_0.5.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.11.3-49.el7.x86_64 libcom_err-1.42.9-4.el7.x86_64 libselinux-2.2.2-6.el7.x86_64 nss-softokn-freebl-3.15.4-2.el7.x86_64 openssl-libs-1.0.1e-34.el7_0.7.x86_64 pam-1.1.8-9.el7.x86_64 pcre-8.32-12.el7.x86_64 xz-libs-5.1.2-8alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64
    (gdb) thr apply all bt
    
    Thread 1 (Thread 0x7f701d49f840 (LWP 29748)):
    #0  0x00007f701beca213 in freeaddrinfo () from /lib64/libc.so.6
    #1  0x0000000000427acf in Util_getfqdnhostname (buf=buf@entry=0x7fff2490f400 "monit-ng-source-centos-70.vagrantup.com", 
        len=len@entry=256) at src/util.c:1941
    #2  0x00000000004135af in postparse () at src/p.y:2366
    #3  parse (controlfile=0x10dd2a0 "/etc/monitrc") at src/p.y:2253
    #4  0x0000000000415a65 in do_init () at src/monit.c:270
    #5  0x000000000040be85 in main (argc=2, argv=0x7fff2490f678) at src/monit.c:169
    
  4. Nathan Williams reporter

    ugh. so on a hunch, i just fully upgraded the test instance before compiling, and the issue's no longer occurring; sorry for the hassle, feel free to close this out.

  5. Log in to comment