From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Basile Starynkevitch Newsgroups: gmane.emacs.help Subject: Re: Fwd: Fails to bring up a back trace Date: Thu, 30 Nov 2023 10:47:36 +0100 Message-ID: <9e93e315-10a9-46e0-ba8d-11d4d392d7ae@starynkevitch.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1058"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: gnu.emacs.help@gnu.org To: tomas@tuxteam.de, Davin Pearson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 30 10:48:43 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1r8df1-00005b-KU for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Nov 2023 10:48:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8deS-0000uA-TQ; Thu, 30 Nov 2023 04:48:10 -0500 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 1r8deK-0000tk-J0 for help-gnu-emacs@gnu.org; Thu, 30 Nov 2023 04:48:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8deJ-0004ym-QN for help-gnu-emacs@gnu.org; Thu, 30 Nov 2023 04:48:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by fencepost.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8deC-0005cm-8m for gnu.emacs.help@gnu.org; Thu, 30 Nov 2023 04:47:59 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8de6-0004mw-Dd for gnu.emacs.help@gnu.org; Thu, 30 Nov 2023 04:47:48 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 610F01C0008; Thu, 30 Nov 2023 09:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starynkevitch.net; s=gm1; t=1701337657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WiicEHNS2pTKoVajimuHV6vbBsiPcYZwv0VvfvTWOdI=; b=hF1kFvVcmwGlvPgYjSMusJRgmqGXoRViXfiSwhjP6pCzTCzaWANW5/pxlMeKvCh1eDl5zE FqfTrVaVbh+H6e6yhNDgOR4OJMe5liL1VGUmtBgi65ocA7qUi6gHNmjvVpCJGFSDB8iJjg qCznVaiaQJB/Ii3erZvTT0hlmSx7v+6I3ASItfbYjUR4jTCTKFKRmxk2IKV1O4fFA7pK1E /6TlqLx68m/RYtOKSvsXdnAmuU/AXQh2VDN8YQF9RDV7p/wk1h1XoG8y4G6XYzWl50hLPn A3sYUyon1HA9d86c2YMnZQEiMXLN7gKmE/cE+RMSCI4bfpOPvExxUu1Lg1k0NQ== Content-Language: en-US In-Reply-To: X-GND-Sasl: basile@starynkevitch.net Received-SPF: pass client-ip=217.70.183.197; envelope-from=basile@starynkevitch.net; helo=relay5-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145586 Archived-At: On 11/30/23 05:58, tomas@tuxteam.de wrote: > On Thu, Nov 30, 2023 at 10:43:45AM +1300, Davin Pearson wrote: > > [...] > >> Yet it fails to bring up an error backtrace. > I fear this is too scant a context to feed educated guesses. But > this, at least, looks wrong to me: > >> I also tried the following command: >> >> emacs --geometry 2048x1024 --eval "(setq debug-on-error)" --debug-init & > ... it should be "(setq debug-on-error t)". A possible approach to backtracking on Linux might be to improve or enhance GNU emacs to use Ian Taylor's libbacktrace open source library. The libbacktrace source code is on https://github.com/ianlancetaylor/libbacktrace On Linux, mixing that library with the dladdr function (see https://man7.org/linux/man-pages/man3/dladdr.3.html) gives human readable backtraces. And this is used both in recent GCC compilers (see https://gcc.gnu.org/ - the source code of libbacktrace is incorporated in GCC 13...) and in the RefPerSys open source inference engine project on https://github.com/RefPerSys/RefPerSys/ It seems that the latest GNU emacs snapshot commit e87644baa3239ce5 is using GNU libc backtracing functions, but not (like GCC does) the libbacktrace from Ian Taylor. For details, contact me (Basile Starynkevitch, in France near Paris) by email to basile@starynkevitch.net Regards -- Basile Starynkevitch (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/