gcc 7.3, ruby 2.3.7, mysql 5.7, mysql2 gem 0.3.21.. Tried all of above and many more solutions..
The main cause of Segmentation Fault error was encoding: utf8mb4 in database.yml , Once I changed it to utf8 only, the error vanished.
encoding: utf8mb4
database.yml