From: Richard Stallman <rms@gnu.org>
To: emacs-devel@gnu.org
Subject: [philippe.waroquiers@eurocontrol.int: RE: emacs 22.1 on hp-ux 11.11 core dumps when DISPLAY not set]
Date: Thu, 09 Aug 2007 19:11:29 -0400 [thread overview]
Message-ID: <E1IJHA9-0006Z2-LI@fencepost.gnu.org> (raw)
Would someone please check and install this fix?
It is not presented very clearly, and you need to write the change log,
but I think that is better than trying to pressure him to do it.
Please install the fix in Eacs 22.
Please ack when it is done.
------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed
version=3.1.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Subject: RE: emacs 22.1 on hp-ux 11.11 core dumps when DISPLAY not set
Date: Thu, 9 Aug 2007 09:39:08 +0200
In-Reply-To: <E1IJ0VO-0005kY-AQ@fencepost.gnu.org>
Thread-Topic: emacs 22.1 on hp-ux 11.11 core dumps when DISPLAY not set
Thread-Index: AcfaRSWSpQ2knbdCQFGAAyYBXoXcGwAEbgyA
From: "WAROQUIERS Philippe" <philippe.waroquiers@eurocontrol.int>
To: <rms@gnu.org>
Cc: <bug-gnu-emacs@gnu.org>
>Please try to debug it and find the cause.
>First I suggest recompiling using -g.
>That means the .gdbinit file wasn't found or didn't work.
>Please try to figure out why.
.gdbinit was not found because I was not in the good directory.
After recompiling with debug and using gdb, I was able to see
what is happening, and tested a fix.
The problem is that when emacs starts up without DISPLAY, it calls
the function tty_default_color_capabilities.
For a reason not clear to me (my knowledge of C is *very* rusty),
the static local variables in tty_default_color_capabilities are
not properly initialized to NULL or 0 at startup.
I first tried to just put a " = NULL;" and a "= 0;"
but that did not solve the problem.
At the end, the problem was solved by moving the static variables
just before the function tty_default_color_capabilities
(and also initializing them to NULL/0).
In other words, the below fixes the problem:
/* Save or restore the default color-related capabilities of this
terminal. */
static char
*default_orig_pair, *default_set_foreground, *default_set_background
= NULL; /* need init ??? */
static int default_max_colors, default_max_pairs,
default_no_color_video = 0; /* need init ??? */
static void
tty_default_color_capabilities (save)
int save;
{
if (save)
{
if (default_orig_pair)
As I do not understand too much the problem, if you need any other
investigation, I can
always see what I can do.
Thanks for your help ...
____
This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy.
Any views expressed in this message are those of the sender.
------- End of forwarded message -------
next reply other threads:[~2007-08-09 23:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-09 23:11 Richard Stallman [this message]
2007-08-15 2:43 ` [philippe.waroquiers@eurocontrol.int: RE: emacs 22.1 on hp-ux 11.11 core dumps when DISPLAY not set] Glenn Morris
2007-08-15 2:46 ` Glenn Morris
[not found] ` <E1ILNVk-0007Gh-IH@fencepost.gnu.org>
2007-08-15 18:38 ` Andreas Schwab
2007-08-16 21:00 ` WAROQUIERS Philippe
2007-08-17 4:49 ` Richard Stallman
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=E1IJHA9-0006Z2-LI@fencepost.gnu.org \
--to=rms@gnu.org \
--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).