pt-query-digest --processlist may crash

Bug #821703 reported by Daniel Nichter
20
This bug affects 4 people
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://code.google.com/p/maatkit/issues/detail?id=1289

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_ACTIVE_CXN

Related branches

Revision history for this message
Steve Caldwell (scaldwell) wrote :

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.

Revision history for this message
Daniel Nichter (daniel-nichter) wrote :
Changed in percona-toolkit:
status: New → Confirmed
importance: Low → Undecided
Revision history for this message
Adam (akenney-k) wrote :

I wanted to add an upvote for this one. I'm seeing the same error when I try to use pt-query-digest (from Percona Toolkit 2.0) on a debian lenny machine. Thanks!

Changed in percona-toolkit:
milestone: none → 2.1.3
Changed in percona-toolkit:
importance: Undecided → Medium
Brian Fraser (fraserbn)
Changed in percona-toolkit:
assignee: nobody → Brian Fraser (fraserbn)
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: Confirmed → Fix Committed
Changed in percona-toolkit:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-409

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.