Emacs24 hangs when starting shell

Bug #1260369 reported by Robert Zeh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
emacs24 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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)

Revision history for this message
Robert Zeh (razeh) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in emacs24 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.