nginx is not compatible with gcov of gcc 4.1.2
Maxim Dounin
mdounin at mdounin.ru
Sat Jan 5 12:35:13 UTC 2013
Hello!
On Sat, Jan 05, 2013 at 05:55:20PM +0800, chen cw wrote:
> Hi
> I happened to see all the nginx workers crushed when they were exiting.
> When I looked into this, I found they would crush every time they were
> exiting, on the function gcov_exit().
> Now I confirm it is connected with these options
> "--with-cc-opt='-fprofile-arcs -ftest-coverage' --with-ld-opt=-lgcov", they
> are used for code coverage testing. gcov is a part of gcc, the version of
> gcc I use is 4.1.2.
> Moreover, I found that in most cases, nginx workers will crush, except
> for they work on very simple configuration, eg., only 7 empty locations in
> only one server in the configuration file.
> We confirmed from 1.0.15 to 1.2.6, nginx of all versions have this
> problem.
Works fine here (though I don't have gcc 4.1.2 here on hand to test
exactly the same gcc version). You may want to debug further what
goes wrong in your case, or just upgrade to a recent version of
gcc to see if it helps.
--
Maxim Dounin
http://nginx.com/support.html
More information about the nginx-devel
mailing list