From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Catonano Newsgroups: gmane.lisp.guile.user Subject: Re: segmenation fault Date: Fri, 9 Jun 2017 22:18:40 +0200 Message-ID: References: <20170609.094329.1861758562085707445.post@thomasdanckaert.be> <20170609121834.1eae7cf7@dell.homenet> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1497039546 27790 195.159.176.226 (9 Jun 2017 20:19:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Jun 2017 20:19:06 +0000 (UTC) Cc: guile-user@gnu.org To: Chris Vine Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jun 09 22:19:02 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJQN3-0006wF-G8 for guile-user@m.gmane.org; Fri, 09 Jun 2017 22:19:01 +0200 Original-Received: from localhost ([::1]:56270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJQN8-0002ZO-RQ for guile-user@m.gmane.org; Fri, 09 Jun 2017 16:19:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJQMl-0002YO-EJ for guile-user@gnu.org; Fri, 09 Jun 2017 16:18:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJQMk-0007m4-DN for guile-user@gnu.org; Fri, 09 Jun 2017 16:18:43 -0400 Original-Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:36099) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJQMk-0007ly-70 for guile-user@gnu.org; Fri, 09 Jun 2017 16:18:42 -0400 Original-Received: by mail-wr0-x234.google.com with SMTP id v111so43822309wrc.3 for ; Fri, 09 Jun 2017 13:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2EnNxGthdGe1/rIWclB7psU8KP3ZZcnUSxb7KE4xKd8=; b=qnfaXElsXL93o/E6X62oqIm3d+L/gjoG69+S3SZIW6rZC+i+M0LvnBxBmIw9eWpcMg YCMlkgywuGPcLQBBGUoB/u4PD8LIky8A6hAUMEmg/MjJSyt8n9MeZomyMj6ksWZa5h5S GcZd9fpYIHow2w4KuNluydq9xCSAyWd8UGffCKRuHg6sk/iRNoBFiczMb11fngcP68/v HHzzxHDvvFBSq1WZ1p9tqH75UQiGDHCIWp7aWpEwBMWdwOoWxnX6It2//ihpZ2ObebiT qadjOzHqX5lwsJdvy7xdoR7l7oDmC9DdXBDoHjDYAAmEsSawHfuPJi6p3pRqC0qPbCFm 6FUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2EnNxGthdGe1/rIWclB7psU8KP3ZZcnUSxb7KE4xKd8=; b=i2yQeZwted5JCcE8lpS+xVYzUbykcDNQ57Baj0nenPkRZJ4zwlaxOUDWJi/paMaYEP P8op3B8Hla6hHl8OSkNAcKOdClfVBpFy07NTkGuCDxN85iPxF8CapcBSmf5pKGCBIRT/ RRL2rjTmzIHBTwtoTiwdBHBH0Xc3p1fQizbis4HGPWeMzC4LGHgEqsCs2gxi+CI9JpOB ERyvga4WOIoTBhg5F9UXAoAMYQAlTEMXPmXRtBS5bI2lpoEM+EWpvynqYmktqfHtLwk/ 8uv2oUVYGo4oQ2Q47QDcYl7W8FgNbmhLchBt9J0k07GhJFyUii6EoAr2LEemRRc8U3wf Y5dg== X-Gm-Message-State: AODbwcAdLEHbCtdRmJPpO/1NI5/29242cccQYwe40pDfnRZkpjDvvEsP X6kU3Tt5mkEEOJAkOsom5Z2ZEJ1zzA== X-Received: by 10.80.175.34 with SMTP id g31mr33610789edd.24.1497039520668; Fri, 09 Jun 2017 13:18:40 -0700 (PDT) Original-Received: by 10.80.131.4 with HTTP; Fri, 9 Jun 2017 13:18:40 -0700 (PDT) In-Reply-To: <20170609121834.1eae7cf7@dell.homenet> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::234 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.user:13788 Archived-At: Chris, 2017-06-09 13:18 GMT+02:00 Chris Vine : > On Fri, 9 Jun 2017 10:17:18 +0200 > Catonano wrote: > > 2017-06-09 10:00 GMT+02:00 Amirouche Boubekki > > : > > > > > It's something like (bytevector->pointer (make-vector)) there is a > > > make-double-pointer procedure in guile git > > > > Thank you !! > > > > I took a look at the guile-gcrypt code and I found > > > > (bytevector->pointer (make-bytevector (sizeof '*)) > > > > I was going to write this right now ! > > > > It works ! > > I just called freexl-open and it returned 0 !! > > If you want to manipulate a scheme bytevector at the C level you can > also look at the c-write procedure here for ideas: > https://github.com/ChrisVine/guile-a-sync/blob/master/lib/unix_write.c thanks for the pointer, but I was hoping to pull this off remaining entirely on the Scheme side I don't know if that will be possible, tough; now I have a new poblem, but I'm gonna open a new thread for that Thanks again