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 #9621] Assertion failed in icinga::ScriptUtils::Intersection #3147

Closed
icinga-migration opened this issue Jul 15, 2015 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by gbeutner on 2015-07-15 06:19:44 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-07-15 06:20:39 +00:00)
Target Version: 2.3.7
Last Update: 2015-07-15 06:20:49 +00:00 (in Redmine)

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

[2015-07-15 08:09:08 +0200] information/ApiListener: My API identity: acheron.beutner.name
../lib/base/array.hpp:67: assertion failed: OwnsLock()
Process 1039 stopped
* thread #8: tid = 0x58ec, 0x00007fff844cc286 libsystem_kernel.dylib`__pthread_kill + 10, 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) 
frame #2: 0x00007fff8596fb53 libsystem_c.dylib`abort + 129
libsystem_c.dylib`abort:
    0x7fff8596fb53 <+129>: movl   $0x2710, %edi
    0x7fff8596fb58 <+134>: callq  0x7fff85996e2a            ; symbol stub for: usleep$NOCANCEL
    0x7fff8596fb5d <+139>: callq  0x7fff8596fb62            ; __abort

libsystem_c.dylib`__abort:
    0x7fff8596fb62 <+0>:   pushq  %rbp
(lldb) 
frame #3: 0x0000000100ad2551 libbase.dylib`icinga_assert_fail(expr=0x0000000100cdbbfc, file=0x0000000100cdbed9, line=67) + 65 at debug.hpp:55
   52   inline int icinga_assert_fail(const char *expr, const char *file, int line)
   53   {
   54       fprintf(stderr, "%s:%d: assertion failed: %s\n", file, line, expr);
-> 55       std::abort();
   56   
   57   #if !defined(__GNUC__) && !defined(_MSC_VER)
   58       return 0;
(lldb) 
frame #4: 0x0000000100b1d5b9 libbase.dylib`icinga::Array::Begin(this=0x00000001034543b0) + 73 at array.hpp:67
   64        */
   65       inline Iterator Begin(void)
   66       {
-> 67           ASSERT(OwnsLock());
   68   
   69           return m_Data.begin();
   70       }
(lldb) 
frame #5: 0x0000000100bec433 libbase.dylib`icinga::ScriptUtils::Intersection(arguments=0x0000000106c9f530) + 595 at scriptutils.cpp:141
   138      Array::Ptr arr1 = arg1->ShallowClone();
   139  
   140      for (std::vector::size_type i = 1; i < arguments.size(); i++) {
-> 141          std::sort(arr1->Begin(), arr1->End());
   142  
   143          Array::Ptr arg2 = arguments[i];
   144  
(lldb) p arr1
(icinga::Array::Ptr) $0 = {
  px = 0x00000001034543b0
}

Changesets

2015-07-15 06:20:16 +00:00 by (unknown) d98f9a3

Fix failed assertion in ScriptUtils::Intersection

fixes #9621

2015-07-15 06:20:30 +00:00 by (unknown) 1638c44

Fix failed assertion in ScriptUtils::Intersection

fixes #9621
@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-07-15 06:20:39 +00:00

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

Applied in changeset d98f9a3.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-07-15 06:20:49 +00:00

  • Target Version set to 2.3.7
  • Backport? changed from TBD to Yes

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

No branches or pull requests

1 participant