C Example 2 illustrates the use of weights, but the length of this vector is n=2 instead of the correct number ( # of residuals) m=5.
Re: https://github.com/ralna/RALFit/blob/47f740a5894cbd04b9ac7d837bca7a34cc12bb61/libRALFit/example/C/nlls_example2.c#L94C11-L94C21.
Issues comes up when compiling in debug mode (ASAN)
NB: This is fixed in a PR to be pushed.