pt-tcp-model crashes in --type=requests mode on empty file

Bug #903510 reported by Baron Schwartz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Brian Fraser

Bug Description

It looks to me like pt-tcp-model is not handling an empty file here:

[baron@ginger ~]$ touch foo
[baron@ginger ~]$ pt-tcp-model --type=requests foo
Use of uninitialized value in numeric lt (<) at /home/baron/repos/pt/bin/pt-tcp-model line 1736.

Related branches

tags: added: crash pt-tcp-model
Changed in percona-toolkit:
status: New → Confirmed
Changed in percona-toolkit:
status: Confirmed → Fix Committed
importance: Undecided → Medium
assignee: nobody → Brian Fraser (fraserbn)
milestone: none → 2.1.3
summary: - pt-tcp-model throws an error in --type=requests mode on empty file
+ pt-tcp-model crashes in --type=requests mode on empty file
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-446

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.