From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: G-Golf - Callback segmentation fault Date: Mon, 2 Sep 2024 22:01:54 -0300 Message-ID: <20240902220154.54e2f1ac@tintin> References: <87msl6c4lf.fsf@posteo.net> <20240821212129.7647d035@tintin> <87a5gxybgm.fsf@posteo.net> <20240828211805.68f594a7@tintin> <87cylo8xc4.fsf@posteo.net> <20240902181854.2017f1fc@tintin> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/nNZghtWILMj0P4ksGyAKPbc"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Matija Obid Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Sep 03 03:02:45 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1slHwS-0009Pc-TM for guile-user@m.gmane-mx.org; Tue, 03 Sep 2024 03:02:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slHvx-00069d-Jr; Mon, 02 Sep 2024 21:02:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slHvv-000693-GC for guile-user@gnu.org; Mon, 02 Sep 2024 21:02:11 -0400 Original-Received: from pop.all2all.org ([79.99.200.14] helo=moses.all2all.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slHvt-0003Mi-E9 for guile-user@gnu.org; Mon, 02 Sep 2024 21:02:11 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by moses.all2all.org (Postfix) with ESMTP id DFE6667C007B; Tue, 3 Sep 2024 03:02:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at moses.all2all.org Original-Received: from moses.all2all.org ([127.0.0.1]) by localhost (moses.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R0755qhCZYuz; Tue, 3 Sep 2024 03:02:03 +0200 (CEST) Original-Received: from tintin (unknown [168.227.187.136]) by moses.all2all.org (Postfix) with ESMTPSA id 625CB67C007A; Tue, 3 Sep 2024 03:02:02 +0200 (CEST) In-Reply-To: <20240902181854.2017f1fc@tintin> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=79.99.200.14; envelope-from=david@altosw.be; helo=moses.all2all.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19778 Archived-At: --Sig_/nNZghtWILMj0P4ksGyAKPbc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi again, > ... > > I still wonder where is the problem, in Guile, G-Golf or > > gobject-introspection (which according to [2] should not be a > > problem). =20 > Definitely not a g-golf bug. Unless the code used by g-golf to make the ffi-cif would need to be adapted, i don't know, but one thing is for sure though, the g-golf made cif is checked, calling ffi_prep_cif [1], and that procedure would raise a exception unless the returned status is 0. Cheers, David Fwiw, this is in =09 libg-golf/gg-ffi.c gg_ffi_prep_cif the scheme call in (g-golf support ffi) ffi-prep-cif which when preparing a callback is used in (g-golf hl-api callback) callback-ffi-cif --Sig_/nNZghtWILMj0P4ksGyAKPbc Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmbWYAIACgkQ83T9k6MF etfqdQf/cvJoNp5cgm0InY3ASxOj4pfDi/vLyqbmF96ab/hrYHV6ubwq1SQGm3Jh NBAXQJJ6PG9OSl8aDYoGU/QeJjGGlxDGMdRc2fk3npwkueJ5WeuTWlBmdzn2HyG+ 5F6rWK5UuGxlL/AwIJFCA0SpXfnZoiY8ypmpq4Lhbd+A7qi9MDOppyGsL1RBHOYX stY+g8zlCj3c1tmAtbx6Y52Y/QVuyZjUlzmNwuqGLnCDZdtEegz75D7PH9dYYZAT uBFvH2ckBmWoZa0tB/VltlPJphu65gRGZ9S3pEpkQZoxjTHwc4MbS9tuzn6J/9QP tijNtT3YBTxvEWGSC2MvrAGB2nuZLQ== =xMGF -----END PGP SIGNATURE----- --Sig_/nNZghtWILMj0P4ksGyAKPbc--