[Tutor] Re: What's causing the crash

Charlie Clark charlie@begeistert.org
Wed Feb 5 05:30:03 2003


On 2003-02-04 at 21:55:04 [+0100], tutor-request@python.org wrote:
> 
> > Do I understand correctly that this just causes a windows applcation 
> > crash? No Python traceback etc? This suggests that the crash happens in 
> > code written in C or C++, in your database module.

So after more testing I found a workaround: it did have something to do 
with the number None's being inserted. This was confirmed by the driver's 
writer:

"ah-ah! that is. you it a memory leak that was solved in 1.0.14.2, the
None object was DECREFfed too many times, resulting in segfault soon or
later. this only happens when a None e object is traslated into NULL
using a %s, that's why your fix solved the problem."

My next problem is being restricted to windows for development on this and 
not having MSVC to do the compile. oh well, lucky it was only for test data.

Thanx again Magnus

Charlie