[1.8.0 stable] bug when install on old linux version

Ruslan Ermilov ru at nginx.com
Wed May 6 13:42:20 UTC 2015


On Wed, May 06, 2015 at 02:35:35PM +0700, hungnv at opensource.com.vn wrote:
> Hello, 
> 
> I tested new stable version (1.8.0) with simple option: ./configure —add-module=./ngx_enhance_mp4_module (https://github.com/whatvn/ngx_http_enhance_mp4_module <https://github.com/whatvn/ngx_http_enhance_mp4_module>) , then start nginx and it fail to spawn child process (with error similar to compiling with —with-file-aio on old linux kernel): 
> 
> 2015/05/06 14:22:28 [emerg] 19004#0: eventfd() failed (38: Function not implemented)
> 2015/05/06 14:22:28 [emerg] 19005#0: eventfd() failed (38: Function not implemented)
> 2015/05/06 14:22:28 [emerg] 19006#0: eventfd() failed (38: Function not implemented)
> 2015/05/06 14:22:28 [alert] 18999#0: worker process 19000 exited with fatal code 2 and cannot be respawned
> 2015/05/06 14:22:28 [alert] 18999#0: worker process 19002 exited with fatal code 2 and cannot be respawned
> 2015/05/06 14:22:28 [alert] 18999#0: worker process 19003 exited with fatal code 2 and cannot be respawned
> 2015/05/06 14:22:28 [alert] 18999#0: worker process 19004 exited with fatal code 2 and cannot be respawned
> 2015/05/06 14:22:28 [alert] 18999#0: worker process 19005 exited with fatal code 2 and cannot be respawned
> 2015/05/06 14:22:28 [alert] 18999#0: worker process 19006 exited with fatal code 2 and cannot be respawned
> 
> 
> 
> with same configure options, nginx stable 1.6.3 work fine. Maybe a bug? 
> 
> System details: 
> 
> Centos 5, kernel: 2.6.18-164.el5 

Could you verify that this patch helps you?

diff --git a/src/event/modules/ngx_epoll_module.c b/src/event/modules/ngx_epoll_module.c
--- a/src/event/modules/ngx_epoll_module.c
+++ b/src/event/modules/ngx_epoll_module.c
@@ -329,7 +329,7 @@ ngx_epoll_init(ngx_cycle_t *cycle, ngx_m
 
 #if (NGX_HAVE_EVENTFD)
         if (ngx_epoll_notify_init(cycle->log) != NGX_OK) {
-            return NGX_ERROR;
+            ngx_epoll_module_ctx.actions.notify = NULL;
         }
 #endif
 



More information about the nginx-devel mailing list