Bug #47716 mtr2 prints obscure error when started with -gdb and xterm is missing
Submitted: 29 Sep 2009 14:06 Modified: 18 Dec 2009 23:45
Reporter: Georgi Kodinov Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S4 (Feature request)
Version:5.1-bugteam OS:Linux (Fedora Core 11/x86_64)
Assigned to: Bjørn Munch CPU Architecture:Any

[29 Sep 2009 14:06] Georgi Kodinov
Description:
I didn't had xterm installed.
Thus mtr2 fails to spawn gdb in a separate xterm window. Here's what I'm getting: 

magare:~/mysql/work/B43029-5.1-bugteam/mysql-test$ ./mysql-test-run.pl --gdb t/alias.test 
Logging: ./mysql-test-run.pl  --gdb t/alias.test
090929 17:01:58 [Note] Plugin 'FEDERATED' is disabled.
090929 17:01:58 [Note] Plugin 'ndbcluster' is disabled.
MySQL Version 5.1.40
Checking supported features...
 - using ndbcluster when necessary, mysqld supports it
 - SSL connections supported
 - binaries are debug compiled
Using "../libtool" when running valgrind or debugger
Collecting tests...
vardir: /home/kgeorge/mysql/work/B43029-5.1-bugteam/mysql-test/var
Checking leftover processes...
Removing old var directory...
Creating var directory '/home/kgeorge/mysql/work/B43029-5.1-bugteam/mysql-test/var'...
Installing system database...
Using server port 49577
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009

==============================================================================

TEST                                      RESULT   TIME (ms)
------------------------------------------------------------

worker[1] mysql-test-run: WARNING: Process [mysqld.1 - pid: 25873, winpid: 25873, exit: 256] died
worker[1] mysql-test-run: *** ERROR: Failed to start mysqld My::Config::Group=HASH(0x256be00)->name()
mysql-test-run: *** ERROR: Test suite aborted
magare:~/mysql/work/B43029-5.1-bugteam/mysql-test$ 

How to repeat:
make sure you don't have xterm in your path and run a fresh bzr build with --gdb using any test

Suggested fix:
print a meaningful error message ?
[5 Oct 2009 13:49] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/85757

2839 Bjorn Munch	2009-10-05
      Bug #47716 mtr2 prints obscure error when started with -gdb and xterm is missing
      Tried to use an expression inside ""
      Go via variable, and add $exe to the output
[7 Oct 2009 13:01] Magnus Blåudd
Maybe better to say "with command line '$exe'"?
[7 Oct 2009 13:05] Bjørn Munch
OK I'll change to "with command $exe", command *line* would include arguments.
[8 Oct 2009 9:11] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/86102

2841 Bjorn Munch	2009-10-08
      Bug #47716 mtr2 prints obscure error when started with -gdb and xterm is missing
      Tried to use an expression inside ""
      Go via variable, and add $exe to the output
[8 Oct 2009 9:23] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/86106

2842 Bjorn Munch	2009-10-08
      Bug #47716 mtr2 prints obscure error when started with -gdb and xterm is missing
      Tried to use an expression inside ""
      Go via variable, and add $exe to the output
[8 Oct 2009 13:04] Bjørn Munch
Pushed to 5.1-mtr, trunk-mtr, next-mr-mtr, 6.0-codebase-mtr
[22 Oct 2009 20:17] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20091022201524-0efl2fzebfuuf0vk) (version source revid:bjorn.munch@sun.com-20091008122436-bqmy3lmr9iaw4d4s) (merge vers: 6.0.14-alpha) (pib:13)
[22 Oct 2009 20:18] Bugs System
Pushed into 5.5.0-beta (revid:alik@sun.com-20091022201318-jfvtrzd6lb07cwp5) (version source revid:bjorn.munch@sun.com-20091008093442-or0trmzmb2pqcyk7) (merge vers: 5.4.5-beta) (pib:13)
[22 Oct 2009 23:24] Paul DuBois
Test suite change. No changelog entry needed.

Setting report to NDI pending push into 5.1.x.
[23 Oct 2009 7:33] Bugs System
Pushed into 5.1.41 (revid:bjorn.munch@sun.com-20091021073307-ummbh6668hvfxqjv) (version source revid:bjorn.munch@sun.com-20091021073307-ummbh6668hvfxqjv) (merge vers: 5.1.41) (pib:13)
[23 Oct 2009 15:19] Paul DuBois
Test suite change. No changelog entry needed.
[18 Dec 2009 10:29] Bugs System
Pushed into 5.1.41-ndb-7.1.0 (revid:jonas@mysql.com-20091218102229-64tk47xonu3dv6r6) (version source revid:jonas@mysql.com-20091218095730-26gwjidfsdw45dto) (merge vers: 5.1.41-ndb-7.1.0) (pib:15)
[18 Dec 2009 10:45] Bugs System
Pushed into 5.1.41-ndb-6.2.19 (revid:jonas@mysql.com-20091218100224-vtzr0fahhsuhjsmt) (version source revid:jonas@mysql.com-20091217101452-qwzyaig50w74xmye) (merge vers: 5.1.41-ndb-6.2.19) (pib:15)
[18 Dec 2009 11:00] Bugs System
Pushed into 5.1.41-ndb-6.3.31 (revid:jonas@mysql.com-20091218100616-75d9tek96o6ob6k0) (version source revid:jonas@mysql.com-20091217154335-290no45qdins5bwo) (merge vers: 5.1.41-ndb-6.3.31) (pib:15)
[18 Dec 2009 11:14] Bugs System
Pushed into 5.1.41-ndb-7.0.11 (revid:jonas@mysql.com-20091218101303-ga32mrnr15jsa606) (version source revid:jonas@mysql.com-20091218064304-ezreonykd9f4kelk) (merge vers: 5.1.41-ndb-7.0.11) (pib:15)