Building an OCaml list of string from C

Could you please elaborate on that? My understanding is that I’m building a string (char array) proto and trying to put them in in the protocol_list “structured block” (as the manual referred) via Store_field. Prior to doing this, I’ve successfully parsed an OCaml list into an array via calls to Field, so I think I’m doing the opposite now.

Indeed, and I have also tried putting in place of value protocol_list the following:

CAMLparam0();
CAMLlocal1(protocol_list);

and returning with CAMLreturn(protocol_list), but the segfault still happens.