From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs for GNUstep Date: Wed, 09 Jul 2014 11:34:23 +0200 Message-ID: <53BD0C9F.6070003@swipnet.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1404898494 31091 80.91.229.3 (9 Jul 2014 09:34:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2014 09:34:54 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 09 11:34:47 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X4oH0-0006Rb-7u for ged-emacs-devel@m.gmane.org; Wed, 09 Jul 2014 11:34:46 +0200 Original-Received: from localhost ([::1]:59541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4oGy-0003D2-Qm for ged-emacs-devel@m.gmane.org; Wed, 09 Jul 2014 05:34:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4oGp-0003C9-0Y for emacs-devel@gnu.org; Wed, 09 Jul 2014 05:34:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4oGg-00036C-8O for emacs-devel@gnu.org; Wed, 09 Jul 2014 05:34:34 -0400 Original-Received: from mailfe02.swip.net ([212.247.154.33]:50799 helo=swip.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4oGg-00035j-2O for emacs-devel@gnu.org; Wed, 09 Jul 2014 05:34:26 -0400 X-T2-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_20 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 516111839; Wed, 09 Jul 2014 11:34:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.247.154.33 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172910 Archived-At: Hi. 2014-07-09 04:25, Stefan Monnier skrev: > > I just tried to build Emacs for GNUstep under Debian (from trunk). > The configure and build worked smoothly, but when I try to run the > executable I get a seg-fault: > > Program received signal SIGSEGV, Segmentation fault. > 0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4 > (gdb) bt > #0 0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4 > #1 0x081e8028 in x_set_window_size (f=0x877a0d0, change_grav=142057680, > width=14, height=70, pixelwise=120) at nsterm.m:1382 > #2 0x00000000 in ?? () > > Lisp Backtrace: > "x-create-frame" (0xffffcb28) > "x-create-frame-with-faces" (0xffffccb8) > "make-frame" (0xffffce48) > "frame-initialize" (0xffffcfd8) > "command-line" (0xffffd1ac) > "normal-top-level" (0xffffd310) > (gdb) > > Any idea what might be going on? > This usually indicates that an object has been deallocated. I.e. x_set_window_size is being called on a frame where the NSView is deallocated or garbage (not null, there is a test for that). Your backtrace indicates that view is the culprit. In gdb, you can (gdb) po view to print it as an Obj-C object. Is it indeed a live frame? You did start nextstep/Emacs.app/Emacs, and not src/emacs? I can't reproduce it here (trunk or 24). I have found that GNUStep behaves very different depending on version and on what GNU/Linux distribution you are using. For example, on Fedora and Mint, I have the same GNUStep version. But Fedora has numerous font related problems that does not exist on Mint, but Mint sometimes produce the wrong font metrics for characters, something Fedora does not. Jan D.