Integration of gprof for Nginx dynamic module

2019-07-20 Thread bhagavathula
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= --prefix= --with-cc-opt="-I/usr/include/x86_64-linux-gnu/ -I/us

Re: Valgrind reporting issue in connection->addr_text

2019-05-07 Thread bhagavathula
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 r

Valgrind reporting issue in connection->addr_text

2019-05-06 Thread bhagavathula
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/