Project

General

Profile

Actions

Bug #4842

open

gsm0408 test fails on several architectures

Added by bunk over 3 years ago. Updated over 1 year ago.

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

90%

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 */

Actions #1

Updated by laforge over 3 years 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.

Actions #2

Updated by laforge over 3 years 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.

Actions #3

Updated by pespin over 3 years 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.

Actions #4

Updated by neels over 3 years ago

pespin feel free to take this issue back if you like

Actions #5

Updated by laforge over 3 years ago

  • Category changed from libosmocore to libosmogb
Actions #6

Updated by neels over 1 year ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 90
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)