zsh-users
 help / Atom feed
* `zsh -f' is problem free, but normally getting segfault on a regular `zmodload ...' invocation
@ 2018-10-16 17:26 Sebastian Gniazdowski
  2018-10-16 17:45 ` Sebastian Gniazdowski
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Gniazdowski @ 2018-10-16 17:26 UTC (permalink / raw)
  To: Zsh Users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: `zsh -f' is problem free, but normally getting segfault on a regular `zmodload ...' invocation
  2018-10-16 17:26 `zsh -f' is problem free, but normally getting segfault on a regular `zmodload ...' invocation Sebastian Gniazdowski
@ 2018-10-16 17:45 ` Sebastian Gniazdowski
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Gniazdowski @ 2018-10-16 17:45 UTC (permalink / raw)
  To: Zsh Users

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@gmail.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16 17:26 `zsh -f' is problem free, but normally getting segfault on a regular `zmodload ...' invocation Sebastian Gniazdowski
2018-10-16 17:45 ` Sebastian Gniazdowski

zsh-users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox