Bug #35735 mysql-test-run.pl creates tmpdir for socket path longer than 70

Submitted: 1 Apr 2008 10:11 Modified: 30 Jan 2009 17:04
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any
Tags: 51rpl

[1 Apr 2008 10:11] Magnus Blåudd
Description:
There is code in mysql-test-run.pl that generates a tmpdir for the socket path if it's default is longer than 70.

There are two problems:
1. The default socket path is set to /path/var/tmp/master.sock even if --tmpdir is used, it should be set to $tmpdir/master.sock in that case.
2. The 70 character max length for socket paths only exist on some platforms, better to test what the limit is on the running platform - if possible.

How to repeat:
.
[16 Apr 2008 9:10] Magnus Blåudd
The tmpdir created should also be removed when mtr.pl completes.
[5 Sep 2008 16:30] Magnus Blåudd
Fixed by WL#4350
[5 Dec 2008 15:33] Alfranio Tavares Correia Junior
See also BUG#41265.
[12 Dec 2008 7:56] Sveta Smirnova
Bug #41265 was marked as duplicate of this one.
[21 Jan 2009 17: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/commits/63749

2716 Magnus Svensson	2009-01-21
      Bug#35735 mysql-test-run.pl creates tmpdir for socket path longer than 70
       - Additional patch with improved protection by putting it all inside an "eval"
       - Calling 'hostpath' on a truncated socket may also croak.
       - Remove the need to create any directory parts of "path" inside the function.
[30 Jan 2009 13:27] Bugs System
Pushed into 6.0.10-alpha (revid:luis.soares@sun.com-20090129165607-wiskabxm948yx463) (version source revid:luis.soares@sun.com-20090129163120-e2ntks4wgpqde6zt) (merge vers: 6.0.10-alpha) (pib:6)
[30 Jan 2009 15:08] Bugs System
Pushed into 5.1.32 (revid:luis.soares@sun.com-20090129165946-d6jnnfqfokuzr09y) (version source revid:msvensson@mysql.com-20090121171803-gc9x758ghi6e982d) (merge vers: 5.1.31) (pib:6)
[30 Jan 2009 17:04] Paul DuBois
Test suite change. No changelog entry needed.
[17 Feb 2009 14:54] Bugs System
Pushed into 5.1.32-ndb-6.3.23 (revid:tomas.ulin@sun.com-20090217131017-6u8qz1edkjfiobef) (version source revid:tomas.ulin@sun.com-20090203133556-9rclp06ol19bmzs4) (merge vers: 5.1.32-ndb-6.3.22) (pib:6)
[17 Feb 2009 16:42] Bugs System
Pushed into 5.1.32-ndb-6.4.3 (revid:tomas.ulin@sun.com-20090217134419-5ha6xg4dpedrbmau) (version source revid:tomas.ulin@sun.com-20090203133556-9rclp06ol19bmzs4) (merge vers: 5.1.32-ndb-6.3.22) (pib:6)
[17 Feb 2009 18:18] Bugs System
Pushed into 5.1.32-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090217134216-5699eq74ws4oxa0j) (version source revid:tomas.ulin@sun.com-20090201210519-vehobc4sy3g9s38e) (merge vers: 5.1.32-ndb-6.2.17) (pib:6)

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.067 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.