Segfault with cfunction, possibly world age related

I can reproduce in Julia 1.4.1, but it seems to be resolved in 1.5.0-rc1