Project

General

Profile

Bug #4842

gsm0408 test fails on several architectures

Added by bunk 29 days ago. Updated 19 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
libosmogb
Target version:
-
Start date:
11/03/2020
Due date:
% Done:

0%

Spec Reference:

Description

https://buildd.debian.org/status/logs.php?pkg=libosmocore&ver=1.4.0-1
25: gsm0408 FAILED (testsuite.at:156)

The pattern of the failures is
-LU with truncated IMSI MI: rc = -74 ok
-LU with too short IMSI MI (12345): rc = -74 ok
+LU with truncated IMSI MI: rc = -77 ok
+LU with too short IMSI MI (12345): rc = -77 ok

The root cause is likely related to
/usr/include/asm-generic/errno.h:#define EBADMSG 74 /* Not a data message /
/usr/include/mips64el-linux-gnuabi64/asm/errno.h:#define EBADMSG 77 /
Not a data message */

History

#1 Updated by laforge 29 days ago

  • Assignee set to pespin

thanks, we will try to fix this in the next version, which is due to be released still in Q4/2020.

#2 Updated by laforge 29 days ago

  • Assignee changed from pespin to neels

assigning to neels, who (AFAIR) created the osmo_mobile_identity API.

I agree that the fundamental problem is the assumption that the numeric value of EBADMSG is identical across architectures. That's wrong s errno values are highly architecture dependent.

#3 Updated by pespin 29 days ago

We already run into this kind of problems in some unit tests before, so worth looking at how we fixed it in other places.
Probably simply print strerror() instead of errno.

#4 Updated by neels 27 days ago

pespin feel free to take this issue back if you like

#5 Updated by laforge 19 days ago

  • Category changed from libosmocore to libosmogb

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)