From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Adam Newsgroups: gmane.emacs.bugs Subject: bug#31771: 26.1; Writing image file with emacs hangs entire system Date: Sat, 9 Jun 2018 18:09:50 -0400 Message-ID: <431102ab-bf88-7f34-915b-baa6be1661f1@gmail.com> References: <87y3fnzqr4.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1528582154 12785 195.159.176.226 (9 Jun 2018 22:09:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2018 22:09:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cc: 31771@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 10 00:09:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRm2m-0003DL-VX for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jun 2018 00:09:09 +0200 Original-Received: from localhost ([::1]:41659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRm4t-0007a8-Vz for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 18:11:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRm3h-0006yx-Eg for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 18:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRm3e-0008Nq-6X for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 18:10:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRm3e-0008Ni-0b for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 18:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fRm3d-0003w3-Nv for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 18:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jun 2018 22:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 31771-submit@debbugs.gnu.org id=B31771.152858219915114 (code B ref 31771); Sat, 09 Jun 2018 22:10:01 +0000 Original-Received: (at 31771) by debbugs.gnu.org; 9 Jun 2018 22:09:59 +0000 Original-Received: from localhost ([127.0.0.1]:41573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRm3a-0003vh-MT for submit@debbugs.gnu.org; Sat, 09 Jun 2018 18:09:58 -0400 Original-Received: from mail-qk0-f182.google.com ([209.85.220.182]:45001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRm3Y-0003vT-2w for 31771@debbugs.gnu.org; Sat, 09 Jun 2018 18:09:56 -0400 Original-Received: by mail-qk0-f182.google.com with SMTP id 185-v6so10908545qkk.11 for <31771@debbugs.gnu.org>; Sat, 09 Jun 2018 15:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5bNaMniom3UgZSIzNnlCIQVROuGIfgLeDLWVcUPGavs=; b=n9OwjFd8FxgGPUVaYrgt3CWy4FTJKtbHjMI01lrPpaGQMrjr7E7MCbiE96KdMizlED avYZeZt5wQYCyB6wjOaza7E0eMdwvhWTXtm8GT3eAi0YFibUNrFRK+BswzgFHqY7uJ6+ wp43E9L5oHBEZOrQpZ8jXcp415Jp8kqYCt0UxvN7McHwgsPUjgHUPJvvoTwexNF9USaU oUSCskVg0zBbUBHST77gu6SZeka3IbboBX2cEZypySbfIa4t3A/nkC1y/uLcHRupfJhB h/phtVgLcalfzpPLIP5n9zrfNft9xyxIcgdoJAQIpGzO4lp6IC4hONQLrvxEUnFZ8AqD jXEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=5bNaMniom3UgZSIzNnlCIQVROuGIfgLeDLWVcUPGavs=; b=JE16MkdcD1aIZ+UrYnibuPJQ6PbjlrRJdfmW7Hmec0iLqxJ700/Tqm8WmUTrgeFVkJ 8c9DpdOz/+Ia+TZVlObQdguRe4Hn2KcBlpDuAp6QC4VzAdTcfnkHlCTD4mojsrtHj/PE aO3QiMsV1zk6Rkh1YpyuP3AZbla6C5OJBEKjcD3tcqb+CUoDo+ZK0/EMQrA8LcWLueSZ qXVo5Zxm1nAgHjlDeB1ZkwHadyqrhQzIN+qX38r+hXkVCfNT38avgcctAgnw8HcRcsC9 J7iwSz6CjhtQguizTrKaHXGP6CVLoSubZtGFvpVOoerg8Y9Tgevy+rC0hZesAPo01C7g 7h+g== X-Gm-Message-State: APt69E0PnRS2IWd1UE4jJt8kjr7sgsazSEGYdAEttyfQ6eTrgtLnraSt fLrgPjMXLUM5E/WNA9HGC9ejt7mC X-Google-Smtp-Source: ADUXVKJyKfgc2+PFZsV3Tk8T9J8+/ij1bSBEdJeZf+Lzg1qPUB/llfOwiJTuSyH0tZpWPSZxpUUD8g== X-Received: by 2002:a37:b3c6:: with SMTP id c189-v6mr5380553qkf.276.1528582189850; Sat, 09 Jun 2018 15:09:49 -0700 (PDT) Original-Received: from [192.168.1.162] (pool-71-175-1-195.phlapa.fios.verizon.net. [71.175.1.195]) by smtp.gmail.com with ESMTPSA id x12-v6sm26027453qtp.10.2018.06.09.15.09.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jun 2018 15:09:48 -0700 (PDT) Openpgp: preference=signencrypt Autocrypt: addr=adam.niederer@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFd1xZsBEACxS6jC//cdlHBto17O9puLLU/deDxVmeZAmos70UxbfGEU4acJCohcKo5w mnBgNReUX8l+vydkkJeYMS9V4p2wInKnVxP/LPwlaZ7wcB26ZddF1KoHRambZFTluLbdP6Pp nYGPf19zzzkMVYpixfeZnH6CkF1cRYe2sryLacLEGce3j5DvoFgeseSbce0VieV0QWY2dcB+ lr5iWy/CukxgtU3SZXYwMB0v3xP8Ug3lMH0DDaZC/49hNJIHBLRxg9a7ZSiayeEdWRhn0hYP SQusycTPz82m3hPUVTBHuYf4cj2lA+gsUrAVlJSyGa14sp5S8b3tyVfTa9BUNJ1IFmGsaw2Q ATD+KIXJs+wUGzvd1BFP8TPuocLuLVplpBz3dv5C03Vlp+TSzH2d93t8nrWARuIEYpnAgjWQ z53jEu99oZ1TGTJNVhzt854yFGNr5opL71ODL+zFSwt+u/OLrOQF31DFZL2PC0yEd9eaP05W KgWp3H4XP3RXOP+fzWBUCABOi5XjbNq7mmvxj1efxFahloN5b/evH+Kejx0PnXLYve2VNd6T No09yfH3Z6kqk6c7PUK0MN5h/ZgDSVJ81vK5XyN2sIHtytvktMAbB57ORcniCPSyrRIv0S1K QKvTnzmNCvdpOjo5v8Tnsbwb31TWhmjj49X0BI1PCMTsJoTXqwARAQABzSdBZGFtIE5pZWRl cmVyIDxhZGFtLm5pZWRlcmVyQGdtYWlsLmNvbT7CwXcEEwEIACEFAld1xZsCGwMFCwkIBwIG FQgJCgsCBBYC In-Reply-To: <87y3fnzqr4.fsf@gmail.com> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147254 Archived-At: On 06/09/2018 03:47 PM, Noam Postavsky wrote: > tags 31771 + unreproducible > quit > > Adam writes: > >> After following these commands, your emacs should freeze, and then your >> entire system should hang a few seconds later. > > I couldn't reproduce this. No hang, and if I look closely, I can see > the one black pixel rendered correctly in the top left corner. > > Is your whole system completely frozen, or is it perhaps just using so > much RAM that it goes into swap and starts thrashing and becomes very > slow? If the former, I guess it's some kind of graphics driver thing, > though it seems a bit funny that an image as simple as a single black > pixel could wreck it. I don't think it's RAM-related; I'm seeing ~500MB used of 16GB whenever the system freezes. It's actually quite similar to a graphics driver hang, now that you mention it. The system is unresponsive to input and my cursor freezes, but audio keeps playing. Emacs also doesn't successfully write the decoded file to my disk. I can reproduce the issue in a debug build of 26.1, but the freeze also truncates my gdb log so I'm having a hard time nailing down exactly where it occurs (too many lisp interpreter frames :( ). I've also found that the issue only occurs iff the imagemagick feature is enabled, and can simply be reproduced with C-x C-f (the decoded black pixel image). If it's any help, the system freezes before the minibuffer is cleared and the new image is rendered (The find/write file prompt is still up and the current buffer isn't changed) >> My hunch: this is caused by emacs trying to render the image after it's >> saved. Unfortunately, this causes emacs and my system to hang, so I >> can't provide any core dumps. I'm using linux 4.16.13, mesa 18.1.1, >> libpng 1.6.34, and imagemagick 7.0.7.38 > >> Configured features: >> XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY >> ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS >> GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 > > Do you really have imagemagick 7? Or do maybe also have imagemagic 6? > As far as I know, the patch for Emacs to use v7 is not merged yet: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25967#41 Ah, my apologies. Here's libmagick6: $ pacman -Qs libmagick libmagick6 6.9.9.50-1 libmagick 7.0.7.38-1