Prepared statements crash pt-query-digest

Bug #887688 reported by Daniel Nichter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
High
Daniel Nichter
1.0
Fix Released
High
Daniel Nichter
2.0
Fix Released
High
Daniel Nichter

Bug Description

Prepared statements can cause pt-query-digest to crash:

Pipeline process 5 (iteration) caused an error: Use of uninitialized value in sprintf at 1.0/bin/pt-query-digest line 6922.
The pipeline caused an error: Use of uninitialized value in sprintf at 1.0/bin/pt-query-digest line 6922.

The tool does handle PS in general, but something in my sample file causes this bug in both 1.0 and 2.0.

Related branches

tags: added: percona-17851 pt-query-digest tcpdump
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

The problem is in QueryReportFormatter::prepared(), so the workaround is --report-format rusage,date,hostname,files,header,profile,query_report.

tags: added: prep-stmt
removed: tcpdump
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-282

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.