Bug #11792 mysql-test-run.pl reports testcase "pass" when mysqltest cored
Submitted: 7 Jul 2005 10:58 Modified: 17 Aug 2005 1:04
Reporter: Matthias Leich Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:4.1 OS:
Assigned to: Kent Boortz CPU Architecture:Any

[7 Jul 2005 10:58] Matthias Leich
Description:
I have a testcase (Bug#10267,comment) where mysqltest crashes
during the execution of the scripts. But mysql-test-run.pl reports, 
that the testcase "passed".
Example:
./mysql-test-run ml031
Installing Test Databases
....
TEST                            RESULT
-------------------------------------------------------
ml031                           [ pass ]
-------------------------------------------------------

For comparison:
./mysql-test-run ml031
....
TEST                            RESULT
-------------------------------------------------------
ml031                          [ fail ]
Errors are (from ... mysql-test/var/log/mysqltest-time) :
mysqltest returned unexpected code 139, it has probably crashed

My environment:
   - Intel PC with Linux(SuSE 9.3)
   - MySQL compiled from source
        Version 4.1 ChangeSet@1.2330, 2005-07-06
        Version 5.0 ChangeSet@1.1893, 2005-07-06

How to repeat:
Please download the files of Bug#10267
ml031.test --> mysql-test/t
ml031.inc + ml0311.inc --> mysql-test/include

# Produce a dummy file with expected results
  echo "Dummy" > r/ml031.result
  ./mysql-test-run.pl ml031
  and
  ./mysql-test-run ml031

Another possible method:
- start a testscript containing sleep 100
- kill the mysqltest process during the execution of
  the script
[7 Jul 2005 12:49] MySQL Verification Team
Loading Standard Test Databases
Starting Tests

TEST                            RESULT
-------------------------------------------------------
ml031                          [ fail ]

Errors are (from /home/miguel/dbs/mysql-4.1/mysql-test/var/log/mysqltest-time) :
mysqltest returned unexpected code 139, it has probably crashed
(the last lines may be the most important ones)

Aborting: ml031 failed in default mode. To continue, re-run with '--force'.

miguel@hegel:~/dbs/mysql-4.1/mysql-test$ ./mysql-test-run.pl ml031
Killing Possible Leftover Processes
Removing Stale Files
Installing Master Databases
Installing Master Databases
Installing Slave Databases
Installing Slave Databases
Installing Slave Databases
=======================================================
Finding  Tests in the 'main' suite
Starting Tests in the 'main' suite

TEST                            RESULT
-------------------------------------------------------

ml031                           [ pass ]
-------------------------------------------------------
Ending Tests
Shutting-down MySQL daemon
[16 Aug 2005 23:18] 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/internals/28356
[17 Aug 2005 22:08] 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/internals/28418