pt-query-digest --processlist may crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
Medium
|
Brian Fraser |
Bug Description
Imported from http://
Quoting original:
./mk-query-digest --processlist h=localhost --print --no-report >> slow.log
Pipeline process 2 (Processlist) caused an error: Use of uninitialized value in anonymous hash ({}) at ./mk-query-digest line 2259.
2255 else {
2256 MKDEBUG && _d('New cxn', $curr->[ID]);
2257 if ( $curr->[INFO] && defined $curr->[TIME] ) {
2258 MKDEBUG && _d('Saving query of new cxn, state', $curr->[STATE]);
2259 push @new_cxn, [
2260 @$curr, # proc info
2261 int($query_start), # START
2262 $etime, # ETIME
2263 $time, # FSEEN
2264 { $curr->[STATE] => 0 }, # PROFILE
2265 ];
2266 }
2267 }
2268 } # CURRENTLY_
Related branches
- Daniel Nichter: Approve
-
Diff: 104 lines (+34/-6)4 files modifiedbin/pt-kill (+2/-2)
bin/pt-query-digest (+2/-2)
lib/Processlist.pm (+2/-2)
t/lib/Processlist.t (+28/-0)
Changed in percona-toolkit: | |
milestone: | none → 2.1.3 |
Changed in percona-toolkit: | |
importance: | Undecided → Medium |
Changed in percona-toolkit: | |
assignee: | nobody → Brian Fraser (fraserbn) |
Changed in percona-toolkit: | |
status: | Confirmed → Fix Committed |
Changed in percona-toolkit: | |
status: | Fix Committed → Fix Released |
Via process of elimination, I believe this bug was introduced in release 7332. I had to use an earlier version in order to get mk-query-digest working.