What to do if GDB throws error of truncated core-dump file