Menu

#2546 log: debug assertion failed in log agent during scale-in

5.17.11
fixed
nobody
None
defect
log
lib
major
False
2017-10-30
2017-08-08
No

During scaling in, LOG application got coredump due to assertion failed in log agent:

000000000000320e <LogClient::RestoreRefCounter(RefCounterDegree, bool)+0x18e="">:
_ZN9LogClient17RestoreRefCounterE16RefCounterDegreeb():
/src/log/agent/lga_client.cc:139 (discriminator 1)
320e: 48 8d 0d 8b a7 00 00 lea 0xa78b(%rip),%rcx # d9a0 <LogClient::RestoreRefCounter(RefCounterDegree, bool)::__PRETTY_FUNCTION__="">

Above disassembly points to this code line assert(ref_counter_ >= -1);

void LogClient::RestoreRefCounter(RefCounterDegree value, bool updated) {
  TRACE_ENTER();
  if (updated == false) return;
  ScopeLock scopeLock(ref_counter_mutex_);
  ref_counter_ -= value;
  TRACE("%s: value = %d", __func__, ref_counter_);
  // Don't expect the @ref_counter_ is less than (-1)
  assert(ref_counter_ >= -1);
}

Related

Wiki: ChangeLog-5.17.11

Discussion

  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-08-08
    • status: unassigned --> accepted
    • assigned_to: Vu Minh Nguyen
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-08-08
    • status: accepted --> review
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-08-09
    • status: review --> fixed
    • assigned_to: Vu Minh Nguyen --> nobody
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-08-09

    [Develop]
    commit a9a00db317978e4751213a2044a9dd99f6e548e8
    Author: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
    Date: Wed Aug 9 10:17:31 2017 +0700

    log: fix referring to uninitialized variable caused assertion failed [#2546]
    

    [Release]
    commit 44b0496ae3dea1d24908426ec6f2db97481e2859
    Author: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
    Date: Wed Aug 9 10:17:31 2017 +0700

    log: fix referring to uninitialized variable caused assertion failed [#2546]
    
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-08-29
    • status: fixed --> accepted
    • assigned_to: Vu Minh Nguyen
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-08-29

    Still encounter the coredump after including this fix. So, re-open the ticket.

     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-10-04
    • status: accepted --> not-reproducible
    • assigned_to: Vu Minh Nguyen --> nobody
    • Milestone: 5.17.10 --> never
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-10-04
    • status: not-reproducible --> fixed
    • Milestone: never --> 5.17.10
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-10-04

    Will re-open the ticket if encounter this fault again. Now consider it as fixed.

     

Log in to post a comment.