GNU bug report logs - #14515
24.3; emacs hangs when running epg with glib 2.36 and the awesome wm

Previous Next

Package: emacs;

Reported by: Vincent Legout <vincent <at> legout.info>

Date: Thu, 30 May 2013 20:19:02 UTC

Severity: important

Tags: patch

Merged with 12980

Found in versions 24.3, 24.3.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14515 in the body.
You can then email your comments to 14515 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14515; Package emacs. (Thu, 30 May 2013 20:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vincent Legout <vincent <at> legout.info>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 30 May 2013 20:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vincent Legout <vincent <at> legout.info>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; emacs hangs when running epg with glib 2.36 and the awesome wm
Date: Thu, 30 May 2013 21:31:27 +0200
[Message part 1 (text/plain, inline)]
Hello,

I'm running Debian unstable and the awesome window manager. Since the
update of glib in Debian unstable (from 2.32 to 2.36), emacs hangs when
I run epg. I also had this bug with vc-git when opening a file in a git
directory.

To reproduce this bug, I just run emacs -Q, select a region and then run
M-x epa-verify-region. Emacs gets stuck, takes 100% of a cpu and I have
to run C-g and kill epg manually. When I launch M-x epa-verify-region,
the following appears:

(emacs:32655): 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.

This bug appears with emacs24 from Debian unstable but also with emacs
24.3 from gnu.org. Downgrading to glib 2.32 fixes the issue. And this
doesn't happen with another window manager (e.g. Xfce). I was able to
reproduce this bug on three different machines with Debian unstable,
emacs 24.3, glib 2.36 and awesome.

I think this is the same bug as in:
 https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1175422

Attached is a backtrace with gdb. It seems to be stuck at xgselect.c:48.

Thanks,
Vincent

[backtrace (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
 of 2013-05-30 on eithne
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux unstable (sid)

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o r t <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting x-toolkit x multi-tty emacs)

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14515; Package emacs. (Sat, 15 Jun 2013 07:18:02 GMT) Full text and rfc822 format available.

Message #8 received at 14515 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Vincent Legout <vincent <at> legout.info>
Cc: 14515 <at> debbugs.gnu.org
Subject: Re:  24.3; emacs hangs when running epg with glib 2.36 and the awesome
 wm
Date: Sat, 15 Jun 2013 00:17:43 -0700
This appears to be the same bug as Bug#12980
and Bug#9488.  Fixing it has been nontrivial,
but we have installed fixes in the trunk.
Can you give the Emacs trunk a try?

Here's how to build from the trunk:

http://www.emacswiki.org/emacs/BzrForEmacsCasualDevs#toc2




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14515; Package emacs. (Sat, 15 Jun 2013 08:57:02 GMT) Full text and rfc822 format available.

Message #11 received at 14515 <at> debbugs.gnu.org (full text, mbox):

From: Vincent Legout <vincent <at> legout.info>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 14515 <at> debbugs.gnu.org
Subject: Re: 24.3;
 emacs hangs when running epg with glib 2.36 and the awesome wm
Date: Sat, 15 Jun 2013 10:56:44 +0200
Hi,

Paul Eggert <eggert <at> cs.ucla.edu> writes:

> This appears to be the same bug as Bug#12980
> and Bug#9488.  Fixing it has been nontrivial,
> but we have installed fixes in the trunk.
> Can you give the Emacs trunk a try?

I no longer have this bug with glib 2.36.3-1 from Debian and Emacs
24.3. The bug is still there with glib 2.36.1-2 though.

And I can't reproduce the bug with Emacs trunk with both glib 2.36.1-2
and glib 2.36.3-1.

Thanks,
Vincent




Forcibly Merged 12980 14515. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 15 Jun 2013 18:26:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14515; Package emacs. (Sun, 16 Jun 2013 00:30:02 GMT) Full text and rfc822 format available.

Message #16 received at 14515-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Vincent Legout <vincent <at> legout.info>
Cc: 14515-done <at> debbugs.gnu.org
Subject: Re: 24.3; emacs hangs when running epg with glib 2.36 and the awesome
 wm
Date: Sat, 15 Jun 2013 17:28:55 -0700
On 06/15/2013 01:56 AM, Vincent Legout wrote:

> I can't reproduce the bug with Emacs trunk with both glib 2.36.1-2
> and glib 2.36.3-1.

Thanks for checking; I'll mark it as done then.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 14 Jul 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 344 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.