This is where it segfaults. If this line is removed, the next one that accesses cont fails.