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 13:53:09 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1528566730 6533 195.159.176.226 (9 Jun 2018 17:52:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2018 17:52:10 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 To: 31771@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 09 19:52:06 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 1fRi1z-0001Xg-Pq for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 19:52:04 +0200 Original-Received: from localhost ([::1]:41112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRi46-000889-QH for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 13:54:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRi3x-00087x-DN for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 13:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRi3u-0007xR-6t for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 13:54:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33601) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRi3u-0007xH-1d for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 13:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fRi3t-0002jl-NW for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 13:54: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 17:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152856680410475 (code B ref -1); Sat, 09 Jun 2018 17:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jun 2018 17:53:24 +0000 Original-Received: from localhost ([127.0.0.1]:41498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRi3H-0002is-UR for submit@debbugs.gnu.org; Sat, 09 Jun 2018 13:53:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRi3F-0002ig-KC for submit@debbugs.gnu.org; Sat, 09 Jun 2018 13:53:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRi39-0007cf-6E for submit@debbugs.gnu.org; Sat, 09 Jun 2018 13:53:16 -0400 Original-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 ) id 1fRi39-0007cT-2R for submit@debbugs.gnu.org; Sat, 09 Jun 2018 13:53:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRi37-00085N-G0 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 13:53:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRi34-0007aK-Ac for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 13:53:13 -0400 Original-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 ) id 1fRi34-0007a5-4Z for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 13:53:10 -0400 Original-Received: by mail-qt0-x233.google.com with SMTP id q13-v6so16638738qtp.4 for ; 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) 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 b3-v6sm11190561qtj.85.2018.06.09.10.53.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jun 2018 10:53:07 -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 Content-Language: en-US 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-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:147249 Archived-At: 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))