Bug #75129 mysql_install_db: posix_spawnp() doesn't provide environment for mysqld process
| Submitted: | 6 Dec 2014 13:13 | Modified: | 30 Jan 2015 8:03 |
|---|---|---|---|
| Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server: Installing | Severity: | S4 (Feature request) |
| Version: | 5.7.6 | OS: | Linux (FC17 x64) |
| Assigned to: | CPU Architecture: | Any |
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.049 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.
Description: I need to put some paths into LD_LIBRARY_PATH environment variable for things like asan and also new glibc which is not installed on this particular system. This causes mysql_install_db to fail (trimmed) : [ERROR] Child process: mysqld terminated prematurely with errno= 32 [ERROR] Failed to execute mysqld --bootstrap --datadir=./data --lc-messages-dir=./share --lc-messages=en_US --basedir=. -- server log begin -- mysqld: error while loading shared libraries: libasan.so.1: cannot open shared object file: No such file or directory -- server log end -- How to repeat: let mysqld require something from LD_LIBRARY_PATH that is not installed on system. Running mysqld manually works fine but spawning via mysql_install_db fails. Suggested fix: The last argument here is NULL, but it should be a pointer to the current environment variables? int ret= posix_spawnp(&child, (const char *)execve_args[0], &spawn_action, NULL, execve_args, NULL);