Add debug messages, gidtbl should get the calloc result.