Frederick Heckel wrote:

I just attempted to run a program which I had left alone for a couple weeks, and found that every sqlite query i try to run generates this in gdb:

Program received signal SIGSEGV, Segmentation fault.
0x40865d34 in sqliteSafetyOn () from /usr/lib/libsqlite.so.0

For a specific case, a statement that generates this is:

SELECT ( id ) FROM song where ( filename
=="/home/fwph/why-cooperation-with-rms-is-impossible.mp3" )

the relevant line of code(i'm using the compile/step method):
          sqlite_compile (theDb, buffer, &tail, &vm, &err);


After a quick glance at the code, it appears that a segfault will result if the "theDb" variable is NULL or some other value other than a valid sqlite* pointer.


-- D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to