all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sean McAfee <eefacm@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Weird interaction between chroot jail and shell-mode
Date: Sat, 30 Oct 2010 13:17:32 -0700	[thread overview]
Message-ID: <m2iq0j1llv.fsf@gmail.com> (raw)

This is probably the most perplexing Emacs issue I've ever
encountered...

I've been trying to build the debian "apt" package in a shell-mode bash
shell, inside of which I've entered a chroot jail.  The build process
(initiated with the command "dpkg-buildpackage") would reach a point
where it executes the command:

  po4a --previous --no-backups po4a.conf

...whereupon the command hangs, consuming 100% of the CPU until I kill
it.

A co-worker had no trouble building the package in an ordinary terminal
window on his own machine, and, unable to find any reason for my issue,
suggested that Emacs might be to blame.  I was dubious, to say the
least, but to humor him I repeated the process in my own terminal
window.  To my astonishment, the package didn't get hung up on the po4a
command, but ran to completion successfully.

I tried building the package inside a terminal emulator window inside
Emacs.  It built.  I tried again using eshell, which I ordinarily never
use.  The build got hung up at the same point as originally, with the
additional delightfulness that I couldn't interrupt the hung command
with C-c C-c.  Finally, I tried building the package in a shell-mode
shell again, but without entering the chroot jail.  It built.  WTF.

I tried dumping my environment variables in the jail in shell-mode and
term-mode and comparing them.  The only differences were in OLDPWD,
LSCOLORS, and TERM ("dumb" in shell-mode, "vt100" in term-mode).  I
repeated the build in shell-mode after setting TERM to vt100, but it
still got hung.

I am utterly perplexed.  Does anyone have any possible explanation for
the behavior I'm seeing?  How in the world can any command produce
different behavior when run inside vs. outside of a chroot jail, but
only when run from a bash shell which itself is running inside a
shell-mode buffer?


             reply	other threads:[~2010-10-30 20:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-30 20:17 Sean McAfee [this message]
2010-11-01 19:29 ` Weird interaction between chroot jail and shell-mode Sean McAfee
2010-11-03 22:25   ` Ilya Zakharevich

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=m2iq0j1llv.fsf@gmail.com \
    --to=eefacm@gmail.com \
    --cc=help-gnu-emacs@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 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.