Bug #98302 ndb cluster mysqld can't run
Submitted: 21 Jan 2020 8:02 Modified: 28 Jan 2020 16:25
Reporter: Bin Hong (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:8.0.19 OS:MacOS (10.15.2)
Assigned to: CPU Architecture:x86

[21 Jan 2020 8:02] Bin Hong
Description:
bash-3.2$ /Users/hongbin/workbench/mysql/8.0.19/bin/mysqld --verbose --help
Killed: 9

bash-3.2$ sudo dtruss /Users/hongbin/workbench/mysql/8.0.19/bin/mysqld --help
Password:
dtrace: system integrity protection is on, some features will not be available

dtrace: failed to execute /Users/hongbin/workbench/mysql/8.0.19/bin/mysqld: Bad executable (or shared library)

How to repeat:
 /Users/hongbin/workbench/mysql/8.0.19/bin/mysqld --verbose --help
[21 Jan 2020 8:03] Bin Hong
hongbin@MBP ~/w/mysql> md5 mysql-cluster-8.0.19-macos10.15-x86_64.tar.gz
MD5 (mysql-cluster-8.0.19-macos10.15-x86_64.tar.gz) = 8a204322192d09f633e9398fad2c5156
[24 Jan 2020 13:48] MySQL Verification Team
Hi,

I'm having issues reproducing this problem.
If you don't mind me asking

- Where did you get the binary from ?
- Did you maybe try macos release before Catalina (Catalina introduced some incompatibilities that might affect us)?

Thanks
[24 Jan 2020 14:13] MySQL Verification Team
Hi

Binary downloaded from 

https://dev.mysql.com/get/Downloads/MySQL-Cluster-8.0/mysql-cluster-8.0.19-macos10.15-x86_...

on Catalina 10.15.2

BOGDANMBPRO:bin root# ./mysqld --verbose --help
mysqld  Ver 8.0.19-cluster for macos10.15 on x86_64 (MySQL Cluster Community Server - GPL)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Starts the MySQL database server.

Usage: mysqld [OPTIONS]

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf 
The following groups are read: mysql_cluster mysqld server mysqld-8.0
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit.
--no-defaults           Don't read default options from any option file,
                        except for login file.
--defaults-file=#       Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.
--defaults-group-suffix=#
                        Also read groups with concat(group, suffix)
--login-path=#          Read this path from the login file.
...
...
[26 Jan 2020 1:01] Bin Hong
https://cdn.mysql.com//Downloads/MySQL-Cluster-8.0/mysql-cluster-8.0.19-macos10.15-x86_64....
[28 Jan 2020 16:12] MySQL Verification Team
DMG https://cdn.mysql.com//Downloads/MySQL-Cluster-8.0/mysql-cluster-8.0.19-macos10.15-x86_64.... works ok, I'll retest what's the problem with tar.gz

thanks
[28 Jan 2020 16:25] MySQL Verification Team
Hi

verified from .tar.gz

BOGDANMBPRO:bin root# ./mysqld --verbose --help
Killed: 9
BOGDANMBPRO:bin root# 

other binaries are ok, even mysqld-debug so looks like mysqld executeble is damaged somehow :(

BOGDANMBPRO:bin root# ./mysqld-debug --verbose --help
mysqld-debug  Ver 8.0.19-cluster-debug for macos10.15 on x86_64 (MySQL Cluster Community Server - GPL - Debug)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Starts the MySQL database server.

Usage: mysqld-debug [OPTIONS]

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf 
The following groups are read: mysql_cluster mysqld server mysqld-8.0
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit.
...