From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: changed dlopen flags in dynlib.c, gccemacs crash Date: Sat, 11 Dec 2021 20:23:48 +0200 Message-ID: <83tuffov9n.fsf@gnu.org> References: <83tufjw848.fsf@gnu.org> <83lf0uuqaq.fsf@gnu.org> <83o85nr1mm.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17606"; mail-complaints-to="usenet@ciao.gmane.io" Cc: silent2600@gmail.com, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 11 19:25:25 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mw73l-0004Mn-1o for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Dec 2021 19:25:25 +0100 Original-Received: from localhost ([::1]:39852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mw73j-0001tp-Im for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Dec 2021 13:25:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw72M-0001BL-IY for emacs-devel@gnu.org; Sat, 11 Dec 2021 13:23:58 -0500 Original-Received: from [2001:470:142:3::e] (port=36284 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw72M-00027s-9d; Sat, 11 Dec 2021 13:23:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=U8kS8kxLPcq4dU0PIgNjyizpXFiXJ76vkQs1OTTzI0M=; b=QFoO31jFl4ul jhZAfubWju3j98/vefn5e49JP9ZNl5pWoRVj1c+vZbJ1vOZ3/BhhakfuHGFJrn03JyY4irpDNM5DK ZwFMsNDP3YNyKW2OsnmkWqtSExzoMHA46iDzG3KMBNj6F/7eNSil2C62sxhx53YlklMkd87nxtv+s Csb8J9J3wbOPjWfyHtaw8XieHnElq8K+KziNRPM6xDNgXVctlAp6O0pQt+59jvfL0r5FxRHSW98DN KgOPsG4Sa5idozWmbuCebyKu5mQ0ZvXDXlBHTuMQeE+X95UxiX1Fg+KjIEJQElC3ObLnMinJ406vQ Y4Gk+B5oZG4qoVw+V8uOrg==; Original-Received: from [87.69.77.57] (port=4867 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw72M-0008Rb-3P; Sat, 11 Dec 2021 13:23:58 -0500 In-Reply-To: (message from Andrea Corallo on Sat, 11 Dec 2021 18:09:56 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281699 Archived-At: > From: Andrea Corallo > Cc: hx , emacs-devel@gnu.org > Date: Sat, 11 Dec 2021 18:09:56 +0000 > > > So at this point, I think this bug report should be treated as > > "wishlist", i.e. a feature request: to support RTLD_GLOBAL in dynlib > > with native-comp. Andrea, is that feasible, and if so, what would it > > entail? > > Hi Eli, > > yes, I think once we have verified the issue is what we suspect we could > dlopen eln files as before and have RTLD_GLOBAL added for the other > cases. > > I'll have a look into next week and report on the feature request. Thanks. One (unchecked) idea is to use 2 different versions of dynlib_open: one for loading *.eln files, the other for every other kind of dynamic loading.