Using `cstring` is an unsafe operation that yields a view of a Nim string. If your string gets deallocated while you hold a `string` view of it you will get a segmentation fault.
To proceed from there, review carefully the code using the `cstring`; even if the stacktrace in the segfault doesn't point to it, there is 99.99% change your segfault occurs during bad segfault manipulation.
