I was wrong, the request object was created on the fly with the pool object. here the pool was detroyed before the r was referenced which caused the core dump. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289296,289298#msg-289298