unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Adrian Robert <Adrian.B.Robert@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Crash on GNUstep
Date: Sat, 3 Dec 2011 01:37:47 +0000 (UTC)	[thread overview]
Message-ID: <loom.20111203T022941-413@post.gmane.org> (raw)
In-Reply-To: 744f0ef8ec4dea9c726bca00fa137c73@german-desktop

Germán Arias <german <at> xelalug.org> writes:

> 
> Emacs.app (rev 106570) crash with:
> 
> (gdb) backtrace
> #0  objc_msg_lookup (receiver=0x1200016, op=0x84836b0)
>      at /home/german/Instalados/GCC/gcc-4.6.0/libobjc/sendmsg.c:397
> #1  0x08266900 in ns_retain_object (obj=0x1200016) at nsterm.m:466
> #2  0x08256b62 in XGetImage (display=0x89b4c88, pixmap=0x1200016, x=0, 
> y=0,
>      width=64, height=64, plane_mask=4294967295, format=2) at 
> image.c:160
> #3  0xb508c2ea in ?? () from /usr/lib/libcairo.so.2
> #4  0x089b4c88 in ?? ()
> #5  0x01200016 in ?? ()
> #6  0x00000000 in ?? ()
> 
> I would like know if this problem is present on Mac or not. If not, 
> should be a problem with latest changes in gnustep. Thanks.

Hi,

I don't remember a whole lot about how this code works, but the
XGetImage function at image.c:160 is kind of a way to fake out
some of the other image code which was originally written around
X-windows to work under NS.  It appears that w32 does not take
this approach here, and maybe NS shouldn't be either, since it
looks like what has happened in this case is that somehow the
linking has caused cairo's attempt to call the real X function to
enter into our code instead of the X library which is doubtless
also linked.

On the Mac there won't be any external libraries trying to make X
calls so it couldn't happen, but I'm not sure why it never
occurred in my original testing on GNUstep either.  The code
should probably be changed to follow the approach NT does by
skipping implementing and calling this function entirely.

thanks,
Adrian





  parent reply	other threads:[~2011-12-03  1:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 22:09 Crash on GNUstep Germán Arias
2011-12-01 22:17 ` Tekk
2011-12-01 22:26 ` chad
2011-12-01 22:35   ` Glenn Morris
2011-12-01 22:41     ` Glenn Morris
2011-12-01 23:39       ` chad
2011-12-01 22:50 ` Glenn Morris
2011-12-03  1:37 ` Adrian Robert [this message]
2011-12-03  5:02   ` Germán Arias

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=loom.20111203T022941-413@post.gmane.org \
    --to=adrian.b.robert@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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).