Thanks Michael for pointing it out, I have re-tested the scenario with "--tablespace-mapping=OLDDIR=NEWDIR" option of pg_basebackup, and now its working fine.But I think, instead of the crash, a proper error message would be better.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных