Replies: 24 comments 7 replies
-
For OSX you mean? No errors reported under linux. Haven't setup a VM for OSX on x86 hardware yet so can't run valgrind. But do you wanna paste a dump of it just so I get the gist of it. |
Beta Was this translation helpful? Give feedback.
-
when I run on my manjaro linux at home, indeed no specific problems
reported by valgrind. When I ran some time ago on RHEL 7.6 at work, 1000s
of errors. Will capture some output with a recent build tomorrow. Now I'll
try on hackintosh (valgrind does not compile/install on m1, but you
probably knew already).
…On Mon, 25 Oct 2021 at 16:34, aristocratos ***@***.***> wrote:
For OSX you mean? No errors reported under linux.
Haven't setup a VM for OSX on x86 hardware yet so can't run valgrind. But
do you wanna paste a dump of it just so I get the gist of it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R5EQ5THH4SFZ3PCL6TUIVTHJANCNFSM5GVNV2IQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
on macOS it does not even run in valgrind. It seems to crash, no gui was
visible. See attached log. Tell me if you want me to rerun with other
options.
…On Mon, 25 Oct 2021 at 16:34, aristocratos ***@***.***> wrote:
For OSX you mean? No errors reported under linux.
Haven't setup a VM for OSX on x86 hardware yet so can't run valgrind. But
do you wanna paste a dump of it just so I get the gist of it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R5EQ5THH4SFZ3PCL6TUIVTHJANCNFSM5GVNV2IQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
when running nvim under valgrind I get similar errors
…On Mon, 25 Oct 2021 at 16:34, aristocratos ***@***.***> wrote:
For OSX you mean? No errors reported under linux.
Haven't setup a VM for OSX on x86 hardware yet so can't run valgrind. But
do you wanna paste a dump of it just so I get the gist of it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R5EQ5THH4SFZ3PCL6TUIVTHJANCNFSM5GVNV2IQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Hmm, I replied via email, it seems it didn't attach in github. |
Beta Was this translation helpful? Give feedback.
-
valgrind on macos big sur seems to be completely unsupported... |
Beta Was this translation helpful? Give feedback.
-
Btw, RHEL 7.6 is really outdated, were you running a native compiled build? In that case it's possible there are issues in the old glibc in RHEL 7.6 that valgrind picks up on. |
Beta Was this translation helpful? Give feedback.
-
Yes, I know. But can't upgrade. It had similar issues as what we see in macos: use of uninitialized data mostly somewhere in the system libraries. |
Beta Was this translation helpful? Give feedback.
-
can not compile on that system, this is a release. Newest gcc on that system is 8.3. |
Beta Was this translation helpful? Give feedback.
-
older build. I think it's 1.0.15. |
Beta Was this translation helpful? Give feedback.
-
ok, will do that tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Found the issue with process cpu usage in macos btw https://developer.apple.com/documentation/driverkit/3433733-mach_timebase_info Of course mac has it's own special conversion for cpu clock ticks :) Thinking it could be something related with the issue in freebsd, some old legacy bsd stuff possibly. |
Beta Was this translation helpful? Give feedback.
-
This is with 1.0.19 musl. This runs, and seems to only complain about btop code itself. It's not in debug so stacktraces are not very useful I guess. Can you provide a static debug build (if needed)? |
Beta Was this translation helpful? Give feedback.
-
Here's a debug static musl build: btop.zip Run valgrind with |
Beta Was this translation helpful? Give feedback.
-
I did. I used this command: valgrind --log-file=/tmp/valgrind.log --tool=memcheck --track-origins=yes --leak-check=yes --verbose --show-leak-kinds=all --error-limit=no btop |
Beta Was this translation helpful? Give feedback.
-
Having run valgrind (with the flags you posted above) on both the static musl binary and a dynamically linked binary I'm pretty sure the problem is with regex in the static builds. No errors in the dynamic build and no leaks in either of the builds. Not sure why regex behaves differently when compiled statically though. |
Beta Was this translation helpful? Give feedback.
-
Can maybe experiment with at compile-time regex compilation, to see if that makes a difference... |
Beta Was this translation helpful? Give feedback.
-
Removed all the use of regex which apparently didn't offer better performance than brute force string operations anyway :) And now only get 3 errors from the musl static build. All of them from robin_hood.h and with: Which I'm not sure if they really matter that much, might be some minuscule slowdown from holding back the branch predictor but would be heavily outweighed by the speed of the robin hood maps compared to the standard maps. Or am I interpreting these errors completely wrong? |
Beta Was this translation helpful? Give feedback.
-
I don't know, not familiar enough with valgrind. I know it exists, but have never really used it ;-). |
Beta Was this translation helpful? Give feedback.
-
BTW, regex can never be faster than a simple well written indexOf ;-). |
Beta Was this translation helpful? Give feedback.
-
valgrind on freebsd:
|
Beta Was this translation helpful? Give feedback.
-
@joske |
Beta Was this translation helpful? Give feedback.
-
@aristocratos Can you do that? Trying but failing to find the correct way ;-). |
Beta Was this translation helpful? Give feedback.
-
@joske But looks like there shouldn't be any other leak issues looking at the output from valgrind. |
Beta Was this translation helpful? Give feedback.
-
@aristocratos When you run btop under valgrind, it screams so many errors, it's not even funny. When running htop on same machine, it doesn't emit any error. So there seems to be fishy stuff going on. No idea what though. Most things seem to come from the c/c++ library.
Beta Was this translation helpful? Give feedback.
All reactions