As per summary, check attached build log.
Created attachment 194018 [details]
Created attachment 194148 [details, diff]
Patch from fedora, please try
The patch looks wrong, check it out yourself: it avoids setting p, but then does
*p = 0;
which means that it might just have an undefined pointer write.