From unknown Sun Jun 15 08:06:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39948 <39948@debbugs.gnu.org> To: bug#39948 <39948@debbugs.gnu.org> Subject: Status: 28.0.50; crash in fchmodat Reply-To: bug#39948 <39948@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:06:46 +0000 retitle 39948 28.0.50; crash in fchmodat reassign 39948 emacs submitter 39948 Stephen Berman severity 39948 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 09:16:55 2020 Received: (at submit) by debbugs.gnu.org; 6 Mar 2020 14:16:55 +0000 Received: from localhost ([127.0.0.1]:44290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jADmY-000172-MP for submit@debbugs.gnu.org; Fri, 06 Mar 2020 09:16:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:54156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jADmW-00015M-MC for submit@debbugs.gnu.org; Fri, 06 Mar 2020 09:16:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53537) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jADmT-0001aB-Vv for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 09:16:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jADmS-0008Ao-07 for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 09:16:49 -0500 Received: from mout.gmx.net ([212.227.17.21]:34471) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jADmR-00084Z-Ij for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 09:16:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1583504205; bh=nSVCtDbXsNA4X3JCR2H6/OttudV9/IfFKU6zwrxAw+Q=; h=X-UI-Sender-Class:From:To:Subject:Date; b=O3hr+LjpNvdILZpa3779/FjLki+KeQS2kmDYOV4AhCJuF1Bok6zdoCeQ5LcFCK9rm 8oExUj1LmKDYFH7azWHv6iLauwpBiym43BOzuCgLSBFQcXjzIiGB6DozoGgp1TsOHn 50hOIVxPPaxOAaLfMP5e8jaISzkCQaCZnoILQVzQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-lfs84 ([188.109.152.142]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MWigq-1iqMWS2Yrg-00X8DA for ; Fri, 06 Mar 2020 15:16:45 +0100 From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 28.0.50; crash in fchmodat Date: Fri, 06 Mar 2020 15:16:43 +0100 Message-ID: <87mu8tin5g.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:48Caudu/vuVpww4Jyp1FS/TEXcYFAKz54uluI4wcFmKEKKqXZiD a53IfpIU9rd4DaXMMx6uMQmAOwv7QwyKnY+eKbmql0Lib8tm1rRCIEvL7ktTq4UuLm+z4Zj RbJfbglsZnKrOi/58W8f7VRsU9ax7c6HR2g2dHknM9/EI6kWwSKWgrKDrwZoYk8rcjoj933 d1MBW/rNSTPX1NKT/pOVg== X-UI-Out-Filterresults: notjunk:1;V03:K0:4tFzbaSt18Y=:TA0cmOZ3VCZ8nIS0M1zwGs RS7xqMID8zJ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dXV5B Fx4/4lPA6zVrmkXMIeYbPT3okw8i+xPDsKOIshNz9hhdn6Mgo+rM3meOeFEjvfT6T1j2UKUnP KffHD/a4MfG0tBPtP/RHee59BiZguItkGCDClj28+eWhFxqErhKJY7pTCbcCUCCMSoZlGHlFX c5paG/C19MV9FspWq Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.21 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) I updated from master today and now Emacs is crashing when I use Gnus. The first time it happened I been reading news groups for a while, then email arrived and when I pulled it into Gnus, Emacs crashed. Then I restarted Emacs under GDB and now get the crash already on starting Gnus (with my initializations; it doesn't happen when I start an unconfigured Gnus in Emacs -Q). I tried to get a full backtrace, but the output of `bt full' seemed to be in an endless loop; here's the start of the backtrace: Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. 0x000000000060c9b2 in fchmodat (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/Mail/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:65 65 { (gdb) bt full #0 0x000000000060c9b2 in fchmodat (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/Ma= il/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:65 #1 0x000000000060cae4 in orig_fchmodat (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/Ma= il/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:33 #2 0x000000000060c9e0 in fchmodat (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/Ma= il/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:134 #3 0x000000000060cae4 in orig_fchmodat (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/Ma= il/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:33 #4 0x000000000060c9e0 in fchmodat (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/Ma= il/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:134 #5 0x000000000060cae4 in orig_fchmodat (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/Ma= il/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) ter/lib/fchmodat.c:33 This pattern repeated for tens of thousands of frames, then I interrupted it and typed `c': (gdb) c Continuing. Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=3Dsig@entr= y=3D11, backtrace_limit=3Dbacktrace_limit@entry=3D40) at /home/steve/src/emacs/emacs-master/src/emacs.c:370 370 { (gdb) Continuing. Fatal error 11: Segmentation fault Backtrace: /home/steve/build/emacs-master/src/emacs[0x524450] /home/steve/build/emacs-master/src/emacs[0x5068e0] /home/steve/build/emacs-master/src/emacs[0x522745] /home/steve/build/emacs-master/src/emacs[0x522772] /home/steve/build/emacs-master/src/emacs[0x5227cf] /home/steve/build/emacs-master/src/emacs[0x522895] /lib/libpthread.so.0(+0x12680)[0x7ffff61a5680] /home/steve/build/emacs-master/src/emacs(fchmodat+0x2f)[0x60c9db] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] /home/steve/build/emacs-master/src/emacs(fchmodat+0x34)[0x60c9e0] /home/steve/build/emacs-master/src/emacs[0x60cae4] ... Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. raise (sig=3Dsig@entry=3D11) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. In GNU Emacs 28.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, c= airo version 1.16.0) of 2020-03-06 built on strobe-lfs84 Repository revision: c996fe1ec69de0082043397d4965d08cb94892fb Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: Linux From Scratch Recent messages: Loading /home/steve/.emacs.d/srb/srb-mail.el (source)...done Loading /home/steve/.emacs.d/srb/srb-elisp.el (source)...done Loading todo-mode...done Loading /home/steve/.emacs.d/srb/srb-cal+diary+appt.el (source)...done Loading /home/steve/.emacs.d/srb/srb-global-key-bindings.el (source)...don= e Preparing diary... No diary entries for Friday, March 6, 2020 Preparing diary...done Appointment reminders enabled For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure 'CFLAGS=3D-Og -g3' PKG_CONFIG_PATH=3D/opt/qt5/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: pdf-occur-global-minor-mode: t shell-dirtrack-mode: t show-paren-mode: t recentf-mode: t display-time-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t Load-path shadows: None found. Features: (shadow mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr svg dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader emacsbug message rmc puny rfc822 mml mml-sec epa 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 cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs face-remap appt edmacro kmacro srb-cal+diary+appt todo-mode diary-lib diary-loaddefs cal-menu calendar cal-loaddefs srb-recentf noutline outline pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet pdf-isearch let-alist pdf-misc imenu pdf-tools compile cus-edit pdf-view bookmark text-property-search pp jka-compr pdf-cache pdf-info pdf-util image-mode exif srb-emms emms-librefm-stream emms-librefm-scrobbler emms-playlist-limit emms-volume emms-volume-mixerctl emms-volume-pulse emms-volume-amixer emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics emms-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap emms-streams emms-show-all emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-opusinfo emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-player-vlc advice emms-player-mpv emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file locate dired dired-loaddefs emms-setup emms emms-compat tramp-sh tramp-gvfs tramp-cache zeroconf url-util dbus xml tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec srb-light-theme paren recentf tree-widget wid-edit delsel cus-start cus-load srb-mode-line time flotte-karotte srb-misc derived thingatpt easy-mmode quail help-mode pcase tex-site info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 725576 10145) (symbols 48 24562 4) (strings 32 152593 3058) (string-bytes 1 10332720) (vectors 16 41284) (vector-slots 8 1373571 32340) (floats 8 789 129) (intervals 56 394 0) (buffers 1000 14)) From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 10:32:00 2020 Received: (at 39948) by debbugs.gnu.org; 6 Mar 2020 15:32:00 +0000 Received: from localhost ([127.0.0.1]:45728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAExE-0007Os-EK for submit@debbugs.gnu.org; Fri, 06 Mar 2020 10:32:00 -0500 Received: from mail-wr1-f53.google.com ([209.85.221.53]:46270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAExC-0007K5-Ts for 39948@debbugs.gnu.org; Fri, 06 Mar 2020 10:31:59 -0500 Received: by mail-wr1-f53.google.com with SMTP id n15so2833110wrw.13 for <39948@debbugs.gnu.org>; Fri, 06 Mar 2020 07:31:58 -0800 (PST) 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 :mime-version; bh=ZpjNhLC08IgcQP4uL4jnjc1oqR810QKZkZe19Sj9IGI=; b=uTA888DowEIJd9XV1ww8h1tVxQo7DRAX5Xqr5uJXpX3fNAxMPUmA82PgNpmyu5j2ou CHZHLRFPgkBNTTGdM/7w+g8iytvWb27p5yvxoOG0McyWR/+RH67Xxi7w+h555eu//Owv UBE8Agln/uVIulD0rvS9tmc7KGPeknL5e3b+Jkz0FfV0J+5vxU0Wd2JezZTzXQ1r8XQd pY+Nd/hkuJYDo4XfM0pS0r0CHxLfI8aGFZnvLafGBAXd6RgssVBHhQs0EXRCnCeZ6e6N lztCGEvPeoyGejeDPA7Nv98egfPJsZ6P5koUztI7Hz+BQVwUqmd0aZC8PX9f261bjH9B DALA== 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:mime-version; bh=ZpjNhLC08IgcQP4uL4jnjc1oqR810QKZkZe19Sj9IGI=; b=XO1O07+MZfGe42k3TTg2fd+8knVJjFoid96FoEj4C0cmGeKbRdQum9CSn+y+68Nyjz OzzkbGNLMUw80mMxkJZLhOXXCKLpIPOfh5oVw8yzeLyVxxBUBcSYZEljo4N69fRsngCb Axy4s4LY6thWIruvkC79WUbKVJwOuk8IcQ3aGzqo01hEdNZ1ger4Zns6yx5bzyQj5oI7 EGSP3u5PrNNOjo61YynDM42TXSGZl2C/a6qZmuf98V27McZuqCf0OkRnlHFwlfeHf3Hi IQNbSzX2TT4cWmg195ObUA9lofmd0S7/2Rj8Jwc7DAq5dmQiUBzIV1KPq6xvZzFTxvuk 1qLQ== X-Gm-Message-State: ANhLgQ1XNnNI72SYo3LmWCGtKbtRxf8kpNEQlhegZr5zsR5xafavLfIp eLSK4qwq19t+42Hpvs1dW4BtpTtw X-Google-Smtp-Source: ADFU+vsf/vZyGx0X/tnhCAUADT9BSFQ5y6RG+wDeeACGixxqKQpUfa84mL1YzJ5qMVfAsY1wYLwmzw== X-Received: by 2002:adf:f0c6:: with SMTP id x6mr4017105wro.273.1583508712479; Fri, 06 Mar 2020 07:31:52 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id i9sm982863wmd.37.2020.03.06.07.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 07:31:51 -0800 (PST) From: Robert Pluim To: Stephen Berman Subject: Re: bug#39948: 28.0.50; crash in fchmodat References: <87mu8tin5g.fsf@gmx.net> Date: Fri, 06 Mar 2020 16:31:50 +0100 In-Reply-To: <87mu8tin5g.fsf@gmx.net> (Stephen Berman's message of "Fri, 06 Mar 2020 15:16:43 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 39948 Cc: 39948@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) >>>>> On Fri, 06 Mar 2020 15:16:43 +0100, Stephen Berman said: Stephen> I updated from master today and now Emacs is crashing when I use Gnus. Stephen> The first time it happened I been reading news groups for a while, then Stephen> email arrived and when I pulled it into Gnus, Emacs crashed. Then I Stephen> restarted Emacs under GDB and now get the crash already on starting Gnus Stephen> (with my initializations; it doesn't happen when I start an unconfigured Stephen> Gnus in Emacs -Q). I tried to get a full backtrace, but the output of Stephen> `bt full' seemed to be in an endless loop; here's the start of the Stephen> backtrace: Wild Guess: does reverting 07da629926daf849aab248175c88cf53a5e21558 help? Or maybe 9d626dffc6ba62c0d7a1a5c712f576ed8684fd66 ? Robert From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 10:45:27 2020 Received: (at 39948) by debbugs.gnu.org; 6 Mar 2020 15:45:27 +0000 Received: from localhost ([127.0.0.1]:45758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAFAE-0008FK-W1 for submit@debbugs.gnu.org; Fri, 06 Mar 2020 10:45:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAFAD-0008F7-Aj for 39948@debbugs.gnu.org; Fri, 06 Mar 2020 10:45:25 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAFA7-0000dy-T1; Fri, 06 Mar 2020 10:45:19 -0500 Received: from [176.228.60.248] (port=3868 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAFA7-0005Jw-7n; Fri, 06 Mar 2020 10:45:19 -0500 Date: Fri, 06 Mar 2020 17:45:13 +0200 Message-Id: <83tv31pjw6.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-Reply-To: <87mu8tin5g.fsf@gmx.net> (message from Stephen Berman on Fri, 06 Mar 2020 15:16:43 +0100) Subject: Re: bug#39948: 28.0.50; crash in fchmodat References: <87mu8tin5g.fsf@gmx.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39948 Cc: 39948@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Stephen Berman > Date: Fri, 06 Mar 2020 15:16:43 +0100 > > I updated from master today and now Emacs is crashing when I use Gnus. > The first time it happened I been reading news groups for a while, then > email arrived and when I pulled it into Gnus, Emacs crashed. Then I > restarted Emacs under GDB and now get the crash already on starting Gnus > (with my initializations; it doesn't happen when I start an unconfigured > Gnus in Emacs -Q). I tried to get a full backtrace, but the output of > `bt full' seemed to be in an endless loop; here's the start of the > backtrace: > > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. > 0x000000000060c9b2 in fchmodat (dir=dir@entry=-100, > file=file@entry=0x4be6b40 "/home/steve/Mail/unsorted.nov", > mode=mode@entry=384, flags=flags@entry=0) > at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:65 > 65 { > (gdb) bt full > #0 0x000000000060c9b2 in fchmodat > (dir=dir@entry=-100, file=file@entry=0x4be6b40 "/home/steve/Mail/unsorted.nov", mode=mode@entry=384, flags=flags@entry=0) > at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:65 > #1 0x000000000060cae4 in orig_fchmodat > (dir=dir@entry=-100, file=file@entry=0x4be6b40 "/home/steve/Mail/unsorted.nov", mode=mode@entry=384, flags=flags@entry=0) > at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:33 > #2 0x000000000060c9e0 in fchmodat > (dir=dir@entry=-100, file=file@entry=0x4be6b40 "/home/steve/Mail/unsorted.nov", mode=mode@entry=384, flags=flags@entry=0) > at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:134 > #3 0x000000000060cae4 in orig_fchmodat > (dir=dir@entry=-100, file=file@entry=0x4be6b40 "/home/steve/Mail/unsorted.nov", mode=mode@entry=384, flags=flags@entry=0) > at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:33 > #4 0x000000000060c9e0 in fchmodat > (dir=dir@entry=-100, file=file@entry=0x4be6b40 "/home/steve/Mail/unsorted.nov", mode=mode@entry=384, flags=flags@entry=0) > at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:134 > #5 0x000000000060cae4 in orig_fchmodat > (dir=dir@entry=-100, file=file@entry=0x4be6b40 "/home/steve/Mail/unsorted.nov", mode=mode@entry=384, flags=flags@entry=0) > ter/lib/fchmodat.c:33 > > This pattern repeated for tens of thousands of frames, then I > interrupted it and typed `c': Sounds like infinite recursion, which causes stack overflow. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 11:27:04 2020 Received: (at 39948) by debbugs.gnu.org; 6 Mar 2020 16:27:04 +0000 Received: from localhost ([127.0.0.1]:45805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAFoW-0000pt-Cr for submit@debbugs.gnu.org; Fri, 06 Mar 2020 11:27:04 -0500 Received: from mout.gmx.net ([212.227.15.19]:38705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAFoU-0000pO-5Y for 39948@debbugs.gnu.org; Fri, 06 Mar 2020 11:27:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1583512015; bh=AwbzRMiMZMl6yOery3n5V8eAcJXKsMFQfTkGEYdfjeY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=DTqfJ3Srpe3wtADLZx4YI0EexCDsXnceTBBjsa8En6gbPY0MZaLZRunwLoT5ueh9V mPNWGFhc4Nr1EkwcYqw2oJOGIFKqz0t+BdAUgXx7kikfP8l+8j97cKmZDjoX3tRVB2 EnofFOLFpEvLBaRt+PTQes0I4N3Dc+ynN/A626QI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-lfs84 ([188.109.152.142]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MbzyP-1jmbtg0y2Z-00daHc; Fri, 06 Mar 2020 17:26:55 +0100 From: Stephen Berman To: Robert Pluim Subject: Re: bug#39948: 28.0.50; crash in fchmodat References: <87mu8tin5g.fsf@gmx.net> Date: Fri, 06 Mar 2020 17:26:54 +0100 In-Reply-To: (Robert Pluim's message of "Fri, 06 Mar 2020 16:31:50 +0100") Message-ID: <87o8t91mb5.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:YxjKoZ/5o7K/2covtqK2r1C1zD9bbbTfqDlL5mumewn2t8aLD5a 2EFmNEZjl26XPwAnixNZrgBX8+7mE8ux0AWvidVNPnvfHvbSzEi6P3auxTJvZTUazoLOucS ya2aVNMm5deLePIAcUnVUBCi+I9p9/vyupyWGMFyU8sB1lD5a+cfhfdTh0Y8FB4JpBCSd+I +8NbC31J4MJOkdT6CRZsQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:kw5WQypeCcU=:yKQViR+thQ3B+0t/tH8OGm ZAoHjdGEZ84n/57/Fz9K9ZRHtJmZ7f0BUNZS7Z1Jh73tMB38kgKrVYitO8to1hb35b9J4uW+n B5n/rrpjPb2OE7uoJH1vFEPuIC5caGXSvSuVa8y+CDLhZxKMW+d9UV2Y7oWIZjZlg6SmnsGsE tZhYj2eaC6oRZA9UtTmB4NQ2VQgKZZX8xwggqkf7F+qikBxqMrKyPCUTrmAs0RGVxMOLW8xuA 6mVdA42DqLX1vOpEqUIvP4lnUBXzaXSKSg0l7cRyf88rE+LUmsT/vwoQMU56XkA4fBi7dO4J9 R+6NqZXGKF9B7kJOgHLuHIr/o5UcjOsiGDTF00JCcDRDJhg6rSdEkArfw/9w5e2L1J/y48mty Ct3vpR/JetHvF+WNSi7qj1TzTiWsO77fZ2/hDFuFscYt4UTvy2D3xy+dUEoLV938KdmAqL3Eo t6po8GdLzUFAM0b0zwcnINg6r8ugUEUEVv2KwS7feQV0mXfP6Sovi91ATfBveqKNJcSnrnLX1 2tzo287S4cZ6Lw8c7sEEpcUl3aH+3xsAT73k/aeXUt0WHF+LTyutDTBsbcjMg/ojg0SVopGxW y8IyRfaO26XR52xKZe9yoJ3BuDOvZrZcpV6goUKfYdY36wHaFJzUSKYmPkbpLeEtaAH7B8A4l nWbgYbZ9LyUe6rPRqnjPH9QKDyvH3IDXPobafskyZ+r8eztzqwZvwz+LRh2lfAi6K2L5U62gT Wa1myjW8OweLphRhMWTy/QtgHar1isNFSVuW2zjX6E1si5wF68OkowMAw6ZKmulpv1hbe0r8q LvEL3ti9l4Jw9UWqhYJgJ4ocgL5mHXnlfYeLu1eysz/lLBFzporWTXclgERNFZdcawSJMwKG6 FyhW5xqh7//xmmMUatRjxGVqV2jffGufhnbsnoGzds1VHVhrIA3Uzr6JfC98SS+lgQxYO5krO 5/S+iY5hI1lehBZv6c6Sshcd5IbqxYgd5FSYqO2RHqE8gK/Pzfs9cbxETkSHp6MM1zyab4H9n 43jTleFqMdaAD80LUoJbq4Z0qsJHseJlcfJaclEFQwzxSrg05y/bIcjqMCDkrcxhAK34wleDM WI+J2+M32hF2GGxy2m17QL8ArguF0wtelRhuPa9buqHjf905VCEKyk9m8EZDC5VRrCw8eQTKK IRxw04unuaxjWwYhbqUtl8ZXez9POQ3a10hI+Z9XRmiUsovEgBuW6bVqHOHpSHOUOTj05gwF/ j3hKRsELsIhhVTR9Q X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39948 Cc: 39948@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, 06 Mar 2020 16:31:50 +0100 Robert Pluim wrote: >>>>>> On Fri, 06 Mar 2020 15:16:43 +0100, Stephen Berman > said: > > Stephen> I updated from master today and now Emacs is crashing > Stephen> when I use Gnus. The first time it happened I been > Stephen> reading news groups for a while, then email arrived and > Stephen> when I pulled it into Gnus, Emacs crashed. Then I > Stephen> restarted Emacs under GDB and now get the crash already > Stephen> on starting Gnus (with my initializations; it doesn't > Stephen> happen when I start an unconfigured Gnus in Emacs -Q). I > Stephen> tried to get a full backtrace, but the output of `bt > Stephen> full' seemed to be in an endless loop; here's the start > Stephen> of the backtrace: > > Wild Guess: does reverting 07da629926daf849aab248175c88cf53a5e21558 > help? Or maybe 9d626dffc6ba62c0d7a1a5c712f576ed8684fd66 ? Reverting 07da629 does appear to prevent the crash. Specifically, as a sanity check, before reverting, I ran my build from master under GDB again, started Gnus, but now Emacs didn't crash; however, then I composed a mail to myself in Gnus and upon sending it, Emacs did crash exactly as before in fchmodat. This I did `git revert -n 07da629926daf849aab248175c88cf53a5e21558', rebuilt, started Emacs again, started Gnus, there was no crash, sent a mail to myself, again with no crash, and pulled the mail into Gnus also without the crash. So it appears that that commit is indeed the cause of the crash. Thanks for pinpointing it. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 11:45:59 2020 Received: (at 39948) by debbugs.gnu.org; 6 Mar 2020 16:45:59 +0000 Received: from localhost ([127.0.0.1]:45816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAG6p-0001HG-Aa for submit@debbugs.gnu.org; Fri, 06 Mar 2020 11:45:59 -0500 Received: from mail-wr1-f53.google.com ([209.85.221.53]:45589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAG6n-0001H4-8r for 39948@debbugs.gnu.org; Fri, 06 Mar 2020 11:45:57 -0500 Received: by mail-wr1-f53.google.com with SMTP id v2so3118039wrp.12 for <39948@debbugs.gnu.org>; Fri, 06 Mar 2020 08:45:57 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=41T/cpYIBgt8qPaF9iA09cRZTuoje0rsGfRXcWakOO4=; b=JVPJG7H0DmTMPXifOvJhEBJtQJ6QBT3K0Yc+aFhlOFJ62Lt5Y+OAAHmI5jqtUyX3jr ufQcQFzjEpiB++Jk9qwIq+5YndR2AwZWeXEzaMxvWCh25kQ4n8kefww+MrrvTJ7ZtFHA qqvaZvP4nauq3tUWCipEf+l7Hwa2GdGlyaaxt619yd134uJ/5VnuQHtq9NYBMXXmC8D3 iYh9H4M63pT+pTM/q+Hck28pJeouPI3DmJ/FmxKKnjXJI2qmn+svznJNU28IYYn5lmAm 0EHq+dpV+Is6B3PMO/9NGBMCFaXSd8HLtqZsGkQXlxo2LtbBeV4SEdZmiovlkoZHi/0T Ue/w== 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:mime-version:content-transfer-encoding; bh=41T/cpYIBgt8qPaF9iA09cRZTuoje0rsGfRXcWakOO4=; b=WauYjjHYl5CVq8w73CKXULPqRgMa3ggnhOWs/FENqFGHxkoqVM8vSctz3AY2sibswk Ro1TI2ef0LaALLQZSpwz2j8ADEE9uRiQhoF9dH2GkDC1XIDZn8d+hpL5uSq4Xf/K601v KjQcKlF45R4rZbhO47iKZ1wxZPt8eeJEeVti8kktwsSsudHvMV+yGISQRXfGb0eSVZDE vCmcaFUUcbQhT2gbKPdPW6Id0OTB0XR16ToIwSRULnWsNq7ZyGN0wkjPzn4Bn/wO2TuY Ds2kB8ZSBXZTsZYlRS63WAFgpERgPxhhy7MLhroZldsz9/zUaOXl5ulm9V9J2JqiW2gx YSlw== X-Gm-Message-State: ANhLgQ3/13T9wk8FZVNBkCvYd0aJpYhJtHlB9p6HR0zT3nOwMAYlzBMs /Uxtv1Syi6rzQ3kGb/zm0W8= X-Google-Smtp-Source: ADFU+vubtWk7VCg9Q7D91l6MaNEIZj7CUdMon3KTUEeF95NNczmcRolL1W2JVjT1spASkmqYIjaykA== X-Received: by 2002:adf:eec3:: with SMTP id a3mr5114592wrp.170.1583513151227; Fri, 06 Mar 2020 08:45:51 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id z135sm14420873wmc.20.2020.03.06.08.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 08:45:50 -0800 (PST) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#39948: 28.0.50; crash in fchmodat References: <87mu8tin5g.fsf@gmx.net> <83tv31pjw6.fsf@gnu.org> Date: Fri, 06 Mar 2020 17:45:49 +0100 In-Reply-To: <83tv31pjw6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 Mar 2020 17:45:13 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 39948 Cc: 39948@debbugs.gnu.org, Stephen Berman , Paul Eggert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) >>>>> On Fri, 06 Mar 2020 17:45:13 +0200, Eli Zaretskii said: >> From: Stephen Berman >> Date: Fri, 06 Mar 2020 15:16:43 +0100 >>=20 >> I updated from master today and now Emacs is crashing when I use Gnu= s. >> The first time it happened I been reading news groups for a while, t= hen >> email arrived and when I pulled it into Gnus, Emacs crashed. Then I >> restarted Emacs under GDB and now get the crash already on starting = Gnus >> (with my initializations; it doesn't happen when I start an unconfig= ured >> Gnus in Emacs -Q). I tried to get a full backtrace, but the output = of >> `bt full' seemed to be in an endless loop; here's the start of the >> backtrace: >>=20 >> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. >> 0x000000000060c9b2 in fchmodat (dir=3Ddir@entry=3D-100, >> file=3Dfile@entry=3D0x4be6b40 "/home/steve/Mail/unsorted.nov", >> mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) >> at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:65 >> 65 { >> (gdb) bt full >> #0 0x000000000060c9b2 in fchmodat >> (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/= Mail/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) >> at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:65 >> #1 0x000000000060cae4 in orig_fchmodat >> (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/= Mail/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) >> at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:33 >> #2 0x000000000060c9e0 in fchmodat >> (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/= Mail/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) >> at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:134 >> #3 0x000000000060cae4 in orig_fchmodat >> (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/= Mail/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) >> at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:33 >> #4 0x000000000060c9e0 in fchmodat >> (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/= Mail/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) >> at /home/steve/src/emacs/emacs-master/lib/fchmodat.c:134 >> #5 0x000000000060cae4 in orig_fchmodat >> (dir=3Ddir@entry=3D-100, file=3Dfile@entry=3D0x4be6b40 "/home/steve/= Mail/unsorted.nov", mode=3Dmode@entry=3D384, flags=3Dflags@entry=3D0) >> ter/lib/fchmodat.c:33 >>=20 >> This pattern repeated for tens of thousands of frames, then I >> interrupted it and typed `c': Eli> Sounds like infinite recursion, which causes stack overflow. lib/fchmodat.c:fchmodat can call lib/fchmodat.c:orig_fchmodat, which can call fchmodat. Presumably that last one is meant to be the system fchmodat, but it=CA=BCs calling the fchmodat.c:fchmodat one instead. CC'ing Paul. Robert From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 16:18:01 2020 Received: (at 39948) by debbugs.gnu.org; 6 Mar 2020 21:18:01 +0000 Received: from localhost ([127.0.0.1]:45946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAKM5-0003AY-4s for submit@debbugs.gnu.org; Fri, 06 Mar 2020 16:18:01 -0500 Received: from mout.gmx.net ([212.227.15.15]:58835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAKM3-0003AK-1M for 39948@debbugs.gnu.org; Fri, 06 Mar 2020 16:17:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1583529472; bh=DzORle0qQW4sFc4uPe/UpG3aAydJ8Arx2j0wTrOxgfc=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=HedRsbN2k71gaDrtf7GTSiQtIm57NPHhtzebmBbR32hkDrfenCmn9H2kCwpca7Al8 iyzzypKQf7ijC03HwFlnawLoelfWBc2x8jbkXY6GWtfz3RSckOrNdoaFe4I3iTbbuc fAt1Qf+KouKci3UYvdH7/h8PNU5encrTQcRYLbnM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-lfs84 ([188.109.152.142]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MdvmO-1jjvp014hK-00b7X3; Fri, 06 Mar 2020 22:17:52 +0100 From: Stephen Berman To: Robert Pluim Subject: Re: bug#39948: 28.0.50; crash in fchmodat References: <87mu8tin5g.fsf@gmx.net> <87o8t91mb5.fsf@gmx.net> Date: Fri, 06 Mar 2020 22:17:51 +0100 In-Reply-To: <87o8t91mb5.fsf@gmx.net> (Stephen Berman's message of "Fri, 06 Mar 2020 17:26:54 +0100") Message-ID: <87r1y5uqrk.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:0IgKpUQYRyBlCsB/Ws4WfVzzdFqD6YwHBT5G14XF/3nOpTD1e/x 0+NZIbtsimAEsGPGNCIrZL5ZGAUIoFni3+Bq7seUm6vDNxfcc/YebZOfOmP+SI0vSQzcIjL PnG0UI030kFQ/tRter+2NHlsurGDvZkSM7a4w3SMwUDbvcVcREt0Y9lDA5b9b6NKqLEhZ0h Em8exKYlWJbM8lTQEZqGw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0+YE1UOM3e0=:CYbarOJE60R3ITINJBw8zT hcJSX5VcsPMjdWlBBD7RAKsZahbVdk/4ET1zwZCDA0yQLwQ1G6Ah9Ia7H0XQvdJ/Oy+dTeV7Q x33E9TRBiQsa+eid2Ke6kg5a11pwirxyDuh2dE854awVRq3pk9nibZY/uoK3AwvqSqr/7G51l NTxHkSNGi1IF4ImwVRUsaWCAJPzIdu8RuQ1+Rp5OP/nScSOo1NFGccMj6R8Jo5hNzTBnABbe9 2dlwxWBzg7DUYRqvgUR1U+87KaRFx+3LPL4xLva7pfXMAvNu4Uzcxj2BvT6esxj2DxRphxFPq 7t6Nj3oSQSBvHAQ72lOZO9RxrlCrzBigg3lmbjhZjSRfSgstogY+esueke8Y8N7t/0m1LgM58 tpB8W3ZSFL0zSsahxyuMdp2nYFFsfxs7tXdq0kJhqshKvXV28FvQeeS1j9kK06KvYtD2bMIcS N+36l9uSoizpyeCQyl+lHDAa5jgqVzs1LuMn1xDp+GZD0jlh93k/ghrYStRNfwaBv0nWqROiJ gGOvbbrIZX95PK3Ku/tYXtOl29XwWRzrK0qPj1446zHQszuUw+njHld/tszSNPxNjfL5PPRnB 8prc75N6PTNmBZ58xljW/78TiSfv05F6ynQ79MYHeQkRUeHyouFb+CbP7aB81VMT/55Scj5S8 BXOSKcJybXKTJjAx0ZwobymsDZ8fxWUX4WuERUvU03HtWDYqNtlItGN2oCS934a9VF24o/k+2 Finp65VybkO8xRcHufQAc5Ps5y6bN8HXy25FTOiK62p6BBALxwVOvrmNm7USILqg5PPJaoti4 7gLnP33Rq6UDzYLpHT6mHkFKy/sTZJBJBsn/7L6kwTnqkMHpyxelDRPFHVrGKYO2DkeLdeBzK iD8IPsJqgQofG2J3hSvDFv4V6/NMlOrRJv2pnwm5ZJsolzJzju895ulr6tzolYeFXduE4Se0k M0C+6Kg3mKwa0GMgJLFAgEucXIUy0NIp2aukMg/nio18BYK+1FibpwLIsgSNflGXo7dyDHaP1 t+7QQO4w7Hn4fXTTHsJ32xs7F1frE4LA2y4yGNuI3+TnoShh+lyNU0jkqt80Txsfbci4EFLah EC5o354L1RUPv3cjmwGiwxfntTkOBzc4YxCsBAVi214LSJnMG2jLuWG03H68xx5qNdRO8XRaU G7nQyUbRznhql4DJtrYHykyYOu38fiFhUL/IURu3vUjcxzqlaZCOjMfpFlsc6AEir/g/Ow56R PboyRC33kt1if2oVV X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39948 Cc: 39948@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, 06 Mar 2020 17:26:54 +0100 Stephen Berman wrote: > On Fri, 06 Mar 2020 16:31:50 +0100 Robert Pluim wrote: > >>>>>>> On Fri, 06 Mar 2020 15:16:43 +0100, Stephen Berman >> said: >> >> Stephen> I updated from master today and now Emacs is crashing >> Stephen> when I use Gnus. The first time it happened I been >> Stephen> reading news groups for a while, then email arrived and >> Stephen> when I pulled it into Gnus, Emacs crashed. Then I >> Stephen> restarted Emacs under GDB and now get the crash already >> Stephen> on starting Gnus (with my initializations; it doesn't >> Stephen> happen when I start an unconfigured Gnus in Emacs -Q). I >> Stephen> tried to get a full backtrace, but the output of `bt >> Stephen> full' seemed to be in an endless loop; here's the start >> Stephen> of the backtrace: >> >> Wild Guess: does reverting 07da629926daf849aab248175c88cf53a5e21558 >> help? Or maybe 9d626dffc6ba62c0d7a1a5c712f576ed8684fd66 ? > > Reverting 07da629 does appear to prevent the crash. Specifically, as a > sanity check, before reverting, I ran my build from master under GDB > again, started Gnus, but now Emacs didn't crash; however, then I > composed a mail to myself in Gnus and upon sending it, Emacs did crash > exactly as before in fchmodat. This I did `git revert -n > 07da629926daf849aab248175c88cf53a5e21558', rebuilt, started Emacs again, > started Gnus, there was no crash, sent a mail to myself, again with no > crash, and pulled the mail into Gnus also without the crash. So it > appears that that commit is indeed the cause of the crash. Thanks for > pinpointing it. I also got the crash using Tramp, so I guess 9d626dff also needs to be fixed (or reverted). Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 18:54:20 2020 Received: (at 39948) by debbugs.gnu.org; 6 Mar 2020 23:54:20 +0000 Received: from localhost ([127.0.0.1]:46002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAMnL-0006oa-On for submit@debbugs.gnu.org; Fri, 06 Mar 2020 18:54:19 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:37484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAMnJ-0006oN-Im for 39948@debbugs.gnu.org; Fri, 06 Mar 2020 18:54:18 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D542A1600B7; Fri, 6 Mar 2020 15:54:11 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 9ZOXhqYCwvnW; Fri, 6 Mar 2020 15:54:11 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 12E111600C3; Fri, 6 Mar 2020 15:54:11 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LkQvrJDR9tvt; Fri, 6 Mar 2020 15:54:10 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id EBF321600B7; Fri, 6 Mar 2020 15:54:10 -0800 (PST) Subject: Re: bug#39948: 28.0.50; crash in fchmodat To: Stephen Berman References: <87mu8tin5g.fsf@gmx.net> <83tv31pjw6.fsf@gnu.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Fri, 6 Mar 2020 15:54:07 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39948 Cc: 39948@debbugs.gnu.org, Robert Pluim , Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 3/6/20 8:45 AM, Robert Pluim wrote: > lib/fchmodat.c:fchmodat can call lib/fchmodat.c:orig_fchmodat, which > can call fchmodat. Presumably that last one is meant to be the system > fchmodat, but it=CA=BCs calling the fchmodat.c:fchmodat one instead. Yes, orig_fchmodat is supposed to call the system fchmodat. Do you get the same problem with 'make bootstrap'? If not, we're done. Otherwise, to help debug this please send the preprocessor output when=20 compiling lib/fchmodat.c. Something like this: rm lib/fchmodat.o make V=3D1 Now, repeat the GCC command that compiles lib/fchmod.c, except use 'gcc=20 -E' instead of 'gcc -c'. Also, what are the values of HAVE_FCHMODAT (see src/config.h), and of=20 GNULIB_FCHMODAT and REPLACE_FCHMODAT (look at the output of the command=20 'diff -u lib/sys_stat.in.h lib/sys/stat.h')? Also, please double-check=20 lib/gnulib.mk for those three values. From your symptoms I would guess for you HAVE_FCHMODAT and=20 GNULIB_FCHMODAT are 1 but REPLACE_FCHMODAT is 0. But if that's the case,=20 your build shouldn't be compiling lib/fchmodat.c at all, because=20 'configure' says this: if test $HAVE_FCHMODAT =3D 0 || test $REPLACE_FCHMODAT =3D 1; then gl_LIBOBJS=3D"$gl_LIBOBJS fchmodat.$ac_objext" fi and so we need to investigate why this 'if' is being triggered, From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 19:31:19 2020 Received: (at 39948) by debbugs.gnu.org; 7 Mar 2020 00:31:19 +0000 Received: from localhost ([127.0.0.1]:46045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jANN9-0007j5-EW for submit@debbugs.gnu.org; Fri, 06 Mar 2020 19:31:19 -0500 Received: from mout.gmx.net ([212.227.17.22]:41273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jANN6-0007ip-SB for 39948@debbugs.gnu.org; Fri, 06 Mar 2020 19:31:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1583541060; bh=zrQkUQsaZXlwfGGfioSZdyD3tjVrxsxHVsv3zhe1zgA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=WkPOAlxZHeHwxb+DZk6MWBpCs8AmUAYINYhau9Ie32eKhvVVle4ilJ5mIv4WahrHg vqNm/cVkHFfSNfQQ0DiiHHKqku6GgKrKbcUF6x53X8cLAqDd1SvaFI/i4d8LDAsV9t BWQ/F8XzoAPKZ/J7FeAevm/8XJ54NnrQvEo3Wv4Y= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-lfs84 ([188.109.152.142]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mnpnm-1jgevh423O-00pOas; Sat, 07 Mar 2020 01:31:00 +0100 From: Stephen Berman To: Paul Eggert Subject: Re: bug#39948: 28.0.50; crash in fchmodat References: <87mu8tin5g.fsf@gmx.net> <83tv31pjw6.fsf@gnu.org> Date: Sat, 07 Mar 2020 01:30:58 +0100 In-Reply-To: (Paul Eggert's message of "Fri, 6 Mar 2020 15:54:07 -0800") Message-ID: <87h7z19fb1.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:lc48cgBiLgWwgELVCYdFTf7sBZVwQUrAQlzcZONIw6eiDxpYOEP NIBnCmFwaPSXgkJoxSuUvS3YP69oux/ha/Ehy5sxNVh5Htd2mroHOh0hsD+WbXTGGAsRDZm HLPI6G1sw8gKTt6UUQPm4QCp/GEQ/uGH3FIP1XtZeEtYsFlFLyOi1Y9C6uLjlFb/pHGTgL5 MHcvDTDmhwo/4dOTqdGRQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bflm1hoC+4o=:m3bS88lfvo5tKGJWTMrIJ8 My4frKEeLD6vItzGw3qVcrcwJGhR1M3pGmOXa/P4Fj/u1L/i+7ZWDNXfhyaRtw+zDbKaQAOE4 nCc0KDL7FvH8Z7KsU5gsfu/OgVHbolr9tHYYi2mT4ayVpKCt3TtQonU5YWCHnsxjhBTiolWCe HvTnSKdjAwKPLfEts59n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/SLcjZAnR1kqU X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39948 Cc: 39948@debbugs.gnu.org, Robert Pluim , Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, 6 Mar 2020 15:54:07 -0800 Paul Eggert wrote: > On 3/6/20 8:45 AM, Robert Pluim wrote: > >> lib/fchmodat.c:fchmodat can call lib/fchmodat.c:orig_fchmodat, which >> can call fchmodat. Presumably that last one is meant to be the system >> fchmodat, but it=CA=BCs calling the fchmodat.c:fchmodat one instead. > > Yes, orig_fchmodat is supposed to call the system fchmodat. > > Do you get the same problem with 'make bootstrap'? If not, we're done. I was just about to shut down for the night when your mail arrived, so I did `make bootstrap' but got the same crash both when sending a mail with Gnus and when transfering a file with Tramp. I'll follow up on your other suggestions on Saturday and report back. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 07 08:43:49 2020 Received: (at 39948) by debbugs.gnu.org; 7 Mar 2020 13:43:50 +0000 Received: from localhost ([127.0.0.1]:46427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAZk5-000395-LG for submit@debbugs.gnu.org; Sat, 07 Mar 2020 08:43:49 -0500 Received: from mout.gmx.net ([212.227.15.15]:36615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAZk4-00038r-7z for 39948@debbugs.gnu.org; Sat, 07 Mar 2020 08:43:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1583588611; bh=+uIRLHvSI/9LQAWQDzSrRKXA/tlmiZHK7TEMVktdUCQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Zkbn6ZPQx1PW7FbFoV6ave44BJ2HuxrdP8T44r9wKRoXlv9X+ouX/q44BLHDI32zB 3FagcYOnxoyl2MA//SrNAmDLz14nZowFElFUsljLXYpx/IJg965IvdP4C1yD8XlL9w r2Qm0gVYzdEb8yteHSYqT6C0uXqAWhGZLuwLfo24= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-lfs84 ([188.109.200.244]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N79yQ-1jQzfy3Xhc-017WWl; Sat, 07 Mar 2020 14:43:31 +0100 From: Stephen Berman To: Paul Eggert Subject: Re: bug#39948: 28.0.50; crash in fchmodat References: <87mu8tin5g.fsf@gmx.net> <83tv31pjw6.fsf@gnu.org> <87h7z19fb1.fsf@gmx.net> Date: Sat, 07 Mar 2020 14:43:29 +0100 In-Reply-To: <87h7z19fb1.fsf@gmx.net> (Stephen Berman's message of "Sat, 07 Mar 2020 01:30:58 +0100") Message-ID: <87eeu4b7r2.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:KiJnjZRci4o+uDWJa9u9ZymNGJpYjTdybHdy6oJtYdmlbz5wDmz ye39YZcSPRra0xm3XZ6a0/I7Is4dnKb4E7xXlWG9tfUGqVg/jPvAk11IdQ8amkpNzkcgXOY rHDG33kiDAScmQaNwxw4qP767+l6/J0GdnKX4j8pZY8xzbJIh7gkPq6qEj9ErA9T0Kvvtsi H5dj0GyKhiTBlL34bXCLw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bcRm4v9u9qs=:Ry3WdNkLhBNoBwjmih99+t VLc2GSe+vZMgg4+i7072NLV2sHYJwtb/nXLlMLtfK5JTq3J9Vn79XYCLskmsEu9o1XItYfCKf BeVRQSqZMylWM+cbCb9TF2Tgmglcl8oJO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YjdGndaIhTsAqci+GaWIE2ptv4HCYn0VNeQ2BF1CIxie9ZjILBb+g0lkD7nQ76zH/2 vABzLgKxTijDacG7K X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39948 Cc: 39948@debbugs.gnu.org, Robert Pluim , Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 07 Mar 2020 01:30:58 +0100 Stephen Berman = wrote: > On Fri, 6 Mar 2020 15:54:07 -0800 Paul Eggert wrote: > >> On 3/6/20 8:45 AM, Robert Pluim wrote: >> >>> lib/fchmodat.c:fchmodat can call lib/fchmodat.c:orig_fchmodat, which >>> can call fchmodat. Presumably that last one is meant to be the system >>> fchmodat, but it=CA=BCs calling the fchmodat.c:fchmodat one instead. >> >> Yes, orig_fchmodat is supposed to call the system fchmodat. >> >> Do you get the same problem with 'make bootstrap'? If not, we're done. > > I was just about to shut down for the night when your mail arrived, so I > did `make bootstrap' but got the same crash both when sending a mail > with Gnus and when transfering a file with Tramp. I'll follow up on > your other suggestions on Saturday and report back. >> Otherwise, to help debug this please send the preprocessor output when >> compiling lib/fchmodat.c. Something like this: >> >> rm lib/fchmodat.o >> make V=3D1 >> Now, repeat the GCC command that compiles lib/fchmod.c, except use 'gcc = -E' >> instead of 'gcc -c'. >> >> Also, what are the values of HAVE_FCHMODAT (see src/config.h), and of >> GNULIB_FCHMODAT and REPLACE_FCHMODAT (look at the output of the command= =20 >> 'diff -u lib/sys_stat.in.h lib/sys/stat.h')? Also, please double-check >> lib/gnulib.mk for those three values. >> >> From your symptoms I would guess for you HAVE_FCHMODAT and GNULIB_FCHMOD= AT are >> 1 but REPLACE_FCHMODAT is 0. But if that's the case, your build shouldn'= t be >> compiling lib/fchmodat.c at all, because 'configure' says this: >> >> if test $HAVE_FCHMODAT =3D 0 || test $REPLACE_FCHMODAT =3D 1; then >> gl_LIBOBJS=3D"$gl_LIBOBJS fchmodat.$ac_objext" >> fi >> >> and so we need to investigate why this 'if' is being triggered, It appears that my OP was a false alarm. I build emacs out-of-tree but several months ago I ran `make TAGS' in the source directory and that seems to have also compiled the files in the source lib/, since it contained object files dated from that time. Is it possible that these were used when building in the build directory? Anyway, I ran `make distclean' in the Emacs source directory and also in the lib/ build directory, then reconfigured and rebuilt Emacs, and now I no longer get the crash. Unfortunately, I rashly did this before trying out your other suggestions, so I no longer have the previous state to check. But I can at least confirm that HAVE_FCHMODAT, GNULIB_FCHMODAT and REPLACE_FCHMODAT are (now) all set to 1. I'll keep running with this build and if the crash does not happen anymore, I'll close the bug later today or tomorrow, unless someone wants further testing or clarification. Thanks for the helpful feedback. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 16:28:24 2020 Received: (at 39948-done) by debbugs.gnu.org; 8 Mar 2020 20:28:24 +0000 Received: from localhost ([127.0.0.1]:49337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jB2XA-0004hS-Ae for submit@debbugs.gnu.org; Sun, 08 Mar 2020 16:28:24 -0400 Received: from mout.gmx.net ([212.227.17.21]:51589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jB2X8-0004h8-I4 for 39948-done@debbugs.gnu.org; Sun, 08 Mar 2020 16:28:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1583699292; bh=Qwd902RvxIEtgS2WQxs0JNxhjwWJmuyJrDdzofdvSec=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date; b=ZMv9ivHgBwwZHx+i53sc2wPgLbVVWnD0MCcuMpyyXRwr6Gumw11CfMl4jBshZ3uNm nmUOINldIlO+rnvX9Z+BzGtJl1Uy1ZG+MdAIZXbv60GKdANg2ZxyhHKxTXpxKom5ZD BLbfBqE/4yxrZD3sPzfbl3BeSRIbgPLGbt5v8UsE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-lfs84 ([84.61.243.229]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MzhnN-1jWoXK3x8D-00vbsH; Sun, 08 Mar 2020 21:28:12 +0100 From: Stephen Berman To: Paul Eggert Subject: Re: bug#39948: 28.0.50; crash in fchmodat References: <87mu8tin5g.fsf@gmx.net> <83tv31pjw6.fsf@gnu.org> <87h7z19fb1.fsf@gmx.net> <87eeu4b7r2.fsf@gmx.net> Date: Sun, 08 Mar 2020 21:28:10 +0100 Message-ID: <8736aiiobp.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:B78tbWM3t72y+lzDwxPWs4C0jNSq81yeT6iQ+Fw2yZhOlLXXbZc nEFw9r1X/Ep+GC1/bW4RCk60hXXmvAFDHM8mn7gag84g5rt2lDKCR1V/X614L87/jDksP01 ytBt9OLA7v2Gpr49mecAVrC+71bhwJ3Qsv6plvhiZOLtU/M2YZyfGUKfF6hYHhUFCFGCYdV BPXdYhpyyiTGltd//4M0A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:GQLAndWbJmM=:aMdmHZ2QCAMYnDJ7u8ZBwY Xn39hUnmuHsUsE2BasIrjP0LkEFiqfk4Ukyl2xUoTvNNdkBUCZBShu88MqZflKyjzw6a23+ak G8Fi5Wz4IT8FS44YP4QmIrOw/7GjLwPOem5H8PIIR7ldz6AWmWTyjkCm1iRZYzj6JCqd4VVEH utcQKIr5H6rh4y4txS26xrQosK2QfkwtJgcccW4u339bLcG8Z+jfVnx7QjVmJQrLXT6o609Z+ /2EurVY2TsG05PUqhJ/Nj27Sj2FFCx0hFD4DVNTyTE2rVDX3fmv3Q5pSh5wt9Ec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BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 07 Mar 2020 14:43:29 +0100 Stephen Berman wrote: > I'll keep running with this build and if the crash does not happen > anymore, I'll close the bug later today or tomorrow, unless someone > wants further testing or clarification. Closed. Steve Berman From unknown Sun Jun 15 08:06:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 06 Apr 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator