From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sunjoong Lee Newsgroups: gmane.lisp.guile.user Subject: Re: crash in guile-sqlite3 Date: Wed, 2 May 2012 04:37:41 +0900 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d041825826b610504befeb516 X-Trace: dough.gmane.org 1335901092 31290 80.91.229.3 (1 May 2012 19:38:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 May 2012 19:38:12 +0000 (UTC) Cc: Daniel Krueger To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue May 01 21:38:11 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SPItn-0005wI-J5 for guile-user@m.gmane.org; Tue, 01 May 2012 21:38:11 +0200 Original-Received: from localhost ([::1]:41257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPItm-0006Bj-VI for guile-user@m.gmane.org; Tue, 01 May 2012 15:38:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPIth-0006BZ-RH for guile-user@gnu.org; Tue, 01 May 2012 15:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPItf-0007XZ-TP for guile-user@gnu.org; Tue, 01 May 2012 15:38:05 -0400 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:35271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPItf-0007XP-JY for guile-user@gnu.org; Tue, 01 May 2012 15:38:03 -0400 Original-Received: by werj55 with SMTP id j55so3430744wer.0 for ; Tue, 01 May 2012 12:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=QEnUlhlfCuD2YoVaB21rrODVe+UVQogxxjjQU9uncYk=; b=ddclHeHegl96ajMZMX5VlxEEKi00pZsJrrrnQ3DmhRqjXz+qUj9nNWHRw9iScT5nWi IO323eHg67Xcg2aFuTZC1CmwCf3gRe8sSgbTDnL7nM8QedWlE8d36VpvrgzlwjdzqP8k 9unidMC+v8Jwu2Y38ISRVGUVlI/QrvCgLQ515mNVZu52gf08768ocmjx01ecXGz6Ejt8 0X0UWivUGQNHG6zTZ8pAPUkQkYk4sCj6m4q9ed2ec6LfRuA/Y8hRO+zOucFTtG6MJ6iY Bz0V76MgLVJDfQtW1fr7BWZFJXbook9oiOsWxyFeWJoP9DUOxEfWc5D5omGpZAXewlwf Fh/Q== Original-Received: by 10.180.105.194 with SMTP id go2mr7469384wib.22.1335901081526; Tue, 01 May 2012 12:38:01 -0700 (PDT) Original-Received: by 10.223.93.206 with HTTP; Tue, 1 May 2012 12:37:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9436 Archived-At: --f46d041825826b610504befeb516 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Daniel and Joonas; 2012/5/1 Daniel Krueger > > (make-pointer (bit-extract (lognot 0) 0 (* 8 (sizeof '*)))) > Good and thank you. I made a new patch based on that. > On Tue, May 1, 2012 at 5:01 PM, Joonas Saraj=C3=A4rvi wr= ote: > >> Replying to myself, I now noticed that the change will not work in a > >> 64-bit computer. My impression is that this is due to the fact that > >> the 5th parameter taken by sqlite3_bind_text function is really a > >> pointer and not an int. On amd64 computers, int are 4 bytes wide while > >> pointers are 8 bytes. > Sorry for my introducing a new bug. In the most platform, pointers are 8 byte unsigned integer. I had thought you would forget making a merge request on gitorious and made a new patch. Joonas, test my new one on your 64-bit computer and/or make a merge request of yours unless it work. --f46d041825826b610504befeb516 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,=C2=A0Daniel and=C2=A0Joonas;

201= 2/5/1 Daniel Krueger <keenbug@= googlemail.com>=C2=A0
(make-pointer (bit-extract (lognot 0) 0 (* 8 (sizeof &= #39;*))))
=C2=A0
Good and thank you.= I made a new patch based on that.

> On Tue, May 1, 2012 at 5:01 PM, Joonas Saraj=C3=A4rvi <address= @hidden> wrote:
>> Replying to myself, I now noticed tha= t the change will not work in a
>> 64-bit computer. My impr= ession is that this is due to the fact that
>> the 5th parameter taken by sqlite3_bind_text function is real= ly a
>> pointer and not an int. On amd64 computers, int are= 4 bytes wide while
>> pointers are 8 bytes.

Sorry for my introducing a new bug. In the most platfor= m, pointers are 8 byte unsigned integer. I had thought you would forget mak= ing=C2=A0a merge request on gitorious and=C2=A0made a new patch.
=
Joonas, test my new one on your=C2=A064-bit computer and/or make=C2=A0= a merge request of yours unless it work.

--f46d041825826b610504befeb516--