-
Notifications
You must be signed in to change notification settings - Fork 32
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
Test failure on MIPS and other RISC archs: test_cabrillo.c:159: error: Failure! #210
Comments
Thanks for the report. We will look into it. |
@df7cb to get the full picture: was all OK before? if yes, what has been changed? (gcc? hamlib? ...) |
FYI trying to reproduce this but it's not possible to install current [20201202] sid mips64el/mipsel using QEMU 1:3.1+dfsg-8+deb10u8 due to kernel panic. (previous installer [20200314] does boot, however) |
1.4.1-1 built on 19 May 2020 with gcc-9_9.3.0-12 was fine, while |
With #211 fixed I retried building git head on mipsel, and the tests are all passing now. Could you tag a new release? That would be the easiest way forward I think. |
Kind of magic, as the changes were just at unrelated places. |
That might mean the bug is still there... :( |
Or we can make a patch from the upstream for the 1.4.1. I'll take a look it soon. |
@df7cb What is the difference between 1.4.1-1 and 1.4.1-2? Thanks to the lot of changes in the last year a new release is really due. But does it make sense to have a new release with the unresolved problem of a potential failing test. Best would be to compile on mipsel64 with -g and run the test (run_cabrillo) separate in a gdb session to narrow down the problem. @zcsahok if you could manage to set up a system in qemu that would be great. |
Code-wise there is no difference, but it's now built with hamlib 4, and the toolchain changed a lot. I can do more debugging on the mipsel/mips64el machine tomorrow. |
Building with -fsanitize=address on amd64 gives:
The bug is in https://sources.debian.org/src/tlf/1.4.1-2/src/readcabrillo.c/#L91 I've confirmed that an |
Looks promising. A quick check of the function in question shows that two lines up store_qso() is called. In that function nr_qsos gets incremented. So normally the variable is at least one. But in the testcode (test_cabrillo.c) we stub out store_qso() with an empty definition. We should modify it as follow:
That should fix it. |
Thanks, works. |
This fixes the test problem on mipsel (32) as well. Thanks! |
Fixed in PR #212. If no negative comment I will pick it up in next two days. @AdrianBunk '-fsanitize=address' showed some more problems. Will be fixed by above mentioned commits. Thanks for pointing in that direction. |
Fix e95db78 for Cabrillo test confirmed on QEMU mips64el system using
It just takes ages to install party due to broken kernel (had to go the buster->bullseye->sid way). And a full Tlf build takes well over an hour. |
Ok. Will merge PR #212 now. |
tlf 1.4.1 fails on mips64el:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979377
https://buildd.debian.org/status/fetch.php?pkg=tlf&arch=mips64el&ver=1.4.1-2&stamp=1609846479&raw=0
... and similarly on other architectures: https://buildd.debian.org/status/logs.php?pkg=tlf&ver=1.4.1-2
The text was updated successfully, but these errors were encountered: