From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9833 invoked by alias); 22 Jun 2015 01:11:00 -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: X-Seq: 35555 Received: (qmail 4207 invoked from network); 22 Jun 2015 01:10:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VgV+/MHY/0sOoUZiszYzURyTRt1TWWkYnrqCgw2GLlo=; b=lBeSyao86eGojhEIBwI7jK/DwnkomMJ37Ey2nrSHVFYBUu3ctdhRVcIgiF8klNhQTI W6okW9FE9aPWEtaVPdjUklrMNzAGsFO6HsAMsfS1acL9F1Be7/o/+SHKxy+xOjE+o48V FUnzTpNRcjcKuOegJ7JYsH1mqEnwBGJG2p6DX3XBzsZhWtVeYOuJ0K7f2iLuRZQ2aJgL kxSiImlyfAC+V0ENZQG1T271MVz/sMBObn8MOaDJVzk8moNhwn5LhxAY8X9Ohl4eeWFn 3arnLH6jYkM09++SogOUCKbF8rxjNK2+f9TEORAffrikHtyBjvGeoBNPuNv+D/cY5tgm N1Zw== MIME-Version: 1.0 X-Received: by 10.107.4.6 with SMTP id 6mr26677025ioe.49.1434935454496; Sun, 21 Jun 2015 18:10:54 -0700 (PDT) Date: Mon, 22 Jun 2015 03:10:54 +0200 Message-ID: Subject: Crash/error with recursive-edit and set From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 % zsh -f % foo() { zle recursive-edit; set > /dev/null } % autoload -U narrow-to-region % zle -N foo % bindkey t foo % ' foo: unmatched ' With my full rc loaded, this also results in a segfault. Program terminated with signal SIGSEGV, Segmentation fault. #0 scanmatchtable (ht=0x1578f00, pprog=pprog@entry=0x0, sorted=sorted@entry=1, flags1=flags1@entry=0, flags2=flags2@entry=0, scanfunc=0x462431 , scanflags=scanflags@entry=0) at hashtable.c:405 405 if ((!flags1 || ((*htp)->flags & flags1)) && (gdb) p *htp $1 = (HashNode) 0x0 (gdb) bt #0 scanmatchtable (ht=0x1578f00, pprog=pprog@entry=0x0, sorted=sorted@entry=1, flags1=flags1@entry=0, flags2=flags2@entry=0, scanfunc=0x462431 , scanflags=scanflags@entry=0) at hashtable.c:405 #1 0x0000000000436fe4 in scanhashtable (ht=, sorted=sorted@entry=1, flags1=flags1@entry=0, flags2=flags2@entry=0, scanfunc=, scanflags=scanflags@entry=0) at hashtable.c:444 #2 0x000000000040ffe4 in bin_set (nam=0x7f4767d5dd48 "set", args=0x7f4767d5dd80, ops=, func=) at builtin.c:622 #3 0x000000000041d4e4 in execbuiltin (args=args@entry=0x7f4767d5dd18, bn=bn@entry=0x6ac360 ) at builtin.c:450 #4 0x000000000042a9e5 in execcmd (state=, input=, output=, how=, last1=2) at exec.c:3471 #5 0x000000000042aef9 in execpline2 (state=0x7fffbf7548a0, pcode=67, how=18, input=0, output=0, last1=0) at exec.c:1718 #6 0x000000000042b503 in execpline (state=state@entry=0x7fffbf7548a0, slcode=, how=how@entry=18, last1=0) at exec.c:1501 #7 0x000000000042c362 in execlist (state=state@entry=0x7fffbf7548a0, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0) at exec.c:1277 #8 0x000000000042c819 in execode (p=p@entry=0x165a780, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0, context=context@entry=0x48e8d3 "shfunc") at exec.c:1074 #9 0x000000000042d483 in runshfunc (prog=0x165a780, wrap=0x0, name=0x7f4767d5db78 "foo") at exec.c:5176 #10 0x000000000042d8a1 in doshfunc (shfunc=shfunc@entry=0x157d5c0, doshargs=doshargs@entry=0x0, noreturnval=noreturnval@entry=1) at exec.c:5046 #11 0x00007f4765aa0200 in execzlefunc (func=0x16b5f48, args=, args@entry=0x7f4765ccb1e8 , set_bindk=set_bindk@entry=0) at zle_main.c:1394 #12 0x00007f4765aa03f9 in zlecore () at zle_main.c:1067 #13 0x00007f4765aa1045 in zleread (lp=, rp=, flags=, context=, init=init@entry=0x7f4765abb5af "zle-line-init", ---Type to continue, or q to quit--- finish=finish@entry=0x7f4765abb59f "zle-line-finish") at zle_main.c:1256 #14 0x00007f4765aa2740 in zle_main_entry (cmd=, ap=) at zle_main.c:1922 #15 0x00000000004410b9 in zleentry (cmd=cmd@entry=1) at init.c:1522 #16 0x0000000000441cdf in inputline () at input.c:288 #17 0x0000000000441fb6 in ingetc () at input.c:222 #18 0x000000000043b5b8 in ihgetc () at hist.c:390 #19 0x000000000044ab8c in gettok () at lex.c:604 #20 0x000000000044bba4 in zshlex () at lex.c:271 #21 0x0000000000468b77 in parse_event (endtok=endtok@entry=37) at parse.c:537 #22 0x000000000043e61b in loop (toplevel=toplevel@entry=1, justonce=justonce@entry=0) at init.c:145 #23 0x00000000004413f7 in zsh_main (argc=, argv=0x7fffbf7551d8) at init.c:1677 #24 0x000000000040f266 in main (argc=, argv=) at ./main.c:93 -- Mikael Magnusson