Bug #31599 | Attaching debugger to MTR valgrind session with --db-attach is unusable | ||
---|---|---|---|
Submitted: | 15 Oct 2007 9:43 | Modified: | 29 Oct 2007 21:21 |
Reporter: | Mats Kindahl | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Tools: MTR / mysql-test-run | Severity: | S3 (Non-critical) |
Version: | 5.0, 5.1 BK | OS: | Any |
Assigned to: | Bjørn Munch | CPU Architecture: | Any |
[15 Oct 2007 9:43]
Mats Kindahl
[15 Oct 2007 9:55]
Guilhem Bichot
Hi Mats, try this: create a script (I call it valgrind-db-attach): #! /bin/sh # we sleep so that the window does not go away too fast exec xterm -e "valgrind --db-attach=yes $*; sleep 36000" And run ./mtr with --valgrind-path=yourscript.
[17 Oct 2007 6:32]
Mats Kindahl
The suggested solution solves my immediate problems, but still if you supply the --db-attach option to MTR, it means that the test will "hang" (actually wait for user input, but there is no way to tell). This makes it very hard to realize something is wrong. It would still be beneficial to either forbid the use of any options that will make valgrind read input from the terminal, ensure that the prompts are printed to the terminal, or open a separate xterm window in the manner described by Guilhem (this is also in line with how --gdb behaves).
[29 Oct 2007 21:21]
Sveta Smirnova
Thank you for the report. Verified as described.