In my code I am not modifying the reference count. Could you let me if there any function calls if invoked would indirectly update the reference count?
Dk. > On Jul 27, 2022, at 6:35 AM, Maxim Dounin <mdou...@mdounin.ru> wrote: > > Hello! > >> On Tue, Jul 26, 2022 at 07:21:29PM -0700, Dk Jack wrote: >> >> Hi, >> I am noticing a crash in my nginx module. The crash is happening after an >> internal redirect. It's not always happening but for certain requests. >> Besides the trace log I do not have much info about the request. In my >> module, I am restoring the my module context in a similar fashion as the ` >> ngx_http_realip_get_module_ctx`. What I noticed is `r->pool == 0`. Why >> would the r->pool be ever zero'ed? >> >> The crash is happening in my get_module_ctx function which was called >> immediately after returning from the ngx_http_internal_redirect call. Any >> ideas on how to go about resolving this is greatly appreciated. Thanks. > > It looks like there are issues with request reference counting > somewhere in your code, and the request is freed in the > ngx_http_internal_redirect() call. Review your code logic and > corresponding request reference counting, it should help. > > -- > Maxim Dounin > http://mdounin.ru/ > _______________________________________________ > nginx-devel mailing list -- nginx-devel@nginx.org > To unsubscribe send an email to nginx-devel-le...@nginx.org _______________________________________________ nginx-devel mailing list -- nginx-devel@nginx.org To unsubscribe send an email to nginx-devel-le...@nginx.org