mod_uploaderの作者さんがまとめている開発Tips(http://acapulco.dyndns.org/mod_uploader/module_dev.htm)にあったデバッグ方法を試してみました。 Valgrind http://valgrind.org/ Valgrindはメモリ周りのバグや、スレッド系のバグを自動的に検出してくれるツールです。 インストールは ./configure make make install で完了です。 a.out(-gオプションでコンパイルしてください)のメモリ周りのチェックを行う場合は valgrind --leak-check=yes a.out とやると、こんな結果が出力されてメモリリークしている場所がずばり表示されます。 ==19182== 40 bytes in 1 blocks are definitely lost in los
![ValgrindでApacheモジュールのメモリバグを見つけよう - ひげぽん OSとか作っちゃうかMona-](https://cdn-ak-scissors.b.st-hatena.com/image/square/5c254c0d6cf9d61ba0c2aec2fc7c2f3a61b0efa0/height=288;version=1;width=512/http%3A%2F%2Fimages-jp.amazon.com%2Fimages%2FP%2F4774117994.09.MZZZZZZZ.jpg)