From: Bob Bramwell <bbramwel@shaw.ca>
Subject: QNX subprocess bug
Date: Sat, 25 Mar 2006 05:34:04 +0000 (GMT) [thread overview]
Message-ID: <gD4Vf.180176$B94.1009@pd7tw3no> (raw)
I submitted an article about this a month or so ago but never saw it come
around, so my apologies if this is old news to you.
The bug is showing up in emacs 21.2.1 on QNX 6.3.0. It appears that process IDs
on QNX really occupy 32-bits. Some of them are quite large. This causes a
problem in the subprocess package which uses an elisp integer (28 bits + type
info - I think) to try to store the PID. An added complication is that there is
a cheap-and-cheerful "just stuff this value into this elisp int" macro which (in
this case) has the effect of clobbering the type bits, ultimately resulting in
what appears to be a garbage collector infinite recursion crash.
Obvious this problem could, in principle, arise on any system that uses 32-bit
process IDs, and it seems to me rather sloppy programming to use such a
shortcut, especially in such comparatively rarely executed code.
It looks as though there ought to be some way to rewrite the code with the
integer represented as a kind of indirect object, but I don't feel qualified to
do this without consulting The Experts. Anyone wish to provide some guidance?
I will gladly fix the problem given a few pointers.
reply other threads:[~2006-03-25 5:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='gD4Vf.180176$B94.1009@pd7tw3no' \
--to=bbramwel@shaw.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).