-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
runtests: --no-debuginfod now disables DEBUGINFOD_URLS #9950
Conversation
+1 to this! Thank you for fixing it! |
This commit needs further explanation and references, such as This fixes ??? (I still don't understand why it is being restored) Prior to this change DEBUGINFOD_URLS was disabled always since it was slowing down tests. Ref: #8805 |
It is being "restored" because it unconditionally disables a valgrind feature. If you do not want to use this feature, then why have this environment variable set in the first place? As was shown, this feature is usable to some. I think that's motivation enough. |
Without repeating many posts in #8805 ... Some distributions - like ArchLinux - don't distribute debug packages. Without debug symbols valgrind errors (see #8805, the message has been posted there a couple times). |
I wasn't for or against it. It does need further explanation, such as...
Ok then may I suggest: Prior to this change DEBUGINFOD_URLS was always disabled due to a report of it slowing down tests. However some distros need it to fetch debug symbols, and if it is disabled on those systems then curl tests with valgrind installed will fail. Ref: #8805 etc |
IMO this is a distro-specific problem: valgrind natively works very well without symbols. Otherwise how would you use it on a foreign stripped program ? A solution for those who want to always disable it is to add a In any case, if enabled and the full debug info for libc, ssl lib, ldap lib, etc is downloaded on a slow connection, be prepared to have timeouts at first test... And you'll have plenty of time for some |
tests/runtests.1
Outdated
@@ -95,6 +95,9 @@ using curl's regression test suite. | |||
Lists all test case names. | |||
.IP "-n" | |||
Disable the check for and use of valgrind. | |||
.IP "--no-debuginfod" | |||
Delete the DEBUGINFOD_URLS variable if that is defined. Makes valgrind not | |||
able to use this functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also affects gdb
when running runtests.pl -g
I don't see a suggestion there except stating how it works prior to this patch. |
Yes the suggestion is for @bagder's commit message. |
I tried
IMO this is an arch+valgrind specific problem. It should not happen. The comment says the debuginfod solution is a short term one, but something else should be done for the long term. Maybe a bug report to arch linux maintainers would be appropriate ? In addition, it reports searching strlen in ld-linux, which sounds a bit odd unless the dynamic linker holds the other libraries' symbol tables. I checked libc.so.6 and it does export strlen. I also tried to run |
Are there (many) users who are likely to have I don't understand why Arch wants this weird and special behavior, but I prefer not to make a judgement. |
I'm not used to this distro, but I think they don't "want" it and it's just a bug. |
That variable is not set by default. You have to explicitly install
Just a general thing on debuginfod as i'm diving into that to figure out it's benefits. I stumbled upon this blog post: From which i want to highlight this part specifically:
It looks like Arch (and the distros using debuginfod) are ahead of the curve here causing some growing pains. The problems debuginfod tries to solve (according to the above quote) are great to have solved. If performance is an issue then i'd suggest reaching out to the developers of debuginfod and voice your concerns there. They are probably happy to hear real world usecases. |
I don't think the debuginfod is slow. But downloading potentially hundreds of megabytes of debug symbols may be a problem on slow connections. I'd rather install the required symbols given a choice. |
44b7679
to
6e6d9e4
Compare
Thanks. All feedback combined, I believe this is the right PR to merge. I've amended the commit message with @jay's feedback. |
For those who are interested in the Arch Linux problem:
|
Let's monitor how this PR fares and see if we need to take further actions down the road... |
If this option is not used, valgrind may use this environment variable (if set) to do HTTP API request calls to get information.