In comp.lang.perl.modules, Message-ID: <[EMAIL PROTECTED]>, Eric Bohlman has just 
posted this comment:
-----><8-----
DBD::SQLite was crashing perl under Windows (ActiveState build 629 on
Win98SE) whenever ChopBlanks was set. �The crash was occurring in
sqlite_st_fetch() in dbdimp.c when

if (chopBlanks) free(val);

was executed. �After some futzing around, I discovered that changing

val = strdup(val);
to
val=strcpy(malloc(len+1),val);

cleared up the problem. �Is it possible that ActivePerl is built with a
custom malloc() and free(), but that strdup() is internally using a
different allocator that isn't compatible with the custom free()? �The
compilation was done with MSVC 6.0.

BTW, once that change was made, it compiled and tested just fine with the
latest release (2.8.11) of the SQLite source.
-----><8-----

--
Cheers
Ron Savage, [EMAIL PROTECTED] on 5/02/2004
http://savage.net.au/index.html

Reply via email to