The four calls to ngx_conf_log_error in upstream.rs coerce the error string to a '* const c_char', but the error string won't be null terminated so it will crash.
(I have not reproduced. I used the code as a template in my own module and it crashed. I fixed my own code via the discussion here.)