Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Segfault with print -s and insert-last-word
- X-seq: zsh-workers 54260
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "lincheney@xxxxxxxxx" <lincheney@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Segfault with print -s and insert-last-word
- Date: Fri, 27 Mar 2026 09:50:43 +0100
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fzBf3HZ4JQTWazP+14GcLh6hhr+2/DY3E0ppxJWd9HY=; fh=IpKmye9meFAUwp7GZJKmV61eI9dmUaXFbKnAYVukWBM=; b=NusjAeKd/Wb8ntRLZ6RRhA04dL3LBu3NQEa8ZcfDuHyDzgHfFhICrQDYl1UJ4Adinq ywP9PZ5Dr+YRtehaPAv3ixy/JADz3qeOLH/U+xqNmo09uhRmG93uUDprygYMsOU8zAUl 3qPLgpwFm+ErP3fUuGt0o2kdz8K5Uzq1E7xNIeyl4nbWMEh8FzSIEUSPNsnVFZr3nR43 mUjI+sJEDj7CEBDvQXjWod9HhhKJrdWSZs7u1VZshvij6XxEW4R+vSsInWL3XUg1pno1 f5spWAtLXP8Bee77+uAgPiHnwPXvFXSZUjxz7UZO9RKZC/8urc0wETxXEw01g06GqLz4 MbTA==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1774601457; cv=none; d=google.com; s=arc-20240605; b=Uia/nZKRnKID4Td6BNbgMhnJUvdbKGqkqgnJfryDLQ8ZfekuUd4fgsEJZGQho1u6d9 +u15ziQWxl9ycmxMJ+IRudzJjkr/z+krqs/tSl7eOFxhUB8jeqMK1+QVjMh/NrYotNb4 4Jfx4fUOCglZCci6xrblDay3v5m7fjPD0o+PJei674rt+f+/AZsZrkeLxagWlPjljtbe Pk2Rq7fITi3j+LXn/MUOVIMdb4MYUUO2EmjHO/tPm1k3GYUi1dLeXiDe83EzHBG1fn6l ONbbNyKqRm/cUSHTJixryt2F0Cm4+9MrAWBsAFLrOy7gTNz8GSPijOj6xz1Z0CMzVKZX QSJA==
- Archived-at: <https://zsh.org/workers/54260>
- In-reply-to: <CAKQF6tyeamMc3-Zp_gvcrm2cdZuP5LOsX+GqS8ZR=fG6C9Rmfg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAKQF6tyeamMc3-Zp_gvcrm2cdZuP5LOsX+GqS8ZR=fG6C9Rmfg@mail.gmail.com>
On Fri, Mar 27, 2026 at 9:33 AM lincheney@xxxxxxxxx <lincheney@xxxxxxxxx> wrote:
>
> Hello
>
> If I have this ~/.zshrc:
>
> HISTFILE=~/.zsh_history
> bindkey '\e.' insert-last-word
>
>
> Then I start zsh and run: print -s
> Then press alt-. (to trigger the insert-last-word), this causes a seg fault.
>
> This is what gdb tells me:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff7b6034e in insertlastword () from /usr/lib64/zsh/5.9/zsh/zle.so
> (gdb) bt
> #0 0x00007ffff7b6034e in insertlastword () from /usr/lib64/zsh/5.9/zsh/zle.so
> #1 0x00007ffff7b66157 in execzlefunc () from /usr/lib64/zsh/5.9/zsh/zle.so
> #2 0x00007ffff7b68830 in zlecore () from /usr/lib64/zsh/5.9/zsh/zle.so
> #3 0x00007ffff7b69582 in zleread () from /usr/lib64/zsh/5.9/zsh/zle.so
> #4 0x00005555555a710b in zleentry ()
> #5 0x00005555555a7988 in ingetc ()
> #6 0x000055555559adf2 in ihgetc ()
> #7 0x00005555555b535e in zshlex.part ()
> #8 0x00005555555d51e2 in parse_event ()
> #9 0x00005555555a0e66 in loop ()
> #10 0x00005555555a90e6 in zsh_main ()
> #11 0x0000555555555d0d in main ()
>
> I'm running zsh 5.9 (x86_64-redhat-linux-gnu)
Can't reproduce on current git master, feel free to see if you can
reproduce it there. (and preferably with debug symbols).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author