I have ran the testcase in my local machine with below configurations:
Environment: CentOS 7(64bit)
HD : 100GB
RAM: 4GB
Processor: 4
I have nerrowdown the testcase as below, which also reproduce the same crash.
-- GUCs under postgres.conf
maintenance_work_mem = 8GB
./pgbench -i -s 500 -d postgres
postgres=# create index pgb_acc_idx3 on pgbench_accounts(aid, abalance,filler);
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and repeat your command.
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!>