From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: customizing emacs at compile time (or with dump-emacs?) Date: 22 Feb 2004 08:07:13 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <200402211702.i1LH2B102501@dell3.ma.utexas.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077430597 22258 80.91.224.253 (22 Feb 2004 06:16:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2004 06:16:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 22 07:16:31 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aumuk-00069k-00 for ; Sun, 22 Feb 2004 07:16:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Aumlo-00056K-K0 for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Feb 2004 01:07:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Aumkq-000503-DK for help-gnu-emacs@gnu.org; Sun, 22 Feb 2004 01:06:16 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AumkG-0003y9-3I for help-gnu-emacs@gnu.org; Sun, 22 Feb 2004 01:06:13 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.30) id 1AumkF-0003n2-03 for help-gnu-emacs@gnu.org; Sun, 22 Feb 2004 01:05:39 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Joe Corneli on Sat, 21 Feb 2004 12:58:40 -0600) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:17066 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17066 > From: Joe Corneli > Date: Sat, 21 Feb 2004 12:58:40 -0600 > > How to debug this? Run Emacs under a debugger and when it gets SIGSEGV, look around to see what went wrong. The file etc/DEBUG in the Emacs distro has several hints on debugging Emacs. > Here is the script I used > > #!/bin/sh > MYEMACS=$1 > $MYEMACS --batch \ > --load ~/site-lisp/joes_loads.el \ > --execute "(dump-emacs \"femacs\" \"$MYEMACS\")" Replace $MYEMACS with "gdb $MYEMACS --args", that will run Emacs under GDB.