{"record":{"id":"b8021386a2b2f676","repo":"nginx/nginx","slug":"ngx-log-crit-b80213","errorCode":"NGX_LOG_CRIT","errorMessage":"request reference counter overflow while processing \\\"%V\\\"","messagePattern":"request reference counter overflow while processing \\\\\"%V\\\\\"","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/http/ngx_http_core_module.c","lineNumber":2421,"sourceCode":"{\n    ngx_time_t                    *tp;\n    ngx_connection_t              *c;\n    ngx_http_request_t            *sr;\n    ngx_http_core_srv_conf_t      *cscf;\n    ngx_http_posted_request_t     *posted;\n    ngx_http_postponed_request_t  *pr, *p;\n\n    if (r->subrequests == 0) {\n        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,\n                      \"subrequests cycle while processing \\\"%V\\\"\", uri);\n        return NGX_ERROR;\n    }\n\n    /*\n     * 1000 is reserved for other purposes.\n     */\n    if (r->main->count >= 65535 - 1000) {\n        ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,\n                      \"request reference counter overflow \"\n                      \"while processing \\\"%V\\\"\", uri);\n        return NGX_ERROR;\n    }\n\n    if (r->subrequest_in_memory) {\n        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,\n                      \"nested in-memory subrequest \\\"%V\\\"\", uri);\n        return NGX_ERROR;\n    }\n\n    sr = ngx_pcalloc(r->pool, sizeof(ngx_http_request_t));\n    if (sr == NULL) {\n        return NGX_ERROR;\n    }\n\n    sr->signature = NGX_HTTP_MODULE;\n","sourceCodeStart":2403,"sourceCodeEnd":2439,"githubUrl":"https://github.com/nginx/nginx/blob/3f6f7824d4e2eb1ac37dec76683d525ac0ff521c/src/http/ngx_http_core_module.c#L2403-L2439","documentation":"Error \"request reference counter overflow while processing \\\"%V\\\"\" thrown in nginx/nginx.","triggerScenarios":"Thrown at src/http/ngx_http_core_module.c:2421 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f6f7824d4e2eb1ac37dec76683d525ac0ff521c","analyzedAt":"2026-08-22T03:09:46.447Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}