From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs 25 modules Date: Wed, 26 Oct 2016 05:39:25 +0300 Message-ID: <83oa27vnoj.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477449711 19727 195.159.176.226 (26 Oct 2016 02:41:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2016 02:41:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 26 04:41:46 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzE9w-00048I-1x for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Oct 2016 04:41:44 +0200 Original-Received: from localhost ([::1]:59283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzE9y-00049U-I0 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Oct 2016 22:41:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzE7k-0002vs-Gj for help-gnu-emacs@gnu.org; Tue, 25 Oct 2016 22:39:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzE7h-0004pT-EX for help-gnu-emacs@gnu.org; Tue, 25 Oct 2016 22:39:28 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzE7h-0004pN-BQ for help-gnu-emacs@gnu.org; Tue, 25 Oct 2016 22:39:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1835 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bzE7f-0004xv-NR for help-gnu-emacs@gnu.org; Tue, 25 Oct 2016 22:39:24 -0400 In-reply-to: (message from Joey Ezechiels on Tue, 25 Oct 2016 23:06:57 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111617 Archived-At: > From: Joey Ezechiels > Date: Tue, 25 Oct 2016 23:06:57 +0200 > > But recently I've been trying to get it to work on Linux, and there I just > get completely garbled output in the spot where the log messages should be. > Not even proper text. > Needless to say, the functionality my module is supposed to provide is not > available. > > Just to make sure it is not the dynamic library causing the garbling, I've > created some small programs that use the very same .so/.dylib file as the > Emacs module uses. When I run those programs, they work as they should, > both in Linux and in OS X. > To eliminate another factor: Both on OS X and on Linux I have compiled > Emacs 25 from source with the --with-modules flag passed to the configure > script. > > So my current hypothesis is that somehow Emacs, while built correctly, > doesn't load the module correctly on Linux, but I'm stumped as to what > could cause that. Actually, my first suspect would be that your module doesn't protect its data from GC.