From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 713579b1 for ; Sat, 16 Mar 2019 21:42:52 +0000 (UTC) Received: (qmail 17523 invoked by alias); 16 Mar 2019 21:42:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44133 Received: (qmail 15864 invoked by uid 1010); 16 Mar 2019 21:42:37 -0000 X-Qmail-Scanner-Diagnostics: from sym2.noone.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25384. spamassassin: 3.4.2. Clear:RC:0(178.63.92.236):SA:0(-1.9/5.0):. Processed in 3.791753 secs); 16 Mar 2019 21:42:37 -0000 X-Envelope-From: abe@sym2.noone.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at sym2.noone.org does not designate permitted sender hosts) Date: Sat, 16 Mar 2019 22:41:55 +0100 From: Axel Beckert To: zsh-workers@zsh.org Subject: Fwd: Bug#924736: zsh 5.7.1 segfaults when three setopt options are in play [origin: wesley@schwengle.net] Message-ID: <20190316214155.GH10429@sym.noone.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: Linux 3.2.0-5-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 23.4.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: Mutt/1.5.21 (2010-09-15) Hi, we at Debian received the following bug report at https://bugs.debian.org/924736 I can confirm that this issue is present in zsh 5.7.1 as well as git HEAD as of commit 947e26fe5a0083b42ef5db9cb0f8c46923602ae1: ----- Forwarded message from Wesley Schwengle ----- Date: Sat, 16 Mar 2019 18:54:27 +0100 From: Wesley Schwengle To: Debian Bug Tracking System Subject: [Pkg-zsh-devel] Bug#924736: zsh 5.7.1 segfaults when three setopt options are in play Reply-To: Wesley Schwengle , 924736@bugs.debian.org Package: zsh Version: 5.7.1-1 Severity: important Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** Have a zshrc with the following setopts: setopt hist_reduce_blanks setopt hist_ignore_space setopt interactivecomments * Run zsh -f * Now enter ` #` * You get a command not found error * Now source your zshrc * Again entery ` #` * Segfault I've reproduced it with a docker image from debian testing. https://gist.github.com/waterkip/ab532e8dc65ad948046b6848dcfacffa It does work on Debian stable (zsh 5.3.1). Dockerfile contents: FROM debian:testing WORKDIR /root RUN apt-get update && apt-get install --no-install-recommends -y zsh COPY zsh/.zsh/minimal-zshrc .zshrc $ dpkg -l zsh Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii zsh 5.7.1-1 amd64 shell with lots of features -- Package-specific info: Packages which provide vendor completions: Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-===========================-============-======================================================== ii curl 7.64.0-1 amd64 command line tool for transferring data with URL syntax ii docker-ce-cli 5:18.09.3~3-0~debian-buster amd64 Docker CLI: the open-source application container engine ii mpv 0.29.1-1 amd64 video player based on MPlayer/mplayer2 ii pulseaudio 12.2-4 amd64 PulseAudio sound server ii systemd 241-1 amd64 system and service manager ii udev 241-1 amd64 /dev/ and hotplug management daemon ii vlc-bin 3.0.6-1 amd64 binaries from VLC ii youtube-dl 2019.01.17-1 all downloader of videos from YouTube and other sites dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions/ -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing'), (100, 'unstable'), (50, 'experimental'), (10, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-2-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages zsh depends on: ii libc6 2.28-8 ii libcap2 1:2.25-2 ii libtinfo6 6.1+20181013-2 ii zsh-common 5.7.1-1 Versions of packages zsh recommends: ii libc6 2.28-8 ii libncursesw6 6.1+20181013-2 ii libpcre3 2:8.39-11 Versions of packages zsh suggests: pn zsh-doc -- no debconf information ----- End forwarded message ----- I can as well confirm that zsh 5.3.1 is not affected. ----- Forwarded message from wesleys@euronet.nl ----- Date: Sat, 16 Mar 2019 19:24:31 +0100 (CET) From: wesleys@euronet.nl To: 924736@bugs.debian.org Subject: [Pkg-zsh-devel] Bug#924736: Acknowledgement (zsh 5.7.1 segfaults when three setopt options are in play) Reply-To: wesleys@euronet.nl, 924736@bugs.debian.org on #zsh there was some confusion about the reproduction path ` #` should be typed *without* the backticks. Spaces are hard to show on a text only medium. FWIW, it seems like an upstream bug, I can also reproduce it on Arch Cheers, Wesley ----- End forwarded message ----- Haven't had time to bisect this, but I got this backtrace from git HEAD: Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `./Src/zsh -f'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000558b2df7b10c in histreduceblanks () (gdb) bt #0 0x0000558b2df7b10c in histreduceblanks () #1 0x0000558b2df80ecb in hend () #2 0x0000558b2df814bf in loop () #3 0x0000558b2df84be6 in zsh_main () #4 0x00007f4441f6109b in __libc_start_main (main=0x558b2df4ac90
, argc=2, argv=0x7ffc57da4588, init=, fini=, rtld_fini=, stack_end=0x7ffc57da4578) at ../csu/libc-start.c:308 #5 0x0000558b2df4acca in _start () (gdb) Kind regards, Axel -- PGP: 2FF9CD59612616B5 /~\ Plain Text Ribbon Campaign, http://arc.pasp.de/ Mail: abe@deuxchevaux.org \ / Say No to HTML in E-Mail and Usenet Mail+Jabber: abe@noone.org X https://axel.beckert.ch/ / \ I love long mails: https://email.is-not-s.ms/