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.
next reply other threads:[~2006-03-25 5:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-25 5:34 Bob Bramwell [this message]
2006-03-26 0:22 ` QNX subprocess bug Richard Stallman
2006-03-26 4:26 ` Eli Zaretskii
2006-03-27 8:35 ` Richard Stallman
2006-03-27 22:26 ` Kim F. Storm
2006-03-31 3:11 ` Richard Stallman
2006-03-26 4:33 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2006-04-03 18:00 bob
2006-04-04 22:55 ` Stefan Monnier
2006-04-05 3:47 ` Richard Stallman
2006-04-05 9:01 ` Kim F. Storm
2006-04-05 13:03 ` Stefan Monnier
2006-04-05 19:06 ` 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
* 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 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.