-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/20/2010 08:31 PM, Sam Carleton wrote: > So, that seems to leave a memory error in my code, which is also very > tough to find. All the code that is blowing up is within an Apache > Module and I am following the Apache rules very closely. To top it > off, the code crashes in two different places, two different > open/closes of the database.
I'd strongly recommend you setup Linux and use valgrind to track this down. It is the right tool for the job and your code should be portable. You can use Ubuntu with something called Wubi (insert the Ubuntu CD while running Windows) and it won't require re-partitioning (a virtual disk for Ubuntu is created as a file under Windows). I have been caught out when writing Apache modules in the past. What happens is that modules are loaded during the configuration phase and then unloaded afterwards and then reloaded during the runtime phase. The reloading was at a different address because of ASLR: http://en.wikipedia.org/wiki/Address_space_layout_randomization I was doing too much initialization in the configuration phase keeping pointers around till the runtime phase which now pointed to unloaded memory. It was very confusing what was going on. As an example you would experience something like this if SQLite got initialised during the config phase. Just to make things even more complicated ASLR is turned off if you have Wine installed under Linux so I was only seeing the problem on some machines. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwfaysACgkQmOOfHg372QSDqQCeIu5qKL6LLBTCUhg9QdF5Yq23 AUkAmwfYFYdaROqJNkWILmDCn1eB/GpK =7vkO -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users