mktemp error with pt-stalk
Bug #986151 reported by
Olivier Doucet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
Medium
|
Daniel Nichter | ||
2.0 |
Fix Released
|
Medium
|
Daniel Nichter | ||
2.1 |
Fix Released
|
Medium
|
Daniel Nichter |
Bug Description
When using pt-stalk on Linux, mktemp throws an error :
mktemp: cannot make temp dir /tmp/pt-
Then program exits.
PTDEBUG=1 does not show anything else :(
After stracing process, it appears command line used is the following :
mktemp -d "/tmp/pt-
I was able to solve the problem by adding an extra X at the end :
mktemp -d "/tmp/pt-
/tmp/pt-
mktemp -V
mktemp version 1.5
./pt-stalk --version
pt-stalk 2.1.1
Linux XXXX 2.6.36 SMP x86_64
Related branches
lp:~percona-toolkit-dev/percona-toolkit/fix-mktemp-bug-986151
- Daniel Nichter: Approve
-
Diff: 193 lines (+24/-27)8 files modifiedbin/pt-ioprofile (+1/-1)
bin/pt-mext (+5/-5)
bin/pt-mysql-summary (+5/-5)
bin/pt-pmp (+1/-1)
bin/pt-sift (+5/-8)
bin/pt-stalk (+1/-1)
bin/pt-summary (+5/-5)
lib/bash/tmpdir.sh (+1/-1)
lp:~percona-toolkit-dev/percona-toolkit/fix-mktemp-bug-986151-2.1
- Daniel Nichter: Approve
-
Diff: 151 lines (+16/-19)8 files modifiedbin/pt-ioprofile (+1/-1)
bin/pt-mext (+5/-5)
bin/pt-mysql-summary (+1/-1)
bin/pt-pmp (+1/-1)
bin/pt-sift (+5/-8)
bin/pt-stalk (+1/-1)
bin/pt-summary (+1/-1)
lib/bash/tmpdir.sh (+1/-1)
To post a comment you must log in.
I get the same error on every tool that used mktemp (for example pt-mext)