From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "pelzflorian (Florian Pelz)" Newsgroups: gmane.lisp.guile.user Subject: Re: G-Golf - Callback segmentation fault Date: Sat, 24 Aug 2024 18:01:57 +0200 Message-ID: <87v7zpq58q.fsf@pelzflorian.de> References: <87msl6c4lf.fsf@posteo.net> <871q2h3nur.fsf@pelzflorian.de> <20240823205712.2599d0a3@tintin> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27805"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Matija Obid , guile-user@gnu.org To: David Pirotte Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Aug 24 18:02:53 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 1shtE5-00071P-0b for guile-user@m.gmane-mx.org; Sat, 24 Aug 2024 18:02:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shtDb-0001XB-VQ; Sat, 24 Aug 2024 12:02:24 -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 1shtDZ-0001WJ-O9 for guile-user@gnu.org; Sat, 24 Aug 2024 12:02:21 -0400 Original-Received: from relay.yourmailgateway.de ([194.59.206.189]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shtDU-0005JP-SH for guile-user@gnu.org; Sat, 24 Aug 2024 12:02:21 -0400 Original-Received: from relay02-mors.netcup.net (localhost [127.0.0.1]) by relay02-mors.netcup.net (Postfix) with ESMTPS id 4WrhXL4wBWz45G7; Sat, 24 Aug 2024 18:02:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1724515330; bh=1bxTBRm0Wb7IFofnvXEap75XOY6KlG3ewHcKugv8Ojs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=A3O9aAIVA+6Wsd4p2w4uplRp0PBxTNbwK82yjv4mDa6dQ2pfht2OqA59nAyvEPGBv 4aCwoMwoqPk9hQ0AOLdK7JdZNP+kRQxWxuuNE/msvnAmT2m1Gxqwawa/iAhtpPdJNs atbKg/nYgEjViuHn3sC7+jfOru7AbTO3Jfmaq0alyAvwJCX/YSnUFwTpOULKS2sJZl PcR2wp1HyegzfrGzTvM7n8XrkvUndGnn6D4xtDcu2c390KQUbrOzaaREiXrOWAC0r4 5VDuNqyYYEvZ4ea4qRd+6U3/lQbbMmVbDSXaAOcq8d8YuH7dqvVHcuyGa07Y30fEtm fc5YVUrcc61kw== Original-Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by relay02-mors.netcup.net (Postfix) with ESMTPS id 4WrhXL4V2Fz7x3X; Sat, 24 Aug 2024 18:02:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net Original-Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4WrhXG0wgVz8sfD; Sat, 24 Aug 2024 18:02:06 +0200 (CEST) Original-Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id 5157F82D3F; Sat, 24 Aug 2024 18:01:58 +0200 (CEST) In-Reply-To: <20240823205712.2599d0a3@tintin> (David Pirotte's message of "Fri, 23 Aug 2024 20:57:12 -0300") X-Rspamd-Queue-Id: 5157F82D3F X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: gvIB2ndcP70v5Mcayne7kOg+Wcgs5b/AU+LAsRNpw24BB3JpaXi2drcx Received-SPF: pass client-ip=194.59.206.189; envelope-from=pelzflorian@pelzflorian.de; helo=relay.yourmailgateway.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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:19767 Archived-At: Hello David. Thank you for this important groundwork that g-golf is. Sorry to say, I have not developed any GUI and had no time as planned. It will not happen with me. But Debian is not the problem; all is fine there (unlike G-Golf on Guix on Debian). I also failed to put a libg-golf-tests library to actually test gobject libraries in g-golf=E2=80=99s tests and link it with libtool, but it never worked, because autotools does not support linking for tests and all libtool executing would have to be done manually. The feedback I can give: guile-zlib in its build system autodetects the location of its needed libz library in configure.ac as LIBZ_LIBDIR, substitutes that in a config.scm.in module and calls (dynamic-link %libz) on that path. If you made g-golf/init.scm do this, it would be easy on Guix/Nix to build from source. David Pirotte writes: > As i did suggest already, you should ask for some guix highly > knowledgeable designer/developer (and who deeply knows the other > involved domains, C, guile's ffi implementation, dynamic libs linking > ...) - I'd happily stand corrected, and happily patch g-golf if ... but > till proved wrong, i don't think it is a g-golf problem. I=E2=80=99m missing an entry point to debug if the problem is and do not understand typelibs, except I see the giscanner part of gobject-introspection needed Nix-/Guix-specific patches: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/gobjec= t-introspection-absolute-shlib-path.patch https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/libra= ries/gobject-introspection/absolute_shlib_path.patch which I cannot understand at the moment. I suspect you=E2=80=99d need simi= lar work. Then, I see on docs.gtk.org there is a girepository 3.0 (likely a typo and meant to say 2.0) migration which will make it hard to try the latest girepository version with g-golf, but also, no version of girepository 2.0 is packaged for guix anyway. It seems much movement is being done there under gobject-introspection=E2=80=99s hood. >> Intermittently I once saw a different error: >> ... > > I can't make sense of this error, but so you know, vfunc-checks checks > that the (upstream lib) virtual function you are trying to define in > g-golf exists in the class you are 'altering', and also checks that the > scheme virtual function name is correct [1] So indeed you regard it as unrelated, too. I tried but wasn=E2=80=99t able= to make any reproducer, because the issue happened no longer; it did not happen in container isolation. But the problematic build, that I did not keep, was isolated. Could you document this purpose of vfunc-checks in g-golf/hl-api/vfunc.scm? Clearly you have put a lot of glib introspection knowledge in the g-golf implementation that an outsider would understand only with IRC help. But it=E2=80=99s the same for gobject-introspection itself. > So it disappeared and you can't reproduce it, let's concentrate on > the (g-golf) virtual function definition bug in Nix/Guix ... Yes, this is the only real annoyance. Regards, Florian