← Back to team overview

ubuntu-elisp team mailing list archive

[Bug 1260369] [NEW] Emacs24 hangs when starting shell

 

Public bug reported:

I'm running emacs24 on an Ubuntu box and displaying back to a Windows
box running Xming.

When I start up emacs24 (with "emacs -q" on the command line) with a remote display and type "M-x shell" emacs24 will hang, and display the following in stdout:
(emacs24:1493): GLib-WARNING **: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_child_watch_add()/g_spawn_sync() either directly or indirectly.

If I startup emacs24 without a remote display ("emacs -q -nw") emacs 24
does not hang for "M-x shell".

If I attempt to visit a directory (with dired) emacs24 will hang, and display the following on stdout:
(emacs:2331): GLib-WARNING **: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_child_watch_add()/g_spawn_sync() either directly or indirectly.

If I startup emacs24 without a remote display ("emacs -q -nw") emacs 24
does not hang for dired.

If I startup emacs24 with my remote display and type "M-x compile" it
hangs.  Without the remote display it does not hang.

In the shell case, the process tree looks like this:
 1273 14063 14063 14063 ?           -1 Ss       0   0:00  \_ sshd: rzeh [priv]
14063 14078 14063 14063 ?           -1 S    10021   0:06  |   \_ sshd: rzeh@pts/3
14078 14079 14079 14079 pts/3     4413 Ss   10021   0:00  |       \_ -bash
14079  3880  3880 14079 pts/3     4413 Sl   10021   0:00  |           \_ emacs24 -q
 3880  4411  4411  4411 ?           -1 Zs   10021   0:00  |           |   \_ [bash] <defunct>
14079  4413  4413 14079 pts/3     4413 R+   10021   0:00  |           \_ ps axjf -Urzeh

The defunct bash shell is an emacs24 child.

My environment has NO_AT_BRIDGE set to 1, to avoid the accessibility bus
warnings.  Unsetting the environment variable doesn't eliminate the
hangs.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: emacs24 24.2+1-2ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-19.30-generic 3.8.8
Uname: Linux 3.8.0-19-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.5
Architecture: amd64
Date: Thu Dec 12 09:05:38 2013
InstallationDate: Installed on 2013-10-04 (68 days ago)
InstallationMedia: Ubuntu-Server 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
MarkForUpload: True
ProcEnviron:
 LD_LIBRARY_PATH=<set>
 TERM=xterm
 PATH=(custom, no user)
 SHELL=/bin/bash
SourcePackage: emacs24
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: emacs24 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring third-party-packages

-- 
You received this bug notification because you are a member of Ubuntu
Emacs Lisp, which is subscribed to emacs24 in Ubuntu.
https://bugs.launchpad.net/bugs/1260369

Title:
  Emacs24 hangs when starting shell

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1260369/+subscriptions


Follow ups

References