Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #8136] Icinga crashes when config file name is invalid #2467

Closed
icinga-migration opened this issue Dec 20, 2014 · 3 comments
Closed
Labels
area/cli Command line helpers bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8136

Created by gbeutner on 2014-12-20 10:10:38 00:00

Assignee: gbeutner
Status: Resolved (closed on 2014-12-20 14:35:02 00:00)
Target Version: 2.3.0
Last Update: 2015-02-13 07:04:58 00:00 (in Redmine)

Icinga Version: 2.2.0
Backport?: No

acheron:icinga2 gunnar$ icinga2 daemon -C -c sdfsdf
information/cli: Icinga application loader (version: v2.2.0-245-ge03e143; debug)
information/cli: Loading application type: icinga/IcingaApplication
information/Utility: Loading library 'libicinga.dylib'
Caught unhandled exception.
Current time: 2014-12-20 11:09:56  0100

Application information:
  Application version: v2.2.0-245-ge03e143
  Installation root: /Users/gunnar/i2
  Sysconf directory: /Users/gunnar/i2/etc
  Run directory: /Users/gunnar/i2/var/run
  Local state directory: /Users/gunnar/i2/var
  Package data directory: /Users/gunnar/i2/share/icinga2
  State path: /Users/gunnar/i2/var/lib/icinga2/icinga2.state
  Objects path: /Users/gunnar/i2/var/cache/icinga2/icinga2.debug
  Vars path: /Users/gunnar/i2/var/cache/icinga2/icinga2.vars
  PID path: /Users/gunnar/i2/var/run/icinga2/icinga2.pid
  Application type: icinga/IcingaApplication

../lib/config/configcompiler.cpp(228): Throw in function static icinga::Expression *icinga::ConfigCompiler::CompileFile(const icinga::String &, const icinga::String &)
Dynamic exception type: N5boost16exception_detail10clone_implIN6icinga11posix_errorEEE
std::exception::what: std::exception
[PN5boost18errinfo_file_name_E] = sdfsdf
2, "No such file or directory"[PN5boost21errinfo_api_function_E] = std::ifstream::open


        (0) 2   libbase.dylib                       0x0000000106e49c5e __cxa_throw   222
        (1) 3   libbase.dylib                       0x0000000106e49b7a _ZN6icinga24RethrowUncaughtExceptionEv   74
        (2) 4   libbase.dylib                       0x0000000106db8a0f _ZN6icinga11Application16ExceptionHandlerEv   335
        (3) 5   libc  abi.dylib                     0x00007fff88a460a1 _ZSt11__terminatePFvvE   8
        (4) 6   libc  abi.dylib                     0x00007fff88a45b30 _ZN10__cxxabiv1L22exception_cleanup_funcE19_Unwind_Reason_CodeP17_Unwind_Exception   0
        (5) 7   libbase.dylib                       0x0000000106e49ca6 __cxa_throw   294
        (6) 8   libconfig.dylib                     0x00000001073adbe8 _ZN5boost15throw_exceptionIN6icinga11posix_errorEEEvRKT_   120
        (7) 9   libconfig.dylib                     0x00000001073ad8f3 _ZN5boost16exception_detail16throw_exception_IN6icinga11posix_errorEEEvRKT_PKcS8_i   179
        (8) 10  libconfig.dylib                     0x00000001073c7eeb _ZN6icinga14ConfigCompiler11CompileFileERKNS_6StringES3_   1067
        (9) 11  libcli.dylib                        0x000000010778d4dc _ZL15LoadConfigFilesRKN5boost15program_options13variables_mapERKN6icinga6StringES7_S7_   1516
        (10) 12  libcli.dylib                        0x000000010778babf _ZNK6icinga13DaemonCommand3RunERKN5boost15program_options13variables_mapERKNSt3__16vectorINS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENSB_ISD_EEEE   2367
        (11) 13  icinga2                             0x0000000106b03666 _Z4Mainv   25414
        (12) 14  icinga2                             0x0000000106b03b5a main   42
        (13) 15  libdyld.dylib                       0x00007fff9019a5c9 start   1



        (0) Compiling configuration file 'sdfsdf'

***
* This would indicate a runtime problem or configuration error. If you believe this is a bug in Icinga 2
* please submit a bug report at https://dev.icinga.org/ and include this stack trace as well as any other
* information that might be useful in order to reproduce this problem.
***
Abort trap: 6
acheron:icinga2 gunnar$

Changesets

2014-12-20 14:29:04 00:00 by (unknown) c433284

Improve error reporting

fixes #8136
refs #6070
@icinga-migration
Copy link
Author

Updated by Anonymous on 2014-12-20 14:35:02 00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset c433284.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-29 12:45:54 00:00

  • Backport? set to No

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-02-09 14:43:29 00:00

  • Assigned to set to gbeutner

@icinga-migration icinga-migration added bug Something isn't working area/cli Command line helpers labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Command line helpers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant