Welcome! Log In Create A New Profile

Advanced

Re: nginx crash

July 27, 2022 11:18PM
Thanks Dounin,
I will look through my code. As I said, I try not to touch nginx data structure or variables in my module. Is there a guideline document that details when a module should increment or decrement reference count value. When invoking some of these functions?

Thanks,
Dk.

> On Jul 27, 2022, at 8:05 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> Hello!
>
>> On Wed, Jul 27, 2022 at 08:40:41AM -0700, Dk Jack wrote:
>>
>> 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?
>
> There are quite a few functions and/or return codes which might
> indirectly modify request reference counter, including the
> ngx_http_internal_redirect() function (which increments reference
> count and assumes it is decremented by further processing),
> request body reading code (which increments reference counter and
> assumes it is decremented by the body handler) and
> ngx_http_finalize_request() (which is normally used to decrement
> reference counter). Further, lack of explicit reference counting
> might be the issue if you are trying to do something non-trivial,
> and, for example, calling functions which might indirectly
> finalize the request. That's why I've suggested to review the
> code logic in the first place.
>
> --
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx-devel mailing list -- nginx-devel@nginx.org
> To unsubscribe send an email to nginx-devel-leave@nginx.org
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

nginx crash

dnj0496 571 July 26, 2022 10:22PM

Re: nginx crash

dnj0496 204 July 26, 2022 10:24PM

Re: nginx crash

Maxim Dounin 154 July 27, 2022 09:36AM

Re: nginx crash

dnj0496 195 July 27, 2022 11:42AM

Re: nginx crash

Maxim Dounin 149 July 27, 2022 11:06PM

Re: nginx crash

dnj0496 228 July 27, 2022 11:18PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready