Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sqlite3 causes segmentation fault on Mac OS 10.6 using kitgen tclkit

153 views
Skip to first unread message

PaulWalton

unread,
Apr 23, 2012, 6:00:44 AM4/23/12
to
This is on a fresh 10.6 Snow Leopard install of Mac OS X. I'm using
this to generate the tclkit:

./kbs.tcl -r -mk-cli install kbskit8.5

I've tried many different options and all have the same effect with
sqlite3.

After running the interpreter, trying to load and use tclsqlite3
(version 3.6.12, installed by default on Mac OS 10.6) causes a
segmentation fault:

% info patchlevel
8.5.11
% load /System/Library/Tcl/sqlite3/libtclsqlite3.dylib
% sqlite3
alloc: invalid block: 0x1001329f8: 0 0
Abort trap


Running the default Mac installation of Tcl and loading sqlite3 works
fine:
pw:~: tclsh
% info patchlevel
8.5.7
% load /System/Library/Tcl/sqlite3/libtclsqlite3.dylib
% sqlite3
wrong # args: should be "sqlite3 HANDLE FILENAME ?-vfs VFSNAME? ?-
readonly BOOLEAN? ?-create BOOLEAN? ?-nomutex BOOLEAN? ?-fullmutex
BOOLEAN?"


What am I missing?

PaulWalton

unread,
Apr 23, 2012, 7:18:20 AM4/23/12
to
While I still have no idea of the cause of this, I have found a
solution. And that is to simply download and compile the latest
tclsqlite3 release (3.7.11) and use that.

rene

unread,
Apr 24, 2012, 1:59:11 AM4/24/12
to
> > What am I missing?
May be thread/unthreaded builds?
There can be other differences in the compile steps.
Sorry, but I can only guess because I don't have a mac.
Still I'm surprised it works on the mac:)
Thanks go to the tcl core and TEA developers.

> While I still have no idea of the cause of this, I have found a
> solution. And that is to simply download and compile the latest
> tclsqlite3 release (3.7.11) and use that.
You know you could also use the provided sqlite from kbskit?
./kbs.tcl install sqlite*

Regards
rene
0 new messages