repo can be constructed, but segfaults when c lib tries to access any fields