From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.devel Subject: Re: Problems with guile-sqlite3 Date: Fri, 1 Apr 2011 02:33:23 -0300 Message-ID: <20110401023323.32041242@rascar> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1301636029 30401 80.91.229.12 (1 Apr 2011 05:33:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2011 05:33:49 +0000 (UTC) Cc: Andy Wingo , guile-devel@gnu.org To: Detlev Zundel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 01 07:33:45 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5WzQ-0000sW-MS for guile-devel@m.gmane.org; Fri, 01 Apr 2011 07:33:44 +0200 Original-Received: from localhost ([127.0.0.1]:58293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5WzQ-0005q0-24 for guile-devel@m.gmane.org; Fri, 01 Apr 2011 01:33:44 -0400 Original-Received: from [140.186.70.92] (port=41008 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5WzL-0005ma-0h for guile-devel@gnu.org; Fri, 01 Apr 2011 01:33:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5WzJ-0004Ww-8F for guile-devel@gnu.org; Fri, 01 Apr 2011 01:33:38 -0400 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:54817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5WzJ-0004WQ-3l for guile-devel@gnu.org; Fri, 01 Apr 2011 01:33:37 -0400 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 59174A04C161; Fri, 1 Apr 2011 07:33:34 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id Rji1lj0CCj1Q; Fri, 1 Apr 2011 07:16:57 +0200 (CEST) Original-Received: from rascar (unknown [189.60.162.71]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id B521DA04C17E; Fri, 1 Apr 2011 07:33:26 +0200 (CEST) In-Reply-To: X-Mailer: Claws Mail 3.7.8 (GTK+ 2.20.1; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.58.108.13 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12131 Archived-At: Hello, Just tried guile-sqlite3 - after applying the 2 patches of Detlev - and su= cceeded with sqlite-open, sqlite-prepare, sqlite-column-names [and sqlite-close] but scheme@(guile-user)> (sqlite-step stmt) ERROR: In procedure pointer->bytevector: ERROR: In procedure pointer->bytevector: null pointer dereference Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In sqlite/sqlite3.scm: 408:29 2 (sqlite-row #< pointer: #) 387:12 1 (# =E2=80=A6) In unknown file: 0 (pointer->bytevector # 0 # #) Cheers, David ;; -- Le Thu, 31 Mar 2011 18:18:55 +0200, Detlev Zundel a =C3=A9crit : > Hi Andy, >=20 > >> Indeed, there's no null-termination on this string. I guess we need to > >> copy into a bytevector that is longer and provide a NUL byte. Want to > >> patch that one too? >=20 > The attached patches work for me. >=20 > As a followup I'd really like to put a few statments into tests below > test/. Can anyone point me to what functions (i.e. assert,...) I should > use in such tests? >=20 > Thanks > Detlev