Re: [sqlite] Segmentation fault using sqlite

2007-03-12 Thread drh
"Rich Rattanni" <[EMAIL PROTECTED]> wrote:
> I am wondering why my program crashes with a segmentation fault.  This
> has only occured once, but it seems to be something with sqlite.  Is
> this a known issue or is there anything I can do to further track this
> down?
> 

There are no known malloc() issues in SQLite and malloc() is
*very heavily* tested in SQLite.  I suspect that your problem
is that some other part of your program is corrupting the malloc()
heap (perhaps you are writing into space that has been freed)
and it just happens that this problem is discovered by SQLite.
In other words, the problem is not SQLite's fault, SQLite just
happened to be the first library to stumble across it.

Try running valgrind on your program to see where it is going
wrong.

--
D. Richard Hipp  <[EMAIL PROTECTED]>


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] Segmentation fault using sqlite

2007-03-12 Thread Rich Rattanni

I am wondering why my program crashes with a segmentation fault.  This
has only occured once, but it seems to be something with sqlite.  Is
this a known issue or is there anything I can do to further track this
down?


Program terminated with signal 11, Segmentation fault.
#0  0x403cdcb4 in _int_malloc () from /lib/libc.so.6
(gdb) bt
#0  0x403cdcb4 in _int_malloc () from /lib/libc.so.6
#1  0x403cedfc in malloc () from /lib/libc.so.6
#2  0x401c4418 in sqlite3MallocRaw () from /usr/lib/libsqlite3.so.0
#3  0x401c450c in sqlite3StrNDup () from /usr/lib/libsqlite3.so.0
#4  0x401cc070 in sqlite3VdbeChangeP3 () from /usr/lib/libsqlite3.so.0
#5  0x401cc0ac in sqlite3VdbeOp3 () from /usr/lib/libsqlite3.so.0
#6  0x401ac010 in sqlite3CodeSubselect () from /usr/lib/libsqlite3.so.0
#7  0x401ab4b0 in sqlite3ExprCode () from /usr/lib/libsqlite3.so.0
#8  0x401abd00 in sqlite3ExprIfFalse () from /usr/lib/libsqlite3.so.0
#9  0x401d02cc in sqlite3WhereBegin () from /usr/lib/libsqlite3.so.0
#10 0x401bf13c in sqlite3Select () from /usr/lib/libsqlite3.so.0
#11 0x401b6978 in sqlite3Parser () from /usr/lib/libsqlite3.so.0
#12 0x401c12e0 in sqlite3RunParser () from /usr/lib/libsqlite3.so.0
#13 0x47de97e0 in ?? ()
Cannot access memory at address 0x30

-
To unsubscribe, send email to [EMAIL PROTECTED]
-