Hi, I am trying to integrate gprof for testing the performance of our nginx dynamic module developed in C. I am trying to include the -pg flag during compilation as follows: ./configure --with-debug --with-compat --add-dynamic-module=<Our Dyn Module code> --prefix=<Nginx dir> --with-cc-opt="-I/usr/include/x86_64-linux-gnu/ -I/usr/include/ .. <other options> .. -pg"by bhagavathula - Nginx Mailing List - English
Hi, Thanks for the response. We fixed the issue related to casting and still didnt see any change in behavior where intermittently garbage values are being appended. However, when we tried to get the ip address using alternate means, as follows the issue is not happening and Valgrind is also not reporting any issue: struct sockaddr_in *sin = (struct sockaddr_in *)r->connection->sockaddby bhagavathula - Nginx Mailing List - English
Hi, When running Valgrind on our NGINX module for errors, found the following errors: ==49784== Conditional jump or move depends on uninitialised value(s) ==49784== at 0x4C32D08: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==49784== by 0x6C3A328: apr_pstrdup (in /usr/lib/x86_64-linux-gnu/libapr-1.so.0.6.3) ==49784== by 0x6C3DB3D: apr_table_add (in /usr/lib/x86_6by bhagavathula - Nginx Mailing List - English