[MDEV-31871] maria-install-db fails on MacOS Created: 2023-08-08  Updated: 2023-10-03  Resolved: 2023-09-22

Status: Closed
Project: MariaDB Server
Component/s: Configuration
Affects Version/s: 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2
Fix Version/s: 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3

Type: Bug Priority: Critical
Reporter: Dmitry Shulga Assignee: Dmitry Shulga
Resolution: Fixed Votes: 0
Labels: None


 Description   

Installing MariaDB/MySQL system tables in '/Users/shulga/projects/mariadb/server-10.9/build.dir/data.dir' ...
scripts/mariadb-install-db: line 556: 45065 Segmentation fault: 11  (core dumped) "$mysqld_bootstrap" $defaults $defaults_group_suffix "$mysqld_opt" --bootstrap $silent_startup "--basedir=$basedir" "--datadir=$ldata" --log-warnings=0 --enforce-storage-engine="" "--plugin-dir=${plugindir}" $args --max_allowed_packet=8M --net_buffer_length=16K
 
Installation of system tables failed!  Examine the logs in
/Users/shulga/projects/mariadb/server-10.9/build.dir/data.dir for more information.
 
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
 
    shell> scripts/mariadb-install-db --defaults-file=~/.my.cnf
 
You can also try to start the mariadbd daemon with:
 
    shell> /Users/shulga/projects/mariadb/server-10.9/build.dir/sql/mysqld --skip-grant-tables --general-log &
 
and use the command line tool /Users/shulga/projects/mariadb/server-10.9/build.dir/client/mariadb
to connect to the mysql database and look at the grant tables:
 
    shell> /Users/shulga/projects/mariadb/server-10.9/build.dir/client/mariadb -u root mysql
    MariaDB> show tables;
 
Try '/Users/shulga/projects/mariadb/server-10.9/build.dir/sql/mysqld --help' if you have problems with paths.  Using
--general-log gives you a log in /Users/shulga/projects/mariadb/server-10.9/build.dir/data.dir that may be helpful.



 Comments   
Comment by Dmitry Shulga [ 2023-08-09 ]

Patch for review is at the branch bb-10.6-MDEV-31871

Comment by Daniel Black [ 2023-09-13 ]

looks good to me - approved.

Comment by Oleksandr Byelkin [ 2023-09-18 ]

Add after " delete debug_sync_global;" debug_sync_global= NULL; and OK to push

Generated at Thu Feb 08 10:27:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.