Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: `zsh -f' is problem free, but normally getting segfault on a regular `zmodload ...' invocation



I've ran wrong Zsh version with `-f`, the issue does persist with
`-f', it's just the segfault that's lacking:

 ▲ .zplugin/plugins/zsh-users---zsh % /usr/local/bin/zsh-5.6.2-dev-1 -fi
MacMini% MODULE_PATH=/Users/sgniazdowski/.zplugin/plugins/zdharma---zredis/module/Src:/usr/local/lib/zsh/5.6.2-dev-1:/Users/sgniazdowski/.zplugin/bin/zmodules/Src
if [[ -e /Users/sgniazdowski/.zplugin/plugins/zdharma---zredis/module/Src/zdharma/zredis.so
]]; then
    #zmodload -u zdharma/db 2>/dev/null
    zmodload -d zdharma/zredis zdharma/db
    zmodload zdharma/zredis
fi
zsh: invalid module name `^G'
MacMini%

On Tue, 16 Oct 2018 at 19:26, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> Hello,
> this is theoretically on my side, because on `zsh -f' the module loads
> fine, but who knows and maybe someone could help me finding the cause,
> i.e. recent patch that introduced something?
>
> I've just updated to 5.6.2-dev-1, i.e. compiled and installed from
> HEAD (0290757..a8f90de), and now I'm getting:
>
> % /usr/local/bin/zsh-5.6.2-dev-1 -i
> /Users/sgniazdowski/.zplugin/plugins/zdharma---zredis/zredis.plugin.zsh:72:
> invalid module name `^G'
> zsh: segmentation fault  /usr/local/bin/zsh-5.6.2-dev-1 -i
>
> The line 72 of the script
> (https://github.com/zdharma/zredis/blob/c344330c7c038396f2ffeeed077f05669312f2d2/zredis.plugin.zsh)
> is:
>
>     zmodload zdharma/zredis
>
> The line looks regular and xxd ran on the script doesn't report any
> hidden characters.
>
> IRC user suggested it could be the recent word-code change, and I've
> removed .zwc, and the issue persists. I've also tried removing
> zdharma/zplugin from loading and no change.
>
> --
> Sebastian Gniazdowski
> News: https://twitter.com/ZdharmaI
> IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
> Blog: http://zdharma.org



-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



Messages sorted by: Reverse Date, Date, Thread, Author