pt-query-digest crashes if processlist has extra columns

Bug #883098 reported by Usu
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Brian Fraser

Bug Description

# pt-query-digest --processlist localhost,u=username,p=password --print --no-report
Pipeline process 2 (Processlist) caused an error: Can't use string ("1319806283") as a HASH ref while "strict refs" in use at /usr/bin/pt-query-digest line 2289.
Pipeline process 2 (Processlist) caused an error: Can't use string ("1319806283") as a HASH ref while "strict refs" in use at /usr/bin/pt-query-digest line 2289.
[...]

# pt-query-digest --version
pt-query-digest 1.0.1

# mysqld --version
mysqld Ver 5.5.16-55-log for Linux on x86_64 (Percona Server (GPL), Release 22.0)

OS: Ubuntu 10.04.3 LTS

I hope you can look into this.

Thanks,
Andrea

Related branches

Revision history for this message
Baron Schwartz (baron-xaprb) wrote : Re: [Bug 883098] [NEW] pt-query-digest processlist isn't working

If you can reproduce the problem, would you please run the tool with
MKDEBUG=1 and capture the entry in the processlist (or whatever seems
to be the problem) to help us reproduce it?

Revision history for this message
Usu (andreausu) wrote : Re: pt-query-digest processlist isn't working

Hi,

thanks for the quick reply, I pasted here the output: http://pastebin.com/fwWDip8V
And here is the result of a manual run of 'SHOW FULL PROCESSLIST': http://pastebin.com/LsfF5W1k

The error isn't random at all, it occurs every single time I try to run the script.

Thanks again,
Andrea

tags: added: processlist pt-query-digest
Changed in percona-toolkit:
importance: Undecided → Medium
Changed in percona-toolkit:
importance: Medium → Undecided
Changed in percona-toolkit:
status: New → Confirmed
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :
Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

I am nervous about Pastebin containing the information needed for diagnosis.

Revision history for this message
Baron Schwartz (baron-xaprb) wrote :
Revision history for this message
Maciej Dobrzanski (mushu) wrote :

pt-query-digest 2.1.1 is also affected (Gentoo/Perl 5.12.4)

Changed in percona-toolkit:
milestone: none → 2.1.3
Brian Fraser (fraserbn)
Changed in percona-toolkit:
assignee: nobody → Brian Fraser (fraserbn)
Changed in percona-toolkit:
importance: Undecided → Medium
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: Confirmed → In Progress
Revision history for this message
Brian Fraser (fraserbn) wrote :

This was caused by SHOW FULL PROCESSLIST having more than the basic 8 columns. For now, this has been fixed by ignoring those extras; However, in the future we may support some flavors, like Percona Server's TIME_MS, ROWS_EXAMINED, ROWS_SENT, and ROWS_READ.

Changed in percona-toolkit:
status: In Progress → Fix Committed
summary: - pt-query-digest processlist isn't working
+ pt-query-digest processlist crashes if processlist has extra columns
summary: - pt-query-digest processlist crashes if processlist has extra columns
+ pt-query-digest crashes if processlist has extra columns
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-429

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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