-
Notifications
You must be signed in to change notification settings - Fork 527
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
perl-5.36.0 test lib/Benchmark.t has no exit. #20839
Comments
Please can you provide the output of:
It should look something like this:
For now we do not need any truss output or anything like that. Thanks. |
Oh, also, please feel free to kill it after 20 seconds. If it takes any longer than that something is wrong and letting it run longer wont help us debug it. |
|
As far as I can tell the times() function is broken on your build. I do not know why. Try this program please:
I expect you will see all zeros. I am not sure how Configure probes for times(), maybe @Tux or @tonycoz know. We can probably modify Benchmark.t to detect that times is broken and not run to the heat death of the universe (or more likely the heat death of your CPU :-) But really we should just fix whatever it is that has broken times. You said it works fine with an older perl? |
Ah, i found it. it is related to HAS_TIMES which you appear to have judging by your -V output. The code is this:
(there is more but the rest is not for builds where HAS_TIMES is true). Some additional data:
Im not sure the next steps to debug this. Maybe write a small C program that uses times() ( |
@blastwave i think you should replicate the below and let us know what you get.
|
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue #20839
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue #20839
@blastwave can you please try building and testing the branch: yves/benchmark_times_sanity_check eg,
thanks. |
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue #20839
|
|
So that confirms it, your system times() is broken. I think you need to take this up with someone else, it's not a bug in perl itself. I don't know who tho. You should be able to install perl ok, but anything that relies on times() will be broken until you get to the bottom of it. |
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue #20839
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue #20839
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue #20839
I'm closing this. The part that we can fix is fixed. |
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue Perl#20839
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue Perl#20839
If time() or times() is broken then Benchmark can infinite loop. This adds a sanity check that will die early if it appears that either are broken. This fixes the infinite loop part of GH Issue Perl#20839
Description
Steps to Reproduce
Expected behavior
Perl configuration
perl_bug_report_benchmark.txt.gz
The text was updated successfully, but these errors were encountered: