From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: me@alandmoore.com Newsgroups: gmane.emacs.bugs Subject: bug#25549: 25.1; eshell grep gives inconsistent output Date: Thu, 26 Jan 2017 16:06:44 -0600 Message-ID: <87tw8lzdaj.fsf@it-alanm.williamson-tn.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485470914 17273 195.159.176.226 (26 Jan 2017 22:48:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 22:48:34 +0000 (UTC) To: 25549@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 26 23:48:29 2017 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 1cWspw-0002kv-Ol for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 23:48:12 +0100 Original-Received: from localhost ([::1]:41626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWsq2-0001yM-4k for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 17:48:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWspr-0001wP-7K for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:48:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWspm-000289-GE for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:48:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWspm-00027r-CF for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWspm-0000hK-69 for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: me@alandmoore.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jan 2017 22:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25549 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.14854708502615 (code B ref -1); Thu, 26 Jan 2017 22:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jan 2017 22:47:30 +0000 Original-Received: from localhost ([127.0.0.1]:46442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWspF-0000g7-Qq for submit@debbugs.gnu.org; Thu, 26 Jan 2017 17:47:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWspE-0000fu-7X for submit@debbugs.gnu.org; Thu, 26 Jan 2017 17:47:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWsp3-0001QW-FR for submit@debbugs.gnu.org; Thu, 26 Jan 2017 17:47:23 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cWsp3-0001QP-CK for submit@debbugs.gnu.org; Thu, 26 Jan 2017 17:47:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWsox-0001sb-8T for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:47:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWsor-0001LY-Ad for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:47:11 -0500 Original-Received: from mx1.williamson-tn.org ([72.237.174.11]:60854) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cWsor-0001Jh-3N for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:47:05 -0500 X-ASG-Debug-ID: 1485468447-0a345f7be62ca960001-HqB3X1 Original-Received: from mailman.williamson-tn.org ([192.168.1.6]) by mx1.williamson-tn.org with ESMTP id r1vxMrhXwTNSIkB3 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 26 Jan 2017 16:07:27 -0600 (CST) X-Barracuda-Envelope-From: me@alandmoore.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.1.6 Original-Received: from it-alanm.williamson-tn.org ([192.168.88.40]) by mailman.williamson-tn.org with ESMTP (TLS encrypted); Thu, 26 Jan 2017 16:07:08 -0600 X-Barracuda-RBL-IP: 192.168.88.40 X-ASG-Orig-Subj: 25.1; eshell grep gives inconsistent output X-Barracuda-Connect: UNKNOWN[192.168.1.6] X-Barracuda-Start-Time: 1485468447 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://192.168.1.65:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 10940 X-Virus-Scanned: by bsmtpd at williamson-tn.org X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=NO_REAL_NAME X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.36096 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 NO_REAL_NAME From: does not include a real name X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:128622 Archived-At: When using grep on a large file in eshell, the output is sometimes inconsistent. For example, when grepping for a string in my server's apache2 access log (~5 MB) I got anywhere from around 200 to around 1300 results, just running the same grep command over and over (the file itself was not changing significantly). The bug cannot be consistently reproduced, but has happened in multiple situations and others have reportedly reproduced it per discussion on reddit (https://www.reddit.com/r/emacs/comments/5qbd70/trampeshellgrep_returning_wildly_different/). In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.5) of 2016-12-23 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11901000 System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: EShell Minor modes in effect: magit-auto-revert-mode: t global-git-commit-mode: t diff-auto-refine-mode: t global-flycheck-mode: t pyvenv-mode: t helm-mode: t shell-dirtrack-mode: t async-bytecomp-package-mode: t delete-selection-mode: t cua-mode: t electric-pair-mode: t pdf-occur-global-minor-mode: t show-paren-mode: t tabbar-mwheel-mode: t tabbar-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Git finished [2 times] C-c p is undefined Quit [C-t] show common commands, [?] describe events, [C-h i] show manual Running git push -v gl master:refs/heads/master [2 times] Git finished [C-t] show common commands, [?] describe events, [C-h i] show manual Running git push -v production master:refs/heads/master [2 times] Git finished [2 times] Making completion list... Load-path shadows: ~/.emacs.d/elisp/org2blog/metaweblog hides /home/alanm/.emacs.d/elpa/metaweblog-20141130.605/metaweblog /home/alanm/.emacs.d/elpa/company-20170112.2005/company-xcode hides ~/.emacs.d/elisp/company-xcode /home/alanm/.emacs.d/elpa/company-20170112.2005/company hides ~/.emacs.d/elisp/company /home/alanm/.emacs.d/elpa/company-20170112.2005/company-abbrev hides ~/.emacs.d/elisp/company-abbrev /home/alanm/.emacs.d/elpa/company-20170112.2005/company-dabbrev hides ~/.emacs.d/elisp/company-dabbrev /home/alanm/.emacs.d/elpa/company-20170112.2005/company-dabbrev-code hides ~/.emacs.d/elisp/company-dabbrev-code /home/alanm/.emacs.d/elpa/company-20170112.2005/company-oddmuse hides ~/.emacs.d/elisp/company-oddmuse /home/alanm/.emacs.d/elpa/company-20170112.2005/company-etags hides ~/.emacs.d/elisp/company-etags /home/alanm/.emacs.d/elpa/company-20170112.2005/company-eclim hides ~/.emacs.d/elisp/company-eclim /home/alanm/.emacs.d/elpa/company-20170112.2005/company-nxml hides ~/.emacs.d/elisp/company-nxml /home/alanm/.emacs.d/elpa/company-20170112.2005/company-ispell hides ~/.emacs.d/elisp/company-ispell /home/alanm/.emacs.d/elpa/company-20170112.2005/company-gtags hides ~/.emacs.d/elisp/company-gtags /home/alanm/.emacs.d/elpa/company-20170112.2005/company-tempo hides ~/.emacs.d/elisp/company-tempo /home/alanm/.emacs.d/elpa/company-20170112.2005/company-elisp hides ~/.emacs.d/elisp/company-elisp /home/alanm/.emacs.d/elpa/company-20170112.2005/company-template hides ~/.emacs.d/elisp/company-template /home/alanm/.emacs.d/elpa/company-20170112.2005/company-keywords hides ~/.emacs.d/elisp/company-keywords /home/alanm/.emacs.d/elpa/company-20170112.2005/company-files hides ~/.emacs.d/elisp/company-files /home/alanm/.emacs.d/elpa/company-20170112.2005/company-semantic hides ~/.emacs.d/elisp/company-semantic /home/alanm/.emacs.d/elpa/company-20170112.2005/company-clang hides ~/.emacs.d/elisp/company-clang /home/alanm/.emacs.d/elpa/autopair-20160304.437/autopair hides ~/.emacs.d/elisp/autopair /home/alanm/.emacs.d/elpa/company-20170112.2005/company-css hides ~/.emacs.d/elisp/company-css /home/alanm/.emacs.d/elpa/cmake-mode-20160928.505/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode ~/.emacs.d/elisp/rst hides /usr/share/emacs/25.1/lisp/textmodes/rst /home/alanm/.emacs.d/elpa/css-mode-1.0/css-mode hides /usr/share/emacs/25.1/lisp/textmodes/css-mode /home/alanm/.emacs.d/elpa/scala-mode-20170118.558/ob-scala hides /usr/share/emacs/25.1/lisp/org/ob-scala /home/alanm/.emacs.d/elpa/soap-client-3.1.1/soap-inspect hides /usr/share/emacs/25.1/lisp/net/soap-inspect /home/alanm/.emacs.d/elpa/soap-client-3.1.1/soap-client hides /usr/share/emacs/25.1/lisp/net/soap-client /home/alanm/.emacs.d/elpa/ntlm-2.1.0/ntlm hides /usr/share/emacs/25.1/lisp/net/ntlm /home/alanm/.emacs.d/elpa/seq-20151121.1017/seq hides /usr/share/emacs/25.1/lisp/emacs-lisp/seq /home/alanm/.emacs.d/elpa/tabulated-list-20120406.1351/tabulated-list hides /usr/share/emacs/25.1/lisp/emacs-lisp/tabulated-list Features: (shadow sort mail-extr emacsbug sendmail tramp-cmds company-tern dash-functional url-http-ntlm ntlm calc calc-loaddefs calc-macs hmac-md5 hex-util md4 ac-js2 skewer-mode cache-table simple-httpd js2-highlight-vars tern-auto-complete tern cursor-sensor tabify conf-mode tramp-cache winner diff network-stream nsm starttls warnings company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-cmake company-xcode company-clang company-eclim company-template company-css company-nxml company-bbdb company-jedi jedi jedi-core python-environment epc ctable concurrent deferred auto-complete popup vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher ibuffer-vc em-unix em-term term ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-branch magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode magit-git crm magit-section magit-popup git-commit magit-utils log-edit message idna rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor web-mode disp-table whitespace vc-git diff-mode rainbow-mode color emmet-mode css-mode misearch multi-isearch lua-mode server ob-lilypond zenburn-theme flycheck subr-x org-clock org2blog ox-wp ox-latex ox-icalendar ox-html ox-ascii ox-publish ox org-element cl metaweblog xml-rpc timezone url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs js2-refactor js2r-paredit js2r-conveniences js2r-conditionals js2r-wrapping js2r-functions js2r-vars multiple-cursors-core rect js2r-iife js2r-formatting js2r-helpers dash js2-mode js sgml-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs django-snippets yasnippet highlight-indentation flymake company elpy pyvenv elpy-django s elpy-refactor python tramp-sh json map grep files-x etags xref project ido helm-mode helm-files rx image-dired tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete dired-x dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info helm-locate helm-grep helm-regexp helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap helm-utils helm-help helm-types helm helm-source eieio-compat helm-multi-match helm-lib helm-config helm-easymenu async-bytecomp async qml-mode delsel cua-base elec-pair pdf-occur ibuf-ext ibuffer 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 dired pdf-isearch let-alist pdf-misc imenu pdf-tools compile comint ansi-color ring cus-edit cus-start cus-load wid-edit pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util advice format-spec image-mode wc-mode printing ps-print ps-def lpr paren tabbar easy-mmode edmacro kmacro finder-inf css-mode-autoloads flappymacs-autoloads epc-autoloads ctable-autoloads nose-autoloads pep8-autoloads slime-autoloads tabulated-list-autoloads url-auth url-parse auth-source cl-seq eieio eieio-core cl-macs gnus-util time-date mm-util help-fns mail-prsvr password-cache url-vars virtualenv-autoloads info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 722368 86999) (symbols 48 63599 2) (miscs 40 866 1138) (strings 32 197238 16662) (string-bytes 1 5612576) (vectors 16 99923) (vector-slots 8 1977787 49327) (floats 8 2414 842) (intervals 56 9241 322) (buffers 976 53))