From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53791 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus: apparently kills external viewers too aggressively Date: Thu, 21 Aug 2003 01:25:58 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <87vfss42ij.fsf@glaurung.green-gryphon.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061422047 21982 80.91.224.253 (20 Aug 2003 23:27:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2003 23:27:27 +0000 (UTC) Cc: ding@gnus.org, David Coe , 200823-forwarded@bugs.debian.org Original-X-From: ding-owner+M2331@lists.math.uh.edu Thu Aug 21 01:27:25 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19pcMP-0000vG-00 for ; Thu, 21 Aug 2003 01:27:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19pcLC-0001Z7-00; Wed, 20 Aug 2003 18:26:10 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19pcL8-0001Z2-00 for ding@lists.math.uh.edu; Wed, 20 Aug 2003 18:26:06 -0500 Original-Received: (qmail 59427 invoked by alias); 20 Aug 2003 23:26:06 -0000 Original-Received: (qmail 59416 invoked from network); 20 Aug 2003 23:26:05 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by sclp3.sclp.com with SMTP; 20 Aug 2003 23:26:05 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.9/8.12.9) with ESMTP id h7KNPwdk018589 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 21 Aug 2003 01:25:59 +0200 Original-To: bugs@gnus.org (The Gnus Bugfixing Girls + Boys) Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030820:bugs@gnus.org:e5b9d2b590313a42 X-Hashcash: 0:030820:bugs@gnus.org:e5b9d2b590313a42 X-Payment: hashcash 1.2 0:030820:ding@gnus.org:13b362e8e55969de X-Hashcash: 0:030820:ding@gnus.org:13b362e8e55969de X-Payment: hashcash 1.2 0:030820:davidc@debian.org:87fbf43ab2889e46 X-Hashcash: 0:030820:davidc@debian.org:87fbf43ab2889e46 X-Payment: hashcash 1.2 0:030820:200823-forwarded@bugs.debian.org:fa9a7d36292667c9 X-Hashcash: 0:030820:200823-forwarded@bugs.debian.org:fa9a7d36292667c9 In-Reply-To: <87vfss42ij.fsf@glaurung.green-gryphon.com> (Manoj Srivastava's message of "Wed, 20 Aug 2003 13:17:40 -0500") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53791 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53791 Manoj Srivastava writes: > If I close that imagemagick window directly, there's no problem; but > if I let gnus close it (by, e.g., hitting ENTER again on the > image/jpeg line in the mail message, or by hitting 'n' to go to the > next message, or 'q' to leave the current group) gnus apparently kills > the imagemagick ('display') process too aggressively, causing it to > leave two shared memory segments allocated. > > Do this enough times and you eventually run out of swap space. Even > after gnus and emacs and X have been successfully stopped, the shared > memory segments are still there ('ipcs -m' shows them; 'ipcrm -m ...' > successfully removes them). > > Maybe this is a bug in imagemagick, but I suspect gnus is sending it > SIGKILL instead of SIGTERM, or something to that effect. I have not > looked at the source code. > > Let me know if you need more info, or if I can help in any way. Can you strace or gdb display to see what signal it receives? Or perhaps simply start display on the command line and see if it leaves a shared segment around if you SIGKILL or SIGTERM it? Without knowing much about ipc shared memory segments, I'd say this is a bug somewhere else. I think it could be useful to ask the imagemagick developers.