Re: crash in guile-sqlite3

2012-05-01 Thread Joonas Sarajärvi
Hello, 2012/5/1 Sunjoong Lee : > Joonas, test my new one on your 64-bit computer and/or make a merge request > of yours unless it work. > I tried it now, and the version in commit c55adf43a8c0e59706f40e65a07d457d60e55a83 seems to work fine in computers of different sizes of pointer widths. -Joo

Re: crash in guile-sqlite3

2012-05-01 Thread Sunjoong Lee
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ärvi wrote: > >> Replying to myself, I now noticed that the change will not work

Re: crash in guile-sqlite3

2012-05-01 Thread Daniel Krueger
Oh, I'm sorry, I missed the fact that all bits in the pointer would be set. Correct would be this: (make-pointer (bit-extract (lognot 0) 0 (* 8 (sizeof '* So, okay, this may not be a better solution :D - Daniel On Tue, May 1, 2012 at 5:05 PM, Daniel Krueger wrote: > Hi, > > I just wanted t

Re: crash in guile-sqlite3

2012-05-01 Thread Daniel Krueger
Hi, I just wanted to note that it should work just to use (make-pointer #xff). - Daniel On Tue, May 1, 2012 at 5:01 PM, Joonas Sarajärvi wrote: > 2012/5/1 Joonas Sarajärvi : > >> However, thank you for taking a look at the problem. The change you >> placed at >> git://gitorious.org/~sunjoong/g

Re: crash in guile-sqlite3

2012-05-01 Thread Joonas Sarajärvi
2012/5/1 Joonas Sarajärvi : > However, thank you for taking a look at the problem. The change you > placed at > git://gitorious.org/~sunjoong/guile-sqlite3/sunjoongs-guile-sqlite3.git > seems to completely resolve the crash for me. > > -Joonas Replying to myself, I now noticed that the change wi

Re: crash in guile-sqlite3

2012-05-01 Thread Joonas Sarajärvi
2012/4/29 Sunjoong Lee : > Hi, Joonas; > > Yesterday, David said simple solution of yours. I think I found the case > of segfault. > Hello, Sorry for having been so inactive in this thread, despite starting it. Other life activities pretty much took the whole weekend. However, thank you for taki

Re: crash in guile-sqlite3

2012-04-30 Thread Sunjoong Lee
Hi, Andy; Where is a "request a pull" button? I tried somethings; one of them makes 3e2add75. I don't know what's exactly work but https://gitorious.org/guile-sqlite3 display "sunjoong committed 3e2add75 on April 30, 2012 13:23". Now, the time to "pull request." 2012/4/30 Andy Wingo > > What it

Re: crash in guile-sqlite3

2012-04-30 Thread Andy Wingo
On Mon 30 Apr 2012 12:32, Sunjoong Lee writes: > 2012/4/30 Andy Wingo > > Would you mind sending a pull request on gitorious?  Preferably we could > add a test case too. > >  I apologize for my poor english; I'm willing to "send a pull request on > gitorious" but don't know what means t

Re: crash in guile-sqlite3

2012-04-30 Thread Sunjoong Lee
2012/4/30 Andy Wingo > > Would you mind sending a pull request on gitorious? Preferably we could > add a test case too. > I apologize for my poor english; I'm willing to "send a pull request on gitorious" but don't know what means that sentence. Joonas had reported that Segmentation fault cras

Re: crash in guile-sqlite3

2012-04-30 Thread Andy Wingo
On Sun 29 Apr 2012 03:58, Sunjoong Lee writes: > Yesterday, David said simple solution of yours. I think I found the case > of segfault. Nice! Would you mind sending a pull request on gitorious? Preferably we could add a test case too. Cheers, Andy -- http://wingolog.org/

Re: crash in guile-sqlite3

2012-04-28 Thread Sunjoong Lee
Hi, Joonas; Yesterday, David said simple solution of yours. I think I found the case of segfault. ## cut here ## --- sqlite3.scm.old 2012-01-24 00:22:10.0 +0900 +++ sqlite3.scm 2012-04-29 10:37:37.999722092 +0900 @@ -284,11 +284,11 @@ (let ((bind-blob (pointer->procedur

Re: crash in guile-sqlite3

2012-04-27 Thread David Pirotte
hello, > ... >(stmt (sqlite-prepare db "INSERT INTO foos(name) VALUES(?);"))) i'd rather bind the statment in scheme _anyway_ if i was you. david ;; -- (use-modules (sqlite3)) (define db (sqlite-open "ex0.db")) (define (sqlite/command db command) (let ((stmt (sqlite-prepare db comm

Re: crash in guile-sqlite3

2012-04-27 Thread David Pirotte
Hi, > I mean a example code of Joonas Sarajärvi, > http://paste.pocoo.org/show/587676/ , produces a Segmentation fault on > Guile 2.0.5 too. I though what if a integer. In the integer case, there is > no Segmentation fault. Here is a diff of my test code from Joonas's: the paste seems unavalaibl

Re: crash in guile-sqlite3

2012-04-27 Thread Sunjoong Lee
Hi, David; 2012/4/28 David Pirotte > > Best would be to send us an small, complete and concise example of you > consider > reproducible, could you d that ? > I mean a example code of Joonas Sarajärvi, http://paste.pocoo.org/show/587676/ , produces a Segmentation fault on Guile 2.0.5 too. I thoug

Re: crash in guile-sqlite3

2012-04-27 Thread David Pirotte
Hi, > > I tried to run guile in gdb to get a backtrace from the crash. The > > segfault seems to be triggered inside libsqlite3 code, but I could not > > ... > Same crash on Guile 2.0.5. It looks like string encoding problem. Suppose > name be an integer not a string like 10, it would not crash.

Re: crash in guile-sqlite3

2012-04-26 Thread rixed
-[ Thu, Apr 26, 2012 at 05:04:23PM -0400, Noah Lavine ] > > I use it daily and it's working allright. > > I'd have a closer look to the libffi you used to compile guile > > if I were you. > > What version of Guile do you use it with? 2.0.2.224-b1a52-dirty compiled with libffi 5.0.10

Re: crash in guile-sqlite3

2012-04-26 Thread Sunjoong Lee
Hi, Joonas; 2012/4/26 Joonas Sarajärvi > > I tried to run guile in gdb to get a backtrace from the crash. The > segfault seems to be triggered inside libsqlite3 code, but I could not > really get much useful information from it. I am thus writing here to > ask if someone else has more insight on

Re: crash in guile-sqlite3

2012-04-26 Thread Noah Lavine
> I use it daily and it's working allright. > I'd have a closer look to the libffi you used to compile guile > if I were you. What version of Guile do you use it with? Just curious if it's different than 2.0.2 or 2.0.5.

Re: crash in guile-sqlite3

2012-04-26 Thread rixed
> Is guile-sqlite3 actually in such a shape that it might be useful for > curious testers? I use it daily and it's working allright. I'd have a closer look to the libffi you used to compile guile if I were you.

crash in guile-sqlite3

2012-04-26 Thread Joonas Sarajärvi
Hello, Some time ago, I noticed that there is a nice-looking libsqlite3 wrapper for Guile available at [1]. I am now trying to use it, but the short example program I wrote seems to cause guile to crash in certain places where sqlite-finalize is called. I tried to run guile in gdb to get a backtr