GNU bug report logs - #31771
26.1; [imagemagick] Writing image file with emacs hangs entire system

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Adam <adam.niederer@HIDDEN>; Keywords: unreproducible; dated Sat, 9 Jun 2018 17:54:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Changed bug title to '26.1; [imagemagick] Writing image file with emacs hangs entire system' from '26.1; Writing image file with emacs hangs entire system' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 31771 <at> debbugs.gnu.org:


Received: (at 31771) by debbugs.gnu.org; 10 Jun 2018 17:53:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 10 13:53:37 2018
Received: from localhost ([127.0.0.1]:42534 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fS4X3-0008Vy-JS
	for submit <at> debbugs.gnu.org; Sun, 10 Jun 2018 13:53:37 -0400
Received: from mail-qk0-f182.google.com ([209.85.220.182]:43748)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <adam.niederer@HIDDEN>) id 1fS4X2-0008Vl-96
 for 31771 <at> debbugs.gnu.org; Sun, 10 Jun 2018 13:53:36 -0400
Received: by mail-qk0-f182.google.com with SMTP id g126-v6so11720566qke.10
 for <31771 <at> debbugs.gnu.org>; Sun, 10 Jun 2018 10:53:36 -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=kkQDq7vvIxMNge53Kl3p7UsHayt9VPRxY/R6cLGAg6A=;
 b=p9gSvugYgrqan3uis2Puh/EjN9BtzWQnSqhFHe1lSKoxL0lFRMJrN3wqYuHSBEL8WE
 JgBp/fxUYCys4IO71sYUrp3QGAhlpw+aB9F/pyqY3z6EsjVLLwyLvf+KnBRCJ9lYN/ko
 oM/FLj50VA8/lW3sjeaZx+bROhdtMT9GVG4G0wMtiPisYBnpe3FJm88qXMnosW/aTK0g
 5VaEXd/phiqMkvYA0g9Rgo/Plw4CcSvC4PrKTkHTOn+IWaSftperk7wXGqrI/mPKttyd
 BYL3/ahuvNZ7p5HapnnPImMwjJsPFBnIJnU1OTsY4gAgo1fovqeqE2QWznMlB+wJ99Pm
 MhXw==
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=kkQDq7vvIxMNge53Kl3p7UsHayt9VPRxY/R6cLGAg6A=;
 b=NwQP6hS3iceEy8FmRoD25r2YnN9JgkXg8DsFc1l3y0QSZM04DSH7Ks7Y5L95UF3m8y
 usycYHx8F7XT4SOO+zrGdECSYxa8mTUh89iRMG/dkhNcFWZj9jyIOMHLnc1/zE4a5oWB
 C1veTIirgk2SgjpDdpNJ75sFcPE1w59/PB1g92WLKMn09OzmvK7H6p9mfn6osjEueSNN
 FAtGENLs2Z8y/ePlp1GtuMZFVHybm+dYew0eRA0/Do5549ZJP3haAGimmVUiONtkYbtD
 O/7Txdfux2OIDfy4QcZ16vyI5s6uuDJ4/mDjJDkfW4ARkN6Je7mopnr6rv+y1Xlcq9Jd
 muhg==
X-Gm-Message-State: APt69E0VL1DPYFc3n9sTwoSgaVo+SskOCitYD33JLcs0qqiM7udRaYWP
 O2F83JfhfGnBe1WVhNFvkQ7sgI79
X-Google-Smtp-Source: ADUXVKJkNST5K11OZSoxdRn1VZrttbGq2wpGTEUCQ09QSTNaJSSyk85ctVDZ4eqehuZUoNLTk7cx5g==
X-Received: by 2002:a37:a441:: with SMTP id
 n62-v6mr11901832qke.125.1528653209942; 
 Sun, 10 Jun 2018 10:53:29 -0700 (PDT)
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 k30-v6sm20505551qtc.31.2018.06.10.10.53.28
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 10 Jun 2018 10:53:28 -0700 (PDT)
From: Adam <adam.niederer@HIDDEN>
Subject: Re: bug#31771: 26.1; Writing image file with emacs hangs entire system
To: Noam Postavsky <npostavs@HIDDEN>
References: <d77f49e7-3c4b-eb1e-3a12-d4dca6f93c92@HIDDEN>
 <87y3fnzqr4.fsf@HIDDEN> <431102ab-bf88-7f34-915b-baa6be1661f1@HIDDEN>
 <87tvqbz711.fsf@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=adam.niederer@HIDDEN; 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
 No09yfH3Z6kqk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934ZsCTWqjMGuRG8Nhqsghcc6IEtcNxER8J1RpHUnBx5v8FQu9n1Tm+tcdWvpQcUjJcBcQH
 26z2EsdD/+BWVwQ3piZjYnikEhHhGdRBCw/JMJBC361bcd99/a5ccQOcnRM0oEyREuco7/P8
 3NDUtSuG/LjpUom3oJ78WUi3n0zz9NFzOA7LRoM9Jsb/BZ8xAClgC9HKlomgJXiepBIXi/Pb
 oBgld5ZvqDOE/VrUkDJtu8foMNyLVEOBuuTWhUxvVJVUxxtiIsELF3IJoOnDLfKqLeVT1a0=
Message-ID: <2d37f921-5253-8dcc-9d30-738a1996451c@HIDDEN>
Date: Sun, 10 Jun 2018 13:53:30 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <87tvqbz711.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31771
Cc: 31771 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 06/09/2018 10:53 PM, Noam Postavsky wrote:
> So it definitely sounds like a graphics driver problem.  Do you get
> anything in the Xorg logs?  Are there any graphics driver settings you
> can fiddle with?  I suppose it doesn't happen if you run imagemagick's
> 'display' command on the image?

`display` doesn't hang my system, and I see nothing out of the ordinary
in my Xorg logs. I was able to figure out which line causes the hang,
though: A call to MagickMergeImageLayers at image.c:8728 (on the emacs
26.1 tag)

 8724   {
 8725     MagickWand *new_wand;
 8726     MagickSetImageBackgroundColor (image_wand, bg_wand);
 8727 #ifdef HAVE_MAGICKMERGEIMAGELAYERS
 8728     new_wand = MagickMergeImageLayers (image_wand, MergeLayer);
 8729 #else
 8730     new_wand = MagickFlattenImages (image_wand);
 8731 #endif
 8732     DestroyMagickWand (image_wand);
 8733     image_wand = new_wand;
 8734   }

Using the deprecated MagickFlattenImages call also causes the hang. I'll
compile a libmagick6 later and see if I can find the underlying problem,
but this definitely isn't emacs' fault.

Thanks for all the help!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31771; Package emacs. Full text available.

Message received at 31771 <at> debbugs.gnu.org:


Received: (at 31771) by debbugs.gnu.org; 10 Jun 2018 02:53:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 09 22:53:40 2018
Received: from localhost ([127.0.0.1]:41642 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fRqU7-0001hv-QK
	for submit <at> debbugs.gnu.org; Sat, 09 Jun 2018 22:53:39 -0400
Received: from mail-io0-f174.google.com ([209.85.223.174]:39546)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1fRqU6-0001hj-3b
 for 31771 <at> debbugs.gnu.org; Sat, 09 Jun 2018 22:53:38 -0400
Received: by mail-io0-f174.google.com with SMTP id f1-v6so20140567ioh.6
 for <31771 <at> debbugs.gnu.org>; Sat, 09 Jun 2018 19:53:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=i0MtpyCJPrEwpvI+me0hj9G8By+Sn76J3Z0OFB5St0U=;
 b=Ricdy2MYKaWHUDJ9zd56V2GJaOxyqWZE+16zJaqe7sgpfFLPUCRwVS1IwndSACe7xD
 I5fL8+hqlD42ZbUmGZ5iYF+S650sj7T/4oWgafTMlqrIymvaVg3qKT+pBfvHgwSYHpmP
 u4pW53VQjMJE36NyNTi6KrVQOSlSMINjDzoHR8diA6kinmmWz+lHKISCW8+pYkWyfrRK
 JF2u0TVkkH5ZqgXZVYRZ/SXEU5remNKkpSJLZF+YEP3n3MNI5an+bzgGtalq28ksF4Ae
 b13Z/zRSfZbmy7o3m/rPR+Oz2Q6uUriBpz9O/WfwBNXFLm4FjNKkID8ZmbViN9/gqQvj
 /bvg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=i0MtpyCJPrEwpvI+me0hj9G8By+Sn76J3Z0OFB5St0U=;
 b=sqHMv7Z0DaKQXZCgTdPN94EfSwEAFRRzU+lT1rahN4r2GwyAF7Rzf+x+xhYlObQJbG
 M3aL7FxAff/kk9YNOJfNqIg2S5pozFo9K7qIi3iARfWpde6crLTy27T5I5IXYzGeZjG2
 7O6LrS/PZ7YN/UrQPVvc4bund1py7stkOAlDCHL23V3qVUxBuIsQ8uiigeVZZdHyWr5y
 ZiBvAWzCAuL8dAcHvHbn11+d6gFZN8NJsatE3QEvj4a81xtOmeyUtOvTfCb//f9Ja6uF
 GM0bxYlw5vuoIRN5JGRyshKYzyTUVgGi2noQf4wtSVk2fIPeL+0T8/MkVISGBBHyGpT7
 qm7g==
X-Gm-Message-State: APt69E375eMRgAd6Q41GKI1eei/NTM9CY2/xJLtpTTbdk0iXX1QjoUdV
 OXM7UktECIYtwnL8iunzpzee5Q==
X-Google-Smtp-Source: ADUXVKLBIvgIjmRZ90nztUAOnpEzWS1J3QIzKS1NsDXQIK72sX00Pvq/90Cn78oq/bm12tsPIPnceQ==
X-Received: by 2002:a6b:c501:: with SMTP id
 v1-v6mr8279243iof.172.1528599212246; 
 Sat, 09 Jun 2018 19:53:32 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 p22-v6sm9749694iog.4.2018.06.09.19.53.31
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 09 Jun 2018 19:53:31 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Adam <adam.niederer@HIDDEN>
Subject: Re: bug#31771: 26.1; Writing image file with emacs hangs entire system
References: <d77f49e7-3c4b-eb1e-3a12-d4dca6f93c92@HIDDEN>
 <87y3fnzqr4.fsf@HIDDEN>
 <431102ab-bf88-7f34-915b-baa6be1661f1@HIDDEN>
Date: Sat, 09 Jun 2018 22:53:30 -0400
In-Reply-To: <431102ab-bf88-7f34-915b-baa6be1661f1@HIDDEN> (Adam's message
 of "Sat, 9 Jun 2018 18:09:50 -0400")
Message-ID: <87tvqbz711.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 31771
Cc: 31771 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

Adam <adam.niederer@HIDDEN> writes:

> 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).

So it definitely sounds like a graphics driver problem.  Do you get
anything in the Xorg logs?  Are there any graphics driver settings you
can fiddle with?  I suppose it doesn't happen if you run imagemagick's
'display' command on the image?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31771; Package emacs. Full text available.

Message received at 31771 <at> debbugs.gnu.org:


Received: (at 31771) by debbugs.gnu.org; 9 Jun 2018 22:09:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 09 18:09:58 2018
Received: from localhost ([127.0.0.1]:41573 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fRm3a-0003vh-MT
	for submit <at> debbugs.gnu.org; Sat, 09 Jun 2018 18:09:58 -0400
Received: from mail-qk0-f182.google.com ([209.85.220.182]:45001)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <adam.niederer@HIDDEN>) id 1fRm3Y-0003vT-2w
 for 31771 <at> debbugs.gnu.org; Sat, 09 Jun 2018 18:09:56 -0400
Received: by mail-qk0-f182.google.com with SMTP id 185-v6so10908545qkk.11
 for <31771 <at> 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)
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)
From: Adam <adam.niederer@HIDDEN>
Subject: bug#31771: 26.1; Writing image file with emacs hangs entire system
To: Noam Postavsky <npostavs@HIDDEN>
References: <d77f49e7-3c4b-eb1e-3a12-d4dca6f93c92@HIDDEN>
 <87y3fnzqr4.fsf@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=adam.niederer@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBFd1xZsBEACxS6jC//cdlHBto17O9puLLU/deDxVmeZAmos70UxbfGEU4acJCohcKo5w
 mnBgNReUX8l+vydkkJeYMS9V4p2wInKnVxP/LPwlaZ7wcB26ZddF1KoHRambZFTluLbdP6Pp
 nYGPf19zzzkMVYpixfeZnH6CkF1cRYe2sryLacLEGce3j5DvoFgeseSbce0VieV0QWY2dcB+
 lr5iWy/CukxgtU3SZXYwMB0v3xP8Ug3lMH0DDaZC/49hNJIHBLRxg9a7ZSiayeEdWRhn0hY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JuLQ
 0mSYlRizxwaZno1n7BJcVZ/LjSL64fF4eyXs/EwvOZ6pwHOyOXMX8wyE7B2Dc9gTNUgFzDdI
 R+msuX3QxpNC7w7rhO8K/g7FtTwU2iH4y2yDaTkBciCXO7I8f8c5JN23cMPNieId0SgxEZJR
 2bVtWS6KiEqGmoGeh3azVjPzkfTxwX04hc/irog24mqAE+vVufNF7Bl2wMzrSM3sKDjOjB+6
 RA5CLjWpiWVkIpMfC/7S1FkoAXI4RslHYsB4Eeud/QwLmkuuCgc+fGUe2UvXBKUOzDI9SDeE
 1934ZsCTWqjMGuRG8Nhqsghcc6IEtcNxER8J1RpHUnBx5v8FQu9n1Tm+tcdWvpQcUjJcBcQH
 26z2EsdD/+BWVwQ3piZjYnikEhHhGdRBCw/JMJBC361bcd99/a5ccQOcnRM0oEyREuco7/P8
 3NDUtSuG/LjpUom3oJ78WUi3n0zz9NFzOA7LRoM9Jsb/BZ8xAClgC9HKlomgJXiepBIXi/Pb
 oBgld5ZvqDOE/VrUkDJtu8foMNyLVEOBuuTWhUxvVJVUxxtiIsELF3IJoOnDLfKqLeVT1a0=
Message-ID: <431102ab-bf88-7f34-915b-baa6be1661f1@HIDDEN>
Date: Sat, 9 Jun 2018 18:09:50 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <87y3fnzqr4.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31771
Cc: 31771 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 06/09/2018 03:47 PM, Noam Postavsky wrote:
> tags 31771 + unreproducible
> quit
> 
> Adam <adam.niederer@HIDDEN> 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






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31771; Package emacs. Full text available.
Added tag(s) unreproducible. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 31771 <at> debbugs.gnu.org:


Received: (at 31771) by debbugs.gnu.org; 9 Jun 2018 19:47:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 09 15:47:36 2018
Received: from localhost ([127.0.0.1]:41537 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fRjpo-0007H4-GC
	for submit <at> debbugs.gnu.org; Sat, 09 Jun 2018 15:47:36 -0400
Received: from mail-it0-f48.google.com ([209.85.214.48]:39435)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1fRjpm-0007Gm-UC; Sat, 09 Jun 2018 15:47:35 -0400
Received: by mail-it0-f48.google.com with SMTP id p185-v6so6515152itp.4;
 Sat, 09 Jun 2018 12:47:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=DbLcM/3NNpTMbCLqX3gOqMZocJuMbMbdHg73Iut2Zbg=;
 b=MyKpdcoIWXIqpleXsuQPik4MkJtzOSY8HWFA8Pg4i791Hm2a/uSMQpjufNXdipjiF6
 KGEqXuRAEVIQIIYLGEFEOXSas/usNRscDrmi8RmDjNOqPO+xG3mq4VxdZKxY7r+kJCpQ
 xWr1bdU288NSVZPPicggnUvg7KYkVm5NQu9pQWr85YlkjXRG6XG6zzXZmGI/p5xiek8T
 Eb0qrNYOyLNCnUlvueUQuVKwZqcDkQaBQhvOBkpFNt92xVHW2o3pLmwfo40ycoiSfhKW
 DhL7/Jwr2XFf6bgJetVYXJSx5VGkPq3yBtHqNcWypiTIlBO/M/BZ14Duz9S7LC8SCGDQ
 zlNA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=DbLcM/3NNpTMbCLqX3gOqMZocJuMbMbdHg73Iut2Zbg=;
 b=Ud11BWObCwgmPx2qt1YFbTWpBj6qw9GtCfmVhK/teVq00Z4IGOqHVyoCWomWEf6ny/
 EodSHHGQV4O+jZLeXDYFU+t9riJhRCPXPVFnLgrhopTFUyA0qkv35gTBVs3Iij/Na9wO
 FCOj/NpQPKeU+6GhrupzY40+xWUc/sKlMYFW59ykg0K4a4R6EGnniGm25FzVppHxeM/X
 S6G1cJy5CpeqZ30SIXEBHBS1528FIrZMDgMcGi0NLOMpcPz9Wk5MdwAjUxCte6bA61Mq
 o0BTmaYro24l3ZbVQ1tWuMdro5kKlDXC1NzRukf3pPtGDoNs4R+2W+kHdzDL530xvQju
 rFdA==
X-Gm-Message-State: APt69E2U0BWo/qfnO1diU6l16a/PviWyq9uk5MTvTZ3l69Lltu0T25VB
 fl+f0aHXnvDIDwyJ8dNkYodRog==
X-Google-Smtp-Source: ADUXVKKRYFojvXWJ9BCRpVF+F865ayRwLMsfaPVTJiE9l1BNRAn7K+pyUi2aYvRvX+dYcIFUktuQ4w==
X-Received: by 2002:a24:8782:: with SMTP id
 f124-v6mr6341303ite.30.1528573649289; 
 Sat, 09 Jun 2018 12:47:29 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 c102-v6sm3488224itd.3.2018.06.09.12.47.28
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 09 Jun 2018 12:47:28 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Adam <adam.niederer@HIDDEN>
Subject: Re: bug#31771: 26.1; Writing image file with emacs hangs entire system
References: <d77f49e7-3c4b-eb1e-3a12-d4dca6f93c92@HIDDEN>
Date: Sat, 09 Jun 2018 15:47:27 -0400
In-Reply-To: <d77f49e7-3c4b-eb1e-3a12-d4dca6f93c92@HIDDEN> (Adam's message
 of "Sat, 9 Jun 2018 13:53:09 -0400")
Message-ID: <87y3fnzqr4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 31771
Cc: 31771 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

tags 31771 + unreproducible
quit

Adam <adam.niederer@HIDDEN> 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.

> 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






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31771; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Jun 2018 17:53:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 09 13:53:24 2018
Received: from localhost ([127.0.0.1]:41498 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fRi3H-0002is-UR
	for submit <at> debbugs.gnu.org; Sat, 09 Jun 2018 13:53:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36602)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <adam.niederer@HIDDEN>) id 1fRi3F-0002ig-KC
 for submit <at> debbugs.gnu.org; Sat, 09 Jun 2018 13:53:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <adam.niederer@HIDDEN>) id 1fRi39-0007cf-6E
 for submit <at> debbugs.gnu.org; Sat, 09 Jun 2018 13:53:16 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35402)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <adam.niederer@HIDDEN>)
 id 1fRi39-0007cT-2R
 for submit <at> debbugs.gnu.org; Sat, 09 Jun 2018 13:53:15 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55799)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <adam.niederer@HIDDEN>) id 1fRi37-00085N-G0
 for bug-gnu-emacs@HIDDEN; Sat, 09 Jun 2018 13:53:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <adam.niederer@HIDDEN>) id 1fRi34-0007aK-Ac
 for bug-gnu-emacs@HIDDEN; Sat, 09 Jun 2018 13:53:13 -0400
Received: from mail-qt0-x233.google.com ([2607:f8b0:400d:c0d::233]:37344)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <adam.niederer@HIDDEN>)
 id 1fRi34-0007a5-4Z
 for bug-gnu-emacs@HIDDEN; Sat, 09 Jun 2018 13:53:10 -0400
Received: by mail-qt0-x233.google.com with SMTP id q13-v6so16638738qtp.4
 for <bug-gnu-emacs@HIDDEN>; Sat, 09 Jun 2018 10:53:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent
 :mime-version:content-language:content-transfer-encoding;
 bh=PnbWzsvwb2VNe+nWjL0l7QjCw40XuBHs1O38VMwNM6A=;
 b=BiMWnYZcAVFOqw8gs51aQYenIURiixiO1Ecq3A/oBMDeEWL+HfApcqgce2zNH/2737
 iWrZ1TTTV4hE2qXcxyjoXw5h4lY9IxT8BvkQHqC7xTuWjwuaHx2iqHrYgpkZLRVgrkIX
 c6YwNkspclKjsa35tobGUKOT9hRn1ZdKiJ2aXrv9+Iyancoz8wr6I3DYJ9Okwssmn/hW
 GUS8G/MKKjZS5QNBOiw5PCEI9AHotpkvowC9LQGmQM8+o6vQ6zrLGf+zmJzrNs7inhPP
 EWwCaM8BWpzIa0p09cYLPXeU0m/fWOmB4YM5jDHyYiiorNk6K9MHD2YSDEjTr3AH0Ead
 eYJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:openpgp:autocrypt:message-id
 :date:user-agent:mime-version:content-language
 :content-transfer-encoding;
 bh=PnbWzsvwb2VNe+nWjL0l7QjCw40XuBHs1O38VMwNM6A=;
 b=OeU5vZdImp/BdJGGLeaOQVPVw0Kr836Ii+J391NhINJLJDSJGtoa2eDBI1XSfLC1Zv
 lwv5rxCkv8mB4ETv+cBMwHcH+HLzYKmPQmxC7/eUBRNlKeRAE3/c0Y6kqpy22dnkYFV0
 t9ds9Jo8vhWUT11OuHZGrsDR22BbL/jzOIuecQBP4VEIencfoYYJIiu4D+E87hXDSz0N
 94FC+leYF8kafDVs/1nvYSOzjle1/RtXNiAgHtC4g2NcN+375xIOsRFsLx+SmDjU/GD8
 F+JfaJdQ2ZTnf04ADdpeEj6HUnXjaM+lqsuABKe+dYEl0yiynlFvG18e01y1LlAKy3uk
 T5Gw==
X-Gm-Message-State: APt69E3IDzWXkMgdoLq/dmLRSpt9EFuMEF68Itov02W5SVknodNFMKWf
 PDglQ5hGmq2AzOHIPqvfUtXDaFhH
X-Google-Smtp-Source: ADUXVKLhXm5Xj3nOO0O63Y5rmXxNXwGkn/6ZlCxtv6yui8kEKtQbFyNu54+qUeUxVgQn+8j8PGH+QQ==
X-Received: by 2002:a0c:e80b:: with SMTP id
 y11-v6mr9975471qvn.10.1528566788608; 
 Sat, 09 Jun 2018 10:53:08 -0700 (PDT)
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 b3-v6sm11190561qtj.85.2018.06.09.10.53.07
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 09 Jun 2018 10:53:07 -0700 (PDT)
To: bug-gnu-emacs@HIDDEN
From: Adam <adam.niederer@HIDDEN>
Subject: 26.1; Writing image file with emacs hangs entire system
Openpgp: preference=signencrypt
Autocrypt: addr=adam.niederer@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBFd1xZsBEACxS6jC//cdlHBto17O9puLLU/deDxVmeZAmos70UxbfGEU4acJCohcKo5w
 mnBgNReUX8l+vydkkJeYMS9V4p2wInKnVxP/LPwlaZ7wcB26ZddF1KoHRambZFTluLbdP6Pp
 nYGPf19zzzkMVYpixfeZnH6CkF1cRYe2sryLacLEGce3j5DvoFgeseSbce0VieV0QWY2dcB+
 lr5iWy/CukxgtU3SZXYwMB0v3xP8Ug3lMH0DDaZC/49hNJIHBLRxg9a7ZSiayeEdWRhn0hYP
 SQusycTPz82m3hPUVTBHuYf4cj2lA+gsUrAVlJSyGa14sp5S8b3tyVfTa9BUNJ1IFmGsaw2Q
 ATD+KIXJs+wUGzvd1BFP8TPuocLuLVplpBz3dv5C03Vlp+TSzH2d93t8nrWARuIEYpnAgjWQ
 z53jEu99oZ1TGTJNVhzt854yFGNr5opL71ODL+zFSwt+u/OLrOQF31DFZL2PC0yEd9eaP05W
 KgWp3H4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A5CLjWpiWVkIpMfC/7S1FkoAXI4RslHYsB4Eeud/QwLmkuuCgc+fGUe2UvXBKUOzDI9SDeE
 1934ZsCTWqjMGuRG8Nhqsghcc6IEtcNxER8J1RpHUnBx5v8FQu9n1Tm+tcdWvpQcUjJcBcQH
 26z2EsdD/+BWVwQ3piZjYnikEhHhGdRBCw/JMJBC361bcd99/a5ccQOcnRM0oEyREuco7/P8
 3NDUtSuG/LjpUom3oJ78WUi3n0zz9NFzOA7LRoM9Jsb/BZ8xAClgC9HKlomgJXiepBIXi/Pb
 oBgld5ZvqDOE/VrUkDJtu8foMNyLVEOBuuTWhUxvVJVUxxtiIsELF3IJoOnDLfKqLeVT1a0=
Message-ID: <d77f49e7-3c4b-eb1e-3a12-d4dca6f93c92@HIDDEN>
Date: Sat, 9 Jun 2018 13:53:09 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Ensure everything is saved and your system can tolerate a hard reboot;
reproducing this bug may cause a full-system lock-up.

In your shell,
$ cat > black-pixel.png.b64 << EOF
iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQI12NgYGAAAAAEAAEnNCcK
AAAAAElFTkSuQmCC
EOF
$ emacs -Q black-pixel.png.b64

From emacs,
C-x h
M-x base64-decode-region RET
C-x C-w RET black-pixel.png RET

The decoded buffer (before pressing C-x C-w) should contain:

\211PNG^M
^Z
^@^@^@^MIHDR^@^@^@^A^@^@^@^A^H^B^@^@^@\220wS\336^@^@^@^LIDAT^H\327c```^@^@^@^D^@^A'4'
^@^@^@^@IEND\256B`\202

After following these commands, your emacs should freeze, and then your
entire system should hang a few seconds later.

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

In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2018-05-29 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.12000000
System Description:	Arch Linux

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

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
 -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'

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

Important settings:
  value of $LC_COLLATE: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-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

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 95362 9471)
 (symbols 48 20349 1)
 (miscs 40 44 168)
 (strings 32 28460 1052)
 (string-bytes 1 743428)
 (vectors 16 14643)
 (vector-slots 8 496724 7908)
 (floats 8 49 68)
 (intervals 56 218 0)
 (buffers 992 11))




Acknowledgement sent to Adam <adam.niederer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#31771; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 11 Jul 2018 21:45:02 UTC

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