Bug #47811 ./mysql-test-run.pl --valgrind uses old (too narrow) allignment
Submitted: 4 Oct 2009 10:39 Modified: 28 Jan 2011 15:42
Reporter: Georgi Kodinov Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S3 (Non-critical)
Version:5.0+ OS:Linux (Fedora Core 11/x86_64)
Assigned to: Bjørn Munch CPU Architecture:Any

[4 Oct 2009 10:39] Georgi Kodinov
Description:
When running any with  the newest valgrind-3.5.0 I'm getting : 
mysql-test$ ./mysql-test-run.pl --valgrind alias.test
Logging: ./mysql-test-run.pl  --valgrind alias.test
091004 13:35:59 [Note] Plugin 'FEDERATED' is disabled.
091004 13:35:59 [Note] Plugin 'ndbcluster' is disabled.
MySQL Version 5.1.40
Turning on valgrind for all executables
Running valgrind with options " --show-reachable=yes "
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/merge-5.1-bugteam/mysql-test/var
Checking leftover processes...
Removing old var directory...
Creating var directory '/home/kgeorge/mysql/work/merge-5.1-bugteam/mysql-test/var'...
Installing system database...
Using server port 49479

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

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

worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009
worker[1] mysql-test-run: WARNING: Process [mysqld.1 - pid: 20386, winpid: 20386, exit: 256] died
main.alias                               [ fail ]
        Test ended at 2009-10-04 13:36:00

CURRENT_TEST: main.alias
==20387== Invalid --alignment= setting.  Should be a power of 2, >= 16, <= 4096.
valgrind: Bad option '--alignment'; aborting.
valgrind: Use --help for more information.

How to repeat:
compile with valgrind using BUILD/compile-pentium-valgrind-max and run
./mysql-test-run.pl --valgrind <any test>

Suggested fix:
Use the valgrind's default (i.e. remove the --alignment option).
[4 Oct 2009 10:40] 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/85667

3153 Georgi Kodinov	2009-10-04
      Bug #47811 : remove the non-default alignment specification.
[6 Oct 2009 8:43] 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/85842

2840 Bjorn Munch	2009-10-06
      Bug #47811 ./mysql-test-run.pl --valgrind uses old (too narrow) allignment
      Remove the alignment option, let valgrind use its default
[6 Oct 2009 13:18] 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-20091006090233-lcu28yngy9i2sy9k) (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-20091006085829-j8d20ow1ywmv8rgx) (merge vers: 5.4.5-beta) (pib:13)
[22 Oct 2009 23:16] Paul Dubois
Test suite change. No changelog entry needed.

Setting report to NDI pending push into 5.1.x.
[23 Oct 2009 7:34] 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:17] Paul Dubois
Test suite change. No changelog entry needed.
[18 Dec 2009 10:33] 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:49] 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:04] 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:18] 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)
[26 Jan 2011 12:50] Bugs System
Pushed into mysql-5.0 5.0.93 (revid:ramil@mysql.com-20110126124909-id99tai9pl2yrst9) (version source revid:ramil@mysql.com-20110126124909-id99tai9pl2yrst9) (merge vers: 5.0.93) (pib:24)
[26 Jan 2011 12:50] 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/129654

2898 Ramil Kalimullin	2011-01-26
      Bug #47811 : remove the non-default alignment specification.
      
      Fix backported from to 5.0.
      "Remove the alignment option, let valgrind use its default"
     @ mysql-test/mysql-test-run-shell.sh
        Bug #47811 : remove the non-default alignment specification.
          - backport from 5.1
           "Remove the alignment option, let valgrind use its default"
     @ mysql-test/mysql-test-run.pl
        Bug #47811 : remove the non-default alignment specification.
          - backport from 5.1
           "Remove the alignment option, let valgrind use its default"
[26 Jan 2011 12:56] Bugs System
Pushed into mysql-5.1 5.1.56 (revid:ramil@mysql.com-20110126125545-o0gkl9wbyoxep44y) (version source revid:ramil@mysql.com-20110126125418-6y8hx63jgw6i2fe1) (merge vers: 5.1.56) (pib:24)
[26 Jan 2011 20:15] Bugs System
Pushed into mysql-trunk 5.6.2 (revid:mattias.jonsson@oracle.com-20110126201331-ab82uv7s5qmdufs5) (version source revid:mattias.jonsson@oracle.com-20110126201331-ab82uv7s5qmdufs5) (merge vers: 5.6.2) (pib:24)
[26 Jan 2011 20:16] Bugs System
Pushed into mysql-5.5 5.5.10 (revid:mattias.jonsson@oracle.com-20110126183353-8fngni1uuyybmz9u) (version source revid:mattias.jonsson@oracle.com-20110126183353-8fngni1uuyybmz9u) (merge vers: 5.5.10) (pib:24)
[26 Jan 2011 23:44] Paul Dubois
Test suite change. No changelog entry needed.