-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_alias_usage results in a malloc error failing to load counting data #106
Comments
Thanks for reporting this issue! I actually noticed there's another regression in Would you mind checking how much available free memory you had when running this? |
@MichaelAquilina sure top from the same shell and activity monitor. Plenty available.
Processes: 411 total, 2 running, 409 sleeping, 1890 threads 13:58:49
Load Avg: 0.90, 1.19, 1.39 CPU usage: 3.49% user, 3.1% sys, 93.48% idle
SharedLibs: 307M resident, 77M data, 25M linkedit.
MemRegions: 74035 total, 5188M resident, 212M private, 2348M shared.
PhysMem: 14G used (2829M wired), 2345M unused.
VM: 2860G vsize, 1993M framework vsize, 94632(0) swapins, 168460(0) swapouts.
Networks: packets: 1925400/1744M in, 6108827/5941M out.
Disks: 999645/13G read, 345972/5090M written. Activity Monitor |
I've just encountered this (although interestingly on Monterey zsh-you-should-use/you-should-use.plugin.zsh Lines 17 to 20 in 09d9aa2
|
not sure iirc the different between calloc and malloc is that calloc zeros out the memory allocation and malloc doesn’t. I suppose calloc is the slower of the two. I have since switched to bash as my main shell. |
Issue Details
possible bug
check_alias_usage results in a malloc error.
Aliases seem to be listed, however, the counting data is always 0.
Operating System (uname -a)
macOS Catalina 10.15.6 (19G73)
Darwin Andrews-MBP.local 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64
zsh version (zsh --version)
zsh 5.7.1 (x86_64-apple-darwin19.0)
you-should-use version (echo "$YSU_VERSION")
1.7.3
How is zsh-you-should-use installed?
Antibody
Steps to reproduce the issue
❯ ~
❯ check_alias_usage
Expected
The text was updated successfully, but these errors were encountered: