[Pkg-nagios-devel] Bug#866000: icinga2: AttachDebugger=true does not find gdb

Ferenc Wágner wferi at debian.org
Mon Jun 26 13:08:29 UTC 2017


Package: icinga2
Version: 2.6.0-2
Severity: normal

Dear Maintainer,

After installing icinga2 and gdb, I get this:

$ /usr/sbin/icinga2 daemon -D AttachDebugger=true -D RunAsUser=wferi -D RunAsGroup=wferi
[2017-06-26 14:51:46 +0200] information/cli: Icinga application loader (version: r2.6.0-1)
[2017-06-26 14:51:46 +0200] information/cli: Loading configuration file(s).
Could not create directory '/var/log/icinga2/crash': Error 13, Permission denied
Failed to launch GDB: No such file or directory
Aborted

Prefixing the above command with "strace -f -eexecve" reveals that
Application::AttachDebugger() in lib/base/application.cpp tries to execute
some random rubbish:

[pid 29594] execve("/usr/local/bin/\3", ["\3", "\3", "\3", "H\213\214$\230", "\f\355-t@\177", "\207(\255\373", "", "1\322\205\300\17\225\302\367\332\367\3", "8qO&\377\177", "\200\t\333t@\177", "\250\t\333t@\177", "\203\370\377t\25H\203\3048H\211\330[]A\\A]A^A_\303\17\37", "8qO&\377\177", 0xaaa3b1b80ea36a00], [/* 21 vars */]) = -1 ENOENT (No such file or directory)

libbase.so.2.6.0 does not even contain the "gdb" string.  Code like

  const char *uargv[] = {
          "gdb",
          "-p",
          my_pid_str,
          NULL
  };
  argv = const_cast<char **>(uargv);

looks unnecessary roundabout, but I'm no C++ expert.

Please find and fix what's broken. :)
-- 
Thanks,
Feri.



More information about the Pkg-nagios-devel mailing list