I expect that it will print "Initial: 1, hook: 0x0" before segfaulting. If this is the case, then perhaps the initial frame should also have this hook defined, though this would be the first such hook defined for the initial frame type. If this is correct, then the following diff should fix this: