[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with guile-sqlite3

From: David Pirotte
Subject: Re: Problems with guile-sqlite3
Date: Fri, 1 Apr 2011 02:33:23 -0300


Just tried guile-sqlite3  - after applying the 2 patches of Detlev - and 
succeeded with

        sqlite-open, sqlite-prepare, sqlite-column-names [and sqlite-close]


        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 #<<sqlite-stmt> pointer: #<pointer 0x89f224…>)
           387:12  1 (#<procedure 90025c0 at sqlite/sqlite3.scm:377:4 (stmt…> …)
        In unknown file:
                   0 (pointer->bytevector #<pointer 0x0> 0 #<undefined> #<un…>)


;; --

Le Thu, 31 Mar 2011 18:18:55 +0200,
Detlev Zundel <address@hidden> a écrit :

> Hi Andy,
> >> 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?
> The attached patches work for me.
> 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?
> Thanks
>   Detlev

reply via email to

[Prev in Thread] Current Thread [Next in Thread]