all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Fabrice Popineau <fabrice.popineau@centralesupelec.fr>
Cc: Angelo Graziosi <angelo.graziosi@alice.it>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: Building Emacs on WSL
Date: Tue, 20 Dec 2016 19:20:46 -0800	[thread overview]
Message-ID: <fb2fab91-1a03-f62e-b39c-bf992cf3e701@cs.ucla.edu> (raw)
In-Reply-To: <CAFgFV9N50dNeNem48gPbR-xXsNiwBbgpNeJ198EsbWooy451yA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

Fabrice Popineau wrote:
> WSL (IMHO) is still a work in progress.
> Once Ubuntu 16.04 will be available, maybe we should consider it more
> seriously.

Is the goal for people to be able to build Emacs on Ubuntu 16.04, and run it 
under WSL? If so, that might be enough for now, and we wouldn't have to change 
Emacs.

I see my test program didn't output enough info, and had a typo. Could you 
please try the attached one instead? On Ubuntu 16.04.1 x86-64, this new program 
outputs:

personality (0xffffffff) returns 0x0, errno=0 (Success)
ADDR_NO_RANDOMIZE was clear
personality (pers0 | ADDR_NO_RANDOMIZE) returns 0x0, errno=0 (Success)
ADDR_NO_RANDOMIZE set successfully
personality (0xffffffff) returns 0x40000, errno=0 (Success)

and when run under GDB, it outputs:

personality (0xffffffff) returns 0x40000, errno=0 (Success)
ADDR_NO_RANDOMIZE was set

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: personality.c --]
[-- Type: text/x-csrc; name="personality.c", Size: 1122 bytes --]

#include <sys/personality.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>

static int
print_personality (unsigned long persona, char const *msg)
{
  int pers, err;
  errno = 0;
  pers = personality (persona);
  err = errno;
  printf ("personality (%s) returns 0x%x, errno=%d (%s)\n",
	  msg, pers, err, strerror (err));
  errno = err;
  return pers;
}

int
main (void)
{
  int pers0, pers1, pers2;
  pers0 = print_personality (0xffffffff, "0xffffffff");
  if (pers0 & ADDR_NO_RANDOMIZE)
    printf ("ADDR_NO_RANDOMIZE was set\n");
  else
    {
      printf ("ADDR_NO_RANDOMIZE was clear\n");
      pers1 = print_personality (pers0 | ADDR_NO_RANDOMIZE,
				"pers0 | ADDR_NO_RANDOMIZE");
      if (pers1 < 0)
	printf ("ADDR_NO_RANDOMIZE could not be set\n");
      else
	{
	  if (pers1 != pers0)
	    printf ("pers1 != pers0 ?\n");
	  printf ("ADDR_NO_RANDOMIZE set successfully\n");
	  pers2 = print_personality (0xffffffff, "0xffffffff");
	  if (pers2 != (pers0 | ADDR_NO_RANDOMIZE))
	    printf ("pers2 != (pers0 | ADDR_NO_RANDOMIZE) ?\n");
	}
    }
  return 0;
}

  parent reply	other threads:[~2016-12-21  3:20 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-11 17:42 Building Emacs on WSL Angelo Graziosi
2016-12-16 15:05 ` Angelo Graziosi
2016-12-16 15:30   ` Eli Zaretskii
2016-12-16 17:48     ` Paul Eggert
2016-12-16 21:05       ` Eli Zaretskii
2016-12-17  1:00         ` Angelo Graziosi
2016-12-17  8:02           ` Eli Zaretskii
2016-12-17  8:33             ` Angelo Graziosi
2016-12-17 10:55               ` Eli Zaretskii
2016-12-17 14:25           ` Eli Zaretskii
2016-12-17 15:46             ` Angelo Graziosi
2016-12-20 12:20   ` Fabrice Popineau
2016-12-20 12:40     ` Fabrice Popineau
2016-12-20 19:35       ` Paul Eggert
2016-12-20 20:03         ` Fabrice Popineau
2016-12-20 23:59           ` Angelo Graziosi
2016-12-21  3:20           ` Paul Eggert [this message]
2016-12-21  8:54             ` Angelo Graziosi
2016-12-21 18:00               ` Paul Eggert
2016-12-21 20:50                 ` Angelo Graziosi
2016-12-20 20:57         ` Angelo Graziosi
2016-12-21  9:00       ` Angelo Graziosi
2016-12-21 10:29         ` Fabrice Popineau
2016-12-20 21:19     ` Angelo Graziosi
2016-12-20 22:01       ` Fabrice Popineau

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

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

  git send-email \
    --in-reply-to=fb2fab91-1a03-f62e-b39c-bf992cf3e701@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=angelo.graziosi@alice.it \
    --cc=emacs-devel@gnu.org \
    --cc=fabrice.popineau@centralesupelec.fr \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.