Bug #19059 Failure to get version information when running from source tree
Submitted: 12 Apr 2006 18:58 Modified: 18 Apr 2006 20:41
Reporter: Jim Winstead Email Updates:
Status: Closed Impact on me:
None 
Category:Instance Manager Severity:S2 (Serious)
Version:5.1 OS:Any (All)
Assigned to: Jim Winstead CPU Architecture:Any

[12 Apr 2006 18:58] Jim Winstead
Description:
When libtool compiles mysqld and uses a wrapper in sql/mysqld that spawns .libs/lt-mysqld, the instance manager gets confused in Instance_options::fill_instance_version() because the first bit of the output of mysqld --version isn't the same as the path to mysqld.

How to repeat:
Run the instance manager on a box where libtool wraps executables.

Suggested fix:
Look for something less unstable, like 'Ver'.
[15 Apr 2006 3:28] 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/4972
[17 Apr 2006 16:38] 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/5021
[17 Apr 2006 18:09] Chad MILLER
Patch 5021 looks good to me.
[17 Apr 2006 20:44] Jim Winstead
Fixed in 5.1.10.

  Bug #19059: Failure to get version information when running from source tree
  
    Fix the way that instance manager finds the version number of instances,
    so that it works properly when the executable name isn't the same as what
    the instance-manager launched, such as when wrapping a libtool-wrapped
    executable from the source tree.
  
    This removes the 'Ver ' reported in the version column output by
    'SHOW INSTANCE STATUS ...', but the format of this column is not
    documented (and is pretty free-form to begin with).
[18 Apr 2006 20:41] Paul DuBois
Noted in 5.1.10 changelog.