-
Notifications
You must be signed in to change notification settings - Fork 699
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
FreeBSD port: testunit fail #3489
Comments
Hello, thanks for reporting this issue. We do run our tests on FreeBSD, but the Clang version that we test with is 13.0.0. Can you use that version? |
Hi, yes I can and for better results I can use poudriere to run clean environments builds on FreeBSD s2n-tls port: FreeBSD-14 amd64 current: clang 14.0.5 I did make same tests on this versions and result is the same as above mentioned. |
poudriere interactive jail for:
|
Still occurs on 1.3.25, FreeBSD 13.1-STABLE (amd64) |
This is odd because we test with the latest FreeBSD in our CI. We use https://github.com/vmactions/freebsd-vm, and run this script. How are you running your tests? If you have direct access to the environment, can you build them with S2N_DEBUG=1 and then use gdb to figure out where the seg fault is occuring? |
Hi, We're using the ports collection for testing but it shouldn't be much different from yours in that regard. I can confirm that building with CMake's debug profile enabled make s2n-tls pass all unit tests. Comparing the two...
Differences:
Playing around with this a bit I found that defining any kind of optimzation (-O/-O1/-O2/-O3) causes a segfault using the set release flags Tested on FreeBSD 13.1-STABLE (stable/13-n252834-a7766860e0f) |
Gotta love a bug that only happens when not in debug mode :) You should be able to use gdb to pinpoint the bug even with the -O option. You just need to make sure you're building with "-g" to include debug symbols. Then run "gdb s2n_cipher_suites_test". |
Logs:
|
Interesting. I think it has something to do with I repro'd the original error in our CI FreeBSD job by changing it to do Release instead of Debug, then tested that fix, and it seems to have actually solved the problem: #3586 |
That change fixes it on my testbox as well, thanks! |
- Add uptream patch to fix s2n_cipher_suites test aws/s2n-tls#3489 Reported by: diizzy
Thanks all for testing and fixing it. https://cgit.freebsd.org/ports/commit/?id=e3fbcdd9aaabe9f8abd377f7acbabf6891d79a6c |
Problem:
testunit fail
FreeBSD amd64:
testunit:
LastTest.log:
Any clue on how to find the cause of this fail?
Thanks
The text was updated successfully, but these errors were encountered: