From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matija Obid Newsgroups: gmane.lisp.guile.user Subject: G-Golf - Callback segmentation fault Date: Wed, 21 Aug 2024 14:50:36 +0000 Message-ID: <87msl6c4lf.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25362"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Aug 21 16:51:22 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 1sgmgE-0006Ji-4Z for guile-user@m.gmane-mx.org; Wed, 21 Aug 2024 16:51:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgmfg-00087Y-3e; Wed, 21 Aug 2024 10:50:48 -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 1sgmfd-0007wP-8N for guile-user@gnu.org; Wed, 21 Aug 2024 10:50:46 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgmfa-0007uL-QP for guile-user@gnu.org; Wed, 21 Aug 2024 10:50:44 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D3F2C240028 for ; Wed, 21 Aug 2024 16:50:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1724251837; bh=LjgTALur5RoqAla1bMKruBFI71zr6MBEm4s0lU+i+bo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=EFIY/qcngnkiq7JdSo0bVeY2E9HeERefWMQWdiAZutFDVEc3BkFNi6iB3gtzKUIH5 Zf8WrAr5wtOkRMShHpQrfH/ZxMysqUwzrhHSC53jynyFJ/rO+TlyO2WvwSYqQmnSHi RKPVR56E7aakYA1CZsgwTk6KuvEaCzYAZ3DMw0HZhEh/hQfOWlrTjKGZW4hsXj2F8S xp3bQE7g5WYxf0N9/CAdB3fhQ9b9J6wVWkA1EYUYlBT48+A9Bb8l+CaIC+U3KkAY+o MAi8H0++vX1JQ/hG0+lhG4Fagy8G1sgKDOwug3J6J+7kzPM4ZKV+9kKkM3Gjugzr6/ LsJlom1yq5RIg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Wpq593KnBz6tvm for ; Wed, 21 Aug 2024 16:50:37 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.65; envelope-from=matija.obid@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:19763 Archived-At: --=-=-= Content-Type: text/plain Hello, I'm facing the problem mentioned in [1]. Problematic are all examples with virtual methods. I have tried simpler example (attached) with same result. There is no problem, when try same thing with guile-gi library. Somehow, callbacks are not callable back from C code. Any clue? I'm using Nix. [1] https://lists.gnu.org/archive/html/guile-user/2024-05/msg00013.html --=-=-= Content-Type: application/octet-stream; charset=utf-8 Content-Disposition: attachment; filename=golf-drawing Content-Transfer-Encoding: base64 Content-Description: golf-drawing.scm IyEgL2Jpbi9zaAojIC0qLSBtb2RlOiBzY2hlbWU7IGNvZGluZzogdXRmLTggLSotCmV4ZWMgZ3Vp bGUgLWUgbWFpbiAtcyAiJDAiICIkQCIKISMKCihnYy1kaXNhYmxlKQoKKGV2YWwtd2hlbiAoZXhw YW5kIGxvYWQgZXZhbCkKICAodXNlLW1vZHVsZXMgKG9vcCBnb29wcykpCgogIChkZWZhdWx0LWR1 cGxpY2F0ZS1iaW5kaW5nLWhhbmRsZXIKICAgICcobWVyZ2UtZ2VuZXJpY3MgcmVwbGFjZSB3YXJu LW92ZXJyaWRlLWNvcmUgd2FybiBsYXN0KSkKCiAgKHVzZS1tb2R1bGVzIChnLWdvbGYpKQoKICAo Zy1pcmVwb3NpdG9yeS1yZXF1aXJlICJHdGsiICM6dmVyc2lvbiAiNC4wIikKICAoZm9yLWVhY2gg KGxhbWJkYSAobmFtZSkKICAgICAgICAgICAgICAoZ2ktaW1wb3J0LWJ5LW5hbWUgIkd0ayIgbmFt ZSkpCgkJCScoIkFwcGxpY2F0aW9uV2luZG93IgoJCQkgICJBcHBsaWNhdGlvbiIKCQkJICAiRHJh d2luZ0FyZWEiKSkpCgooZGVmaW5lIChhY3RpdmF0ZSBhcHApCiAgKGxldCogKCh3aW5kb3cgKG1h a2UgPGd0ay1hcHBsaWNhdGlvbi13aW5kb3c+CiAgICAgICAgICAgICAgICAgICAjOmFwcGxpY2F0 aW9uIGFwcAogICAgICAgICAgICAgICAgICAgIzpkZWZhdWx0LXdpZHRoIDk2MAogICAgICAgICAg ICAgICAgICAgIzpkZWZhdWx0LWhlaWdodCA1NDAKICAgICAgICAgICAgICAgICAgICM6dGl0bGUg IlRpdGxlIikpCgkJIChkcmF3aW5nLWFyZWEgKG1ha2UgPGd0ay1kcmF3aW5nLWFyZWE+KSkpCgko c2V0LWNoaWxkIHdpbmRvdyBkcmF3aW5nLWFyZWEpCgkoc2V0LWRyYXctZnVuYyBkcmF3aW5nLWFy ZWEKCQkJCSAgIChsYW1iZGEgKGFyZWEgY3IgdyBoIGQpCgkJCQkJIChkaXNwbGF5ICJJJ20gaW4h IikKCQkJCQkgKGZvcmNlLW91dHB1dCkpCgkJCQkgICAjZgoJCQkJICAgKGxhbWJkYSBfICNmKSkK ICAgIChzaG93IHdpbmRvdykpKQoKKGRlZmluZSAobWFpbiBhcmdzKQogIChsZXQgKChhcHAgKG1h a2UgPGd0ay1hcHBsaWNhdGlvbj4KICAgICAgICAgICAgICAgIzphcHBsaWNhdGlvbi1pZCAibG9j YWwuZXhhbXBsZS5EcmF3aW5nQXJlYSIpKSkKICAgIChjb25uZWN0IGFwcCAnYWN0aXZhdGUgYWN0 aXZhdGUpCiAgICAobGV0ICgoc3RhdHVzIChnLWFwcGxpY2F0aW9uLXJ1biBhcHAgYXJncykpKQog ICAgICAoZXhpdCBzdGF0dXMpKSkpCg== --=-=-= Content-Type: text/plain -- Regards, Matija --=-=-=--