[Bug 235649] Re: crash w/tclsh8.5 & tclsqlite3
Witek Mozga
mozga at trimen.pl
Sun Mar 4 18:40:01 UTC 2012
This bug seems still valid in 12.04 beta. I`ve just installed sqlite3
bindings for Tcl and Tcl still cannot find sqlite3
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sqlite3 in Ubuntu.
https://bugs.launchpad.net/bugs/235649
Title:
crash w/tclsh8.5 & tclsqlite3
Status in “sqlite3” package in Ubuntu:
New
Bug description:
Binary package hint: libsqlite3-tcl
This is probably caused by linking against wrong/unsupported libraries.
Maybe sqlite3 uses some internal Tcl API that has changed for tcl8.5.
Maybe libtclsqlite does not work with tcl 8.5.
Here are a couple of symptoms:
$ tclsh8.5
% package require sqlite3
attempt to provide package sqlite3 3.4 failed: package sqlite3 3.4.2 provided instead
# Although an error was thrown (requires a Tcl "catch" to avoid terminating a Tcl script)
# it appears that the sqlite3 package loaded. So, continuing...
% sqlite3 db mydatabase.db
% db eval {select * from PC} values {
parray values
}
can't read "array(ubuntu)": no such element in array
Doing an 'array get values' shows the correct set of key/value pairs
Doing an 'array names values' shows the correct keys >>> with the addition of the supposed key 'ubuntu' <<<
This is incorrect as 'ubuntu' is one of the values of the array, not a key.
I would say that Tcl's internal array is messed up at this point.
When I run my script with wish8.4, it works. Using wish8.5, it crashes after the script does a "SELECT * FROM" one
of my tables in the sqlite3 database.
I've got both tcl/tk 8.4 & 8.5 installed, and both libsqlite-tcl packages.
There should be no problem with multiple libsqlite-tcl packages because Tcl will load the correct libsqlite.so from
the appropriate /usr/lib/tclsqlite directory.
As I mentioned above, perhaps it makes a difference as to which version of the Tcl stub library is used when linking
the sqlite tcl interface library. Just a guess, but since it works with 8.4 but not with 8.5, I'd say that libsqlite-tcl
is not compatible with tcl 8.5.
Add'l info.
The Ubuntu release: Description: Ubuntu 8.04
Release: 8.04
ProblemType: Bug
Architecture: i386
Date: Wed May 28 20:54:58 2008
Dependencies:
libgcc1 1:4.2.3-2ubuntu7
gcc-4.2-base 4.2.3-2ubuntu7
libc6 2.7-10ubuntu3
DistroRelease: Ubuntu 8.04
Package: libsqlite3-tcl 3.4.2-2
PackageArchitecture: i386
ProcEnviron:
PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: sqlite3
Uname: Linux 2.6.24-17-generic i686
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/235649/+subscriptions
More information about the foundations-bugs
mailing list