Skip to content
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

[packchk] linux version is crashing (on Ubuntu 20.04.6 LTS) #1048

Open
jeromecoutant opened this issue Jul 6, 2023 · 2 comments
Open

[packchk] linux version is crashing (on Ubuntu 20.04.6 LTS) #1048

jeromecoutant opened this issue Jul 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jeromecoutant
Copy link
Contributor

Describe the bug
Linux packchk tool is crashing

To Reproduce

$ curl -O -L https://github.com/Open-CMSIS-Pack/cmsis-toolbox/releases/download/2.0.0/cmsis-toolbox-linux-amd64.tar.gz
$ tar -xf cmsis-toolbox-linux-amd64.tar.gz
$ ./cmsis-toolbox-linux-amd64/bin/packchk -V
packchk 1.4.1 (C) 2012-2023 Arm Ltd. and Contributors

CMSIS Pack Checker 1.4.1 (C) 2012-2023 Arm Ltd. and Contributors

$ ./cmsis-toolbox-linux-amd64/bin/packchk <xxx>.pdsc
packchk: dl-call-libc-early-init.c:37: _dl_call_libc_early_init: Assertion `sym != NULL' failed.
Aborted

Environment (please complete the following information):

Ubuntu 20.04.6 LTS

@jeromecoutant jeromecoutant added the bug Something isn't working label Jul 6, 2023
@jeromecoutant
Copy link
Contributor Author

Info from @brondani

A possible workaround is to disable the schema validation by calling packchk with the option ‘--disable-validation’.

I confirm:

$ ./cmsis-toolbox-linux-amd64/bin/packchk xxx.pdsc --disable-validation

CMSIS Pack Checker 1.4.1 (C) 2012-2023 Arm Ltd. and Contributors


Phase1: Read PDSC files

Phase2: Static Data & Dependencies check

Phase3: RTE Model based Data & Dependencies check

Found 0 Error(s) and 0 Warning(s).

@jkrech jkrech changed the title [packchk] linux version is crashing [packchk] linux version is crashing (on Ubuntu 20.04.6 LTS) Jul 7, 2023
@thorstendb-ARM
Copy link
Collaborator

thorstendb-ARM commented Jul 7, 2023

The issue is caused by Xerxes when equalizing all possible input formats via iconv lib to UTF16 internal representation. The lib has changed in glibc between Ubuntu 20.4 and 22.4.
PackChk will be changed to build on Ubuntu 20.4 (remaining devtools left untouched), which schould solve the issue (tested, also runs on Debian 10).

There is a workaround, as already mentioned, which disables Xerxes:
--disable-validation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants