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: Sun, 25 Aug 2024 15:28:56 +0200 Message-ID: <874j78g293.fsf@pelzflorian.de> References: <87msl6c4lf.fsf@posteo.net> <871q2h3nur.fsf@pelzflorian.de> <20240823205712.2599d0a3@tintin> <87v7zpq58q.fsf@pelzflorian.de> <20240825020904.7e49eb61@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="29535"; 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 Sun Aug 25 15:29:55 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 1siDJa-0007YF-VV for guile-user@m.gmane-mx.org; Sun, 25 Aug 2024 15:29:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siDJ5-00028D-Rj; Sun, 25 Aug 2024 09:29:23 -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 1siDJ3-00027u-Aw for guile-user@gnu.org; Sun, 25 Aug 2024 09:29:21 -0400 Original-Received: from relay.yourmailgateway.de ([46.38.247.119]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siDIp-00030M-5A for guile-user@gnu.org; Sun, 25 Aug 2024 09:29:20 -0400 Original-Received: from mors-relay-8404.netcup.net (localhost [127.0.0.1]) by mors-relay-8404.netcup.net (Postfix) with ESMTPS id 4WsF5D0SKjz81SC; Sun, 25 Aug 2024 15:29:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1724592544; bh=oss8lSW7eyIeUOGkeKKNY790YSdzmn9SxiOk68G9aIY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cbpzyLizdL7zhgx6+oU8IsZevDOMW9DIVCX2sJftzWll7y/NR9u4k0j8D6+a/DgjP 4Qg+t6Hlfg1NKCKlx68OvYxShVJvntm2rmwceDTnV5fo2x2vH6tGBumGdMqGGTn5OU jyouNbGXqUkV/KrWED5NHCr43s6g53NNfwNTwpPPCf5/AFzej9wyHKGTKkfZdvCo4o POmni2fm6RK86e1L4jc19KWlyNDnXwkdZbtdpv2LQoSP4SbluJfr1WvodQJSPA5L0U GCEDYKfeFEjaCvN9JwBrySHwByF8ttHYqZARExt3R9XNc5/LO7IaW3P+EN4U1905Dr hnJRoalpe0XNA== Original-Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8404.netcup.net (Postfix) with ESMTPS id 4WsF5D02Dsz4xCk; Sun, 25 Aug 2024 15:29:04 +0200 (CEST) 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 policy02-mors.netcup.net (Postfix) with ESMTPS id 4WsF5C4qbjz8sZh; Sun, 25 Aug 2024 15:29:03 +0200 (CEST) Original-Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id 5A5D883C0A; Sun, 25 Aug 2024 15:28:57 +0200 (CEST) In-Reply-To: <20240825020904.7e49eb61@tintin> (David Pirotte's message of "Sun, 25 Aug 2024 02:09:04 -0300") X-Rspamd-Queue-Id: 5A5D883C0A X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: 25E8J3i8X3PsLw2Sx6g2Ljs9YrKclQEH9rsKIsjnza7y/GZ2BaynXiTI Received-SPF: pass client-ip=46.38.247.119; 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, 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:19769 Archived-At: Hello David. David Pirotte writes: > Thanks for the nice words - I hope that some day, with the help of > Guix/Nix maintainer(s), we can identify and solve the problem. The other Nix patches for giscanner had been written by Luca Bruno who did work on gobject-introspection itself, although Guix maintainers do know more about Guile, ELF, runpaths and loaders and analyzing memory ranges in /proc/4423/maps. >> 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 ... > > I don't follow you here, in order to run the g-golf test-suite, all > you need to do, in a build tree, is to run 'make check' 'make check' relies on external libraries like GTK for its tests. I had been thinking that testing vfuncs would be easier to understand with a small custom test library instead of GTK. But building such a library is not that easy and I failed to write one. Probably unnecessary if everything were working fine. >> The feedback I can give: guile-zlib in its build system autodetects >> ... > Not sure i want to do this. Yeah, normally there is no need, when using the package. I do not know what Matija did on Nix, because I cannot find any g-golf in Nixpkgs. Currently, on Guix, when building from source disregarding the guix package, one needs to manually rewrite init.scm similar to what the guix package does here [1]. Because /usr/lib is from the host distro, if there even is a host distro, we do rewrite init.scm=E2=80=99s dynamic-link code with a: (define (get lib) ;; Search the library=E2=80=99s /gnu/store/.../lib/....so file-name. (search-input-file inputs (string-append "lib/" lib ".so"))) (let* ((libgi (get "libgirepository-1.0")) (libglib (get "libglib-2.0")) (libgobject (get "libgobject-2.0")) (libg-golf (string-append #$output "/lib/libg-golf"))) (substitute* "g-golf/init.scm" (("libgirepository-1.0") libgi) (("libglib-2.0") libglib) (("libgobject-2.0") libgobject) >> Could you document this purpose of vfunc-checks in >> g-golf/hl-api/vfunc.scm? > > Not in any foreseen future. Okay. But thank you for teaching here that vfunc-checks doesn=E2=80=99t ch= eck our Scheme vfuncs. Regards, Florian [1] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/guile-xyz.= scm#n2480