eventstat can segfault when reaping stale timer stats

Bug #1496900 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eventstat
Fix Released
High
Colin Ian King

Bug Description

user has seen the following segfault:

eventstat[10865]: segfault at af7 ip 00007f9d821ff872 sp 00007ffdb479a870 error 4 in libc-2.21.so[7f9d8217b000+1c0000]

stale timer stats are periodically reaped to keep memory footprint low, however, there are two issues with this:

1. The hash stat removal was double referencing the timer stat linked list next pointer instead of the hash linked list next pointer
2. More than one timer info can reference a timerstat, so we should only remove the stale timer state when no more timer infos reference it (e.g. we need to add reference counting).

Related branches

Revision history for this message
Colin Ian King (colin-king) wrote :
Changed in eventstat:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Colin Ian King (colin-king)
summary: - eventstat can segault when reaping stale timer stats
+ eventstat can segfault when reaping stale timer stats
Changed in eventstat:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.