unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Building Emacs for GNUstep
Date: Wed, 09 Jul 2014 11:34:23 +0200	[thread overview]
Message-ID: <53BD0C9F.6070003@swipnet.se> (raw)
In-Reply-To: <jwvr41vs22t.fsf-monnier+emacs@gnu.org>

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.






  parent reply	other threads:[~2014-07-09  9:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09  2:25 Building Emacs for GNUstep Stefan Monnier
2014-07-09  6:47 ` Dmitry Antipov
2014-07-10  7:09   ` Jan Djärv
2014-07-10 22:12   ` andres.ramirez
2014-07-11  8:06     ` Jan Djärv
2014-07-11 19:58       ` andres.ramirez
2014-07-12 16:30         ` Jan Djärv
2014-07-13  4:37           ` andres.ramirez
2014-07-13  9:08             ` Jan Djärv
2014-07-13 18:15               ` andres.ramirez
2014-07-14  6:18                 ` Jan Djärv
2014-07-14  6:34                   ` andres.ramirez
2014-07-14  7:09                     ` Jan Djärv
2014-07-14 19:26                       ` andres.ramirez
2014-07-15  7:30                         ` Jan Djärv
2014-07-09  8:12 ` martin rudalics
2014-07-09 13:15   ` Stefan Monnier
2014-07-09 14:17     ` martin rudalics
2014-07-09 17:47       ` Stefan Monnier
2014-07-10  7:45         ` martin rudalics
2014-07-11  3:07           ` Glenn Morris
2014-07-11 17:59             ` martin rudalics
2014-07-11 18:09               ` Glenn Morris
2014-07-09  9:34 ` Jan Djärv [this message]
2014-07-10 22:23   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53BD0C9F.6070003@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).