I'm reproducing it on RHEL 8 and 7.
Packages:
[root@kvm-01-guest18 epel]# ./runtest.sh
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 14:29:41 ] :: [ BEGIN ] :: Running 'rlImport 'distribution/epel''
:: [ 14:29:41 ] :: [ INFO ] :: rlImport: Found 'distribution/epel', version '2, 1.0-68' in /mnt/tests
:: [ 14:29:41 ] :: [ INFO ] :: rlImport: Will try to import distribution/epel from /mnt/tests/distribution/Library/epel/lib.sh
:: [ 14:29:41 ] :: [ INFO ] :: found dependencies: 'distribution/LibrariesWrapper distribution/epel-internal '
:: [ 14:29:41 ] :: [ INFO ] :: rlImport: Found 'distribution/LibrariesWrapper', version '5, 1.0-4' in /mnt/tests
:: [ 14:29:41 ] :: [ INFO ] :: rlImport: Will try to import distribution/LibrariesWrapper from /mnt/tests/distribution/Library/LibrariesWrapper/lib.sh
:: [ 14:29:41 ] :: [ INFO ] :: found dependencies: ''
:: [ 14:29:41 ] :: [ INFO ] :: rlImport: Found 'distribution/epel-internal', version '1, 1.0-2' in /mnt/tests
:: [ 14:29:41 ] :: [ INFO ] :: rlImport: Will try to import distribution/epel-internal from /mnt/tests/distribution/Library/epel-internal/lib.sh
:: [ 14:29:41 ] :: [ INFO ] :: found dependencies: ''
done.
done.
:: [ 14:29:41 ] :: [ BEGIN ] :: Running 'rlImport distribution/LibrariesWrapper'
:: [ 14:29:41 ] :: [ PASS ] :: Command 'rlImport distribution/LibrariesWrapper' (Expected 0, got 0)
:: [ 14:29:41 ] :: [ INFO ] :: LibrariesWrapperImport(): library not fetched yet
:: [ 14:29:41 ] :: [ BEGIN ] :: Running 'git init'
Initialized empty Git repository in /mnt/tests/distribution/Library/epel/.git/
:: [ 14:29:41 ] :: [ PASS ] :: Command 'git init' (Expected 0, got 0)
:: [ 14:29:41 ] :: [ BEGIN ] :: Running 'git remote add origin "https://github.com/beakerlib/epel.git"'
:: [ 14:29:41 ] :: [ PASS ] :: Command 'git remote add origin "https://github.com/beakerlib/epel.git"' (Expected 0, got 0)
:: [ 14:29:41 ] :: [ BEGIN ] :: Running 'git fetch'
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 38 (delta 14), reused 28 (delta 9), pack-reused 0
Unpacking objects: 100% (38/38), 9.09 KiB | 664.00 KiB/s, done.
From https://github.com/beakerlib/epel
* [new branch] master -> origin/master
:: [ 14:29:41 ] :: [ PASS ] :: Command 'git fetch' (Expected 0, got 0)
:: [ 14:29:41 ] :: [ BEGIN ] :: Running 'git remote set-head origin --auto'
origin/HEAD set to master
:: [ 14:29:41 ] :: [ PASS ] :: Command 'git remote set-head origin --auto' (Expected 0, got 0)
:: [ 14:29:41 ] :: [ BEGIN ] :: Running 'git checkout "origin/HEAD" -- "epel"'
:: [ 14:29:41 ] :: [ PASS ] :: Command 'git checkout "origin/HEAD" -- "epel"' (Expected 0-255, got 0)
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
:: [ 14:29:41 ] :: [ INFO ] :: found epel v33 from https://github.com/beakerlib/epel.git?#epel in /mnt/tests/distribution/Library/epel/epel
loading library distribution/epel v33... done.
:: [ 14:29:42 ] :: [ LOG ] :: Determined distro is 'rhel'
:: [ 14:29:42 ] :: [ LOG ] :: Determined rhel release is '8'
:: [ 14:29:42 ] :: [ LOG ] :: found candidate source of 'epel-release-latest-8.noarch.rpm', using url https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
:: [ 14:29:42 ] :: [ LOG ] :: install epel repo
:: [ 14:29:42 ] :: [ LOG ] :: curl --fail --location --retry-connrefused --retry-delay 3 --retry-max-time 3600 --retry 3 --connect-timeout 20 --max-time 1800 --insecure -o "/tmp/epel_release_bvxy1Qog.rpm" "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22576 100 22576 0 0 83000 0 --:--:-- --:--:-- --:--:-- 83000
:: [ 14:29:42 ] :: [ BEGIN ] :: Running 'rpm -i "/tmp/epel_release_bvxy1Qog.rpm"'
:: [ 14:29:42 ] :: [ PASS ] :: Command 'rpm -i "/tmp/epel_release_bvxy1Qog.rpm"' (Expected 0, got 0)
:: [ 14:29:43 ] :: [ BEGIN ] :: Running 'rm -f "/tmp/epel_release_bvxy1Qog.rpm"'
:: [ 14:29:43 ] :: [ PASS ] :: Command 'rm -f "/tmp/epel_release_bvxy1Qog.rpm"' (Expected 0, got 0)
:: [ 14:29:43 ] :: [ LOG ] :: epel repo is accessible
Segmentation fault (core dumped)
I've investigated the problem a bit I'm lost in all those levels of indirections and now I'm running out of time for today...