Two little bugs

speedfirst nginx-forum at nginx.us
Wed Dec 8 03:36:58 MSK 2010


For example,

[code]
nginx/sbin/nginx -c /opt/nginx/nginx.conf
[/code]


is OK, because /opt/nginx/nginx.conf is an absolute path

However,

[code]
nginx/sbin/nginx -c nginx.conf
[/code]

will get segment fault

I debug the source code, the problem is located in the function
"ngx_conf_full_name". Seems the cycle used in that function is not yet
initialized when trying to get the full path.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,156312,156602#msg-156602




More information about the nginx mailing list