Segmentation error is wild. Can you provide a fully reproducible snippet (as simplified as possible) to play with?