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 #9779] Trying to set a field for a non-object instance fails #3199

Closed
icinga-migration opened this issue Jul 30, 2015 · 2 comments
Labels
bug
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Jul 30, 2015

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

Created by gbeutner on 2015-07-30 06:26:21 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-07-30 06:30:06 +00:00)
Target Version: 2.3.9
Last Update: 2015-08-24 11:27:04 +00:00 (in Redmine)

Icinga Version: 2.3.8
Backport?: Already backported
Include in Changelog: 1

(lldb) r
Process 85735 launched: './lib/icinga2/sbin/icinga2' (x86_64)
Icinga (version: v2.3.0-393-gf74148f)
<1> => "".x = {}
Assertion failed: (px != 0), function operator->, file /opt/local/include/boost/smart_ptr/intrusive_ptr.hpp, line 174.
Process 85735 stopped
* thread #1: tid = 0x5626f4, 0x00007fff844cc286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff844cc286 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
->  0x7fff844cc286 <+10>: jae    0x7fff844cc290            ; <+20>
    0x7fff844cc288 <+12>: movq   %rax, %rdi
    0x7fff844cc28b <+15>: jmp    0x7fff844c7c53            ; cerror_nocancel
    0x7fff844cc290 <+20>: retq   
(lldb) up
frame #1: 0x00007fff8b13d42f libsystem_pthread.dylib`pthread_kill + 90
libsystem_pthread.dylib`pthread_kill:
    0x7fff8b13d42f <+90>:  cmpl   $-0x1, %eax
    0x7fff8b13d432 <+93>:  jne    0x7fff8b13d43b            ; <+102>
    0x7fff8b13d434 <+95>:  callq  0x7fff8b13f10e            ; symbol stub for: __error
    0x7fff8b13d439 <+100>: movl   (%rax), %eax
(lldb) bt
* thread #1: tid = 0x5626f4, 0x00007fff844cc286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff844cc286 libsystem_kernel.dylib`__pthread_kill + 10
  * frame #1: 0x00007fff8b13d42f libsystem_pthread.dylib`pthread_kill + 90
    frame #2: 0x00007fff8596fb53 libsystem_c.dylib`abort + 129
    frame #3: 0x00007fff85937c39 libsystem_c.dylib`__assert_rtn + 321
    frame #4: 0x00000001009fd823 libconfig.dylib`boost::intrusive_ptr::operator->(this=0x00007fff5fbf9dc8) const + 83 at intrusive_ptr.hpp:174
    frame #5: 0x00000001009ee714 libconfig.dylib`icinga::VMOps::SetField(context=0x00007fff5fbf9dc8, field=0x00007fff5fbfa078, value=0x00007fff5fbfa150, debugInfo=0x000000010331ad38) + 420 at vmops.hpp:307
    frame #6: 0x00000001009e9193 libconfig.dylib`icinga::SetExpression::DoEvaluate(this=0x000000010331ad30, frame=0x00000001003dfe90, dhint=0x0000000000000000) const + 3523 at expression.cpp:547
    frame #7: 0x00000001009e1a2e libconfig.dylib`icinga::Expression::Evaluate(this=0x000000010331ad30, frame=0x00000001003dfe90, dhint=0x0000000000000000) const + 78 at expression.cpp:48
    frame #8: 0x00000001009e7e7d libconfig.dylib`icinga::DictExpression::DoEvaluate(this=0x000000010331abf0, frame=0x00000001003dfe90, dhint=0x0000000000000000) const + 973 at expression.cpp:458
    frame #9: 0x00000001009e1a2e libconfig.dylib`icinga::Expression::Evaluate(this=0x000000010331abf0, frame=0x00000001003dfe90, dhint=0x0000000000000000) const + 78 at expression.cpp:48
    frame #10: 0x000000010033221e libcli.dylib`icinga::ConsoleCommand::Run(this=0x0000000103202810, vm=0x00007fff5fbfeb40, ap=0x00007fff5fbfcf00) const + 5598 at consolecommand.cpp:270
    frame #11: 0x000000010000be1a icinga2`Main() + 26266 at icinga.cpp:486
    frame #12: 0x000000010000c23b icinga2`main(argc=2, argv=0x00007fff5fbffa98) + 267 at icinga.cpp:705
    frame #13: 0x00007fff84d435c9 libdyld.dylib`start + 1
    frame #14: 0x00007fff84d435c9 libdyld.dylib`start + 1
(lldb) 

Changesets

2015-07-30 06:28:07 +00:00 by (unknown) 1634dbc

Fix crash when trying to set field on a value that is not an object

fixes #9779

2015-08-24 11:26:35 +00:00 by (unknown) e9c2214

Fix crash when trying to set field on a value that is not an object

fixes #9779
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Jul 30, 2015

Updated by Anonymous on 2015-07-30 06:30:06 +00:00

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

Applied in changeset 1634dbc.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Aug 24, 2015

Updated by gbeutner on 2015-08-24 11:27:04 +00:00

  • Target Version changed from 2.4.0 to 2.3.9
  • Backport? changed from TBD to Yes
@icinga-migration icinga-migration added this to the 2.3.9 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.