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

tests/lib/mem_alloc failed with arcmwdt toolchain #35569

Closed
IRISZZW opened this issue May 24, 2021 · 0 comments · Fixed by #35571
Closed

tests/lib/mem_alloc failed with arcmwdt toolchain #35569

IRISZZW opened this issue May 24, 2021 · 0 comments · Fixed by #35571
Assignees
Labels
area: ARC ARC Architecture area: Toolchains Toolchains bug The issue is a bug, or the PR is fixing a bug
Milestone

Comments

@IRISZZW
Copy link
Contributor

IRISZZW commented May 24, 2021

Describe the bug
tests/lib/mem_alloc failed with arcmwdt toolchain

To Reproduce
Steps to reproduce the behavior:

  1. ./scripts/twister -p nsim_hs -O build.sanity.nsim_hs -n -v -T tests/lib/mem_alloc/ -W
  2. See error

Logs and console output

 ./scripts/twister -p nsim_hs -O build.sanity.nsim_hs -n -v -T tests/lib/mem_alloc/ -W
INFO    - Zephyr version: v2.6.0-rc1-320-g374629af906a
INFO    - JOBS: 12
INFO    - Using 'arcmwdt' toolchain.
INFO    - Building initial testcase list...
INFO    - 4 test scenarios (4 configurations) selected, 0 configurations discarded due to filters.
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - 1/4 nsim_hs                   tests/lib/mem_alloc/libraries.libc.newlib.mem_alloc SKIPPED (filter)
INFO    - 2/4 nsim_hs                   tests/lib/mem_alloc/libraries.libc.newlib_nano.mem_alloc SKIPPED (filter)
INFO    - 3/4 nsim_hs                   tests/lib/mem_alloc/libraries.libc.minimal.mem_alloc_negative_testing FAILED Failed (nsim 2.936s)
ERROR   - see: /SCRATCH2/Watson/zephyrproject/zephyr/build.sanity.nsim_hs/nsim_hs/tests/lib/mem_alloc/libraries.libc.minimal.mem_alloc_negative_testing/handler.log
INFO    - 4/4 nsim_hs                   tests/lib/mem_alloc/libraries.libc.minimal.mem_alloc FAILED Failed (nsim 3.067s)
ERROR   - see: /SCRATCH2/Watson/zephyrproject/zephyr/build.sanity.nsim_hs/nsim_hs/tests/lib/mem_alloc/libraries.libc.minimal.mem_alloc/handler.log

INFO    - 0 of 2 test configurations passed (0.00%), 2 failed, 2 skipped with 0 warnings in 23.10 seconds
INFO    - In total 4 test cases were executed, 4 skipped on 1 out of total 372 platforms (0.27%)
INFO    - 2 test configurations executed on platforms, 0 test configurations were only built.
INFO    - Saving reports...
INFO    - Writing xunit report /SCRATCH2/Watson/zephyrproject/zephyr/build.sanity.nsim_hs/twister.xml...
INFO    - Writing xunit report /SCRATCH2/Watson/zephyrproject/zephyr/build.sanity.nsim_hs/twister_report.xml...
INFO    - Run completed

tests/lib/mem_alloc/libraries.libc.minimal.mem_alloc_negative_testing:

*** Booting Zephyr OS build v2.6.0-rc1-320-g374629af906a  ***
Running test suite test_c_lib_dynamic_memalloc
===================================================================
START - test_no_mem_malloc

    Assertion failed at /SCRATCH2/Watson/zephyrproject/zephyr/tests/lib/mem_alloc/src/main.c:154: test_no_mem_malloc: ((iptr) is not NULL)
malloc failed, errno: 0
 FAIL - test_no_mem_malloc in 0.4 seconds
===================================================================
START - test_no_mem_realloc

    Assertion failed at /SCRATCH2/Watson/zephyrproject/zephyr/tests/lib/mem_alloc/src/main.c:164: test_no_mem_realloc: (reloc_ptr is not NULL)
realloc failed, errno: 0
 FAIL - test_no_mem_realloc in 0.4 seconds
===================================================================
Test suite test_c_lib_dynamic_memalloc failed.
===================================================================
PROJECT EXECUTION FAILED

tests/lib/mem_alloc/libraries.libc.minimal.mem_alloc:

*** Booting Zephyr OS build v2.6.0-rc1-320-g374629af906a  ***
Running test suite test_c_lib_dynamic_memalloc
===================================================================
START - test_malloc_align
  Compiler type info for arc nsim
    TYPE            SIZE  ALIGN
    int                4      4
    long               4      4
    long long          8      8
    double             8      8
    size_t             4      4
    void *             4      4
    void (*)(void)     4      4
    time_t             8      8
 PASS - test_malloc_align in 0.474 seconds
===================================================================
START - test_malloc
 PASS - test_malloc in 0.1 seconds
===================================================================
START - test_free
 PASS - test_free in 0.1 seconds
===================================================================
START - test_calloc

    Assertion failed at /SCRATCH2/Watson/zephyrproject/zephyr/tests/lib/mem_alloc/src/main.c:245: test_calloc: ((cptr) is not NULL)
calloc failed, errno: 0
 FAIL - test_calloc in 0.4 seconds
===================================================================
START - test_realloc
 PASS - test_realloc in 0.1 seconds
===================================================================
START - test_reallocarray
 PASS - test_reallocarray in 0.1 seconds
===================================================================
START - test_memalloc_all
 PASS - test_memalloc_all in 0.1 seconds
===================================================================
START - test_memalloc_max
 PASS - test_memalloc_max in 0.1 seconds
===================================================================
Test suite test_c_lib_dynamic_memalloc failed.
===================================================================
PROJECT EXECUTION FAILED

Environment (please complete the following information):

  • OS: (Linux)
  • Toolchain (arcmwdt)
  • Commit SHA: 374629a
@IRISZZW IRISZZW added bug The issue is a bug, or the PR is fixing a bug area: Toolchains Toolchains area: ARC ARC Architecture labels May 24, 2021
@IRISZZW IRISZZW added this to the v2.6.0 milestone May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARC ARC Architecture area: Toolchains Toolchains bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants