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/malloc: reduce default chunk size #12813

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

aabadie
Copy link
Contributor

@aabadie aabadie commented Nov 26, 2019

Contribution description

This PR reduces the default value of CHUNK_SIZE from 1024 to 512. This allows to automatically run the test on very constrained platforms such as arduino-uno (2KB RAM).

Testing procedure

Run:

make BOARD=arduino-uno -C tests/malloc flash test

On master it fails because to allocations are performed and the automatic test script checks that at least one allocation is made.
With this PR, there's one allocation performed by the test application so the automatic test script works.

Issues/PRs references

None

This allows to automatically run the test on very constrained platforms such as arduino-uno (2KB RAM)
@aabadie aabadie added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: tests Area: tests and testing framework Platform: AVR Platform: This PR/issue effects AVR-based platforms CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 26, 2019
@aabadie aabadie requested a review from maribu November 26, 2019 14:24
Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The chunk size is arbitrary anyway, if a smaller number is helpful we should just make it smaller.

@aabadie aabadie changed the title tests/malloc: reduce defaut chunk size tests/malloc: reduce default chunk size Nov 26, 2019
@aabadie aabadie merged commit 37dc677 into RIOT-OS:master Nov 26, 2019
@aabadie aabadie deleted the pr/tests/malloc_lowmemory branch November 26, 2019 15:44
@miri64
Copy link
Member

miri64 commented Nov 27, 2019

Please activate the CI: run tests label next time when adding an update to the tests. The nightlies are now failing because of this test.

@aabadie
Copy link
Contributor Author

aabadie commented Nov 27, 2019

Maybe we should upgrade the RPIs used by Murdock to more powerful ones (RPI3B+ or RPI4). This test works like a charm when run locally on my (powerful ;)) machine (and I also I tested this before this PR was merged of course). Here are the results of a fresh run:

GCC
$ BUILD_IN_DOCKER=1 make BOARD=samr21-xpro -C tests/malloc/ flash test
make: Entering directory '/work/riot/RIOT/tests/malloc'
Launching build container using image "riot/riotbuild:latest".
docker run --rm -t -u "$(id -u)" \
    -v '/usr/share/zoneinfo/Europe/Paris:/etc/localtime:ro' -v '/work/riot/RIOT:/data/riotbuild/riotbase:delegated' -e 'RIOTBASE=/data/riotbuild/riotbase' -e 'CCACHE_BASEDIR=/data/riotbuild/riotbase' -e 'BUILD_DIR=/data/riotbuild/riotbase/build' -e 'RIOTPROJECT=/data/riotbuild/riotbase' -e 'RIOTCPU=/data/riotbuild/riotbase/cpu' -e 'RIOTBOARD=/data/riotbuild/riotbase/boards' -e 'RIOTMAKE=/data/riotbuild/riotbase/makefiles'     \
    -e 'BOARD=samr21-xpro' \
    -w '/data/riotbuild/riotbase/tests/malloc/' \
    'riot/riotbuild:latest' make  'BOARD=samr21-xpro' 
Building application "tests_malloc" for "samr21-xpro" with MCU "samd21".

"make" -C /data/riotbuild/riotbase/boards/samr21-xpro
"make" -C /data/riotbuild/riotbase/core
"make" -C /data/riotbuild/riotbase/cpu/samd21
"make" -C /data/riotbuild/riotbase/cpu/cortexm_common
"make" -C /data/riotbuild/riotbase/cpu/cortexm_common/periph
"make" -C /data/riotbuild/riotbase/cpu/sam0_common
"make" -C /data/riotbuild/riotbase/cpu/sam0_common/periph
"make" -C /data/riotbuild/riotbase/cpu/samd21/periph
"make" -C /data/riotbuild/riotbase/drivers
"make" -C /data/riotbuild/riotbase/drivers/periph_common
"make" -C /data/riotbuild/riotbase/sys
"make" -C /data/riotbuild/riotbase/sys/auto_init
"make" -C /data/riotbuild/riotbase/sys/newlib_syscalls_default
"make" -C /data/riotbuild/riotbase/sys/pm_layered
"make" -C /data/riotbuild/riotbase/sys/stdio_uart
   text	   data	    bss	    dec	    hex	filename
   8548	    120	   2552	  11220	   2bd4	/data/riotbuild/riotbase/tests/malloc/bin/samr21-xpro/tests_malloc.elf
/work/riot/RIOT/dist/tools/edbg/edbg  --target atmel_cm0p --verbose --file /work/riot/RIOT/tests/malloc/bin/samr21-xpro/tests_malloc.bin --verify || /work/riot/RIOT/dist/tools/edbg/edbg  --target atmel_cm0p --verbose --file /work/riot/RIOT/tests/malloc/bin/samr21-xpro/tests_malloc.bin --verify --program
Debugger: ATMEL EDBG CMSIS-DAP ATML2127031800009840 01.1A.00FB (S)
Clock frequency: 16.0 MHz
Target: SAM R21G18 (Rev C)
Verification...
at address 0x4 expected 0x01, read 0x05
Error: verification failed
Debugger: ATMEL EDBG CMSIS-DAP ATML2127031800009840 01.1A.00FB (S)
Clock frequency: 16.0 MHz
Target: SAM R21G18 (Rev C)
Programming..................................... done.
Verification..................................... done.
/work/riot/RIOT/dist/tools/pyterm/pyterm -p "/dev/ttyACM0" -b "115200" --noprefix --no-repeat-command-on-empty-line
Connect to serial port /dev/ttyACM0
Welcome to pyterm!
Type '/exit' to exit.
�����
��b��х�������Free 512 Bytes at 0x0x20001cd8, total 23928
Free 512 Bytes at 0x0x20001ef0, total 23408
Free 512 Bytes at 0x0x20002108, total 22888
Free 512 Bytes at 0x0x20002320, total 22368
Free 512 Bytes at 0x0x20002538, total 21848
Free 512 Bytes at 0x0x20002750, total 21328
Free 512 Bytes at 0x0x20002968, total 20808
Free 512 Bytes at 0x0x20002b80, total 20288
Free 512 Bytes at 0x0x20002d98, total 19768
Free 512 Bytes at 0x0x20002fb0, total 19248
Free 512 Bytes at 0x0x200031c8, total 18728
Free 512 Bytes at 0x0x200033e0, total 18208
Free 512 Bytes at 0x0x200035f8, total 17688
Free 512 Bytes at 0x0x20003810, total 17168
Free 512 Bytes at 0x0x20003a28, total 16648
Free 512 Bytes at 0x0x20003c40, total 16128
Free 512 Bytes at 0x0x20003e58, total 15608
Free 512 Bytes at 0x0x20004070, total 15088
Free 512 Bytes at 0x0x20004288, total 14568
Free 512 Bytes at 0x0x200044a0, total 14048
Free 512 Bytes at 0x0x200046b8, total 13528
Free 512 Bytes at 0x0x200048d0, total 13008
Free 512 Bytes at 0x0x20004ae8, total 12488
Free 512 Bytes at 0x0x20004d00, total 11968
Free 512 Bytes at 0x0x20004f18, total 11448
Free 512 Bytes at 0x0x20005130, total 10928
Free 512 Bytes at 0x0x20005348, total 10408
Free 512 Bytes at 0x0x20005560, total 9888
Free 512 Bytes at 0x0x20005778, total 9368
Free 512 Bytes at 0x0x20005990, total 8848
Free 512 Bytes at 0x0x20005ba8, total 8328
Free 512 Bytes at 0x0x20005dc0, total 7808
Free 512 Bytes at 0x0x20005fd8, total 7288
Free 512 Bytes at 0x0x200061f0, total 6768
Free 512 Bytes at 0x0x20006408, total 6248
Free 512 Bytes at 0x0x20006620, total 5728
Free 512 Bytes at 0x0x20006838, total 5208
Free 512 Bytes at 0x0x20006a50, total 4688
Free 512 Bytes at 0x0x20006c68, total 4168
Free 512 Bytes at 0x0x20006e80, total 3648
Free 512 Bytes at 0x0x20007098, total 3128
Free 512 Bytes at 0x0x200072b0, total 2608
Free 512 Bytes at 0x0x200074c8, total 2088
Free 512 Bytes at 0x0x200076e0, total 1568
Free 512 Bytes at 0x0x200078f8, total 1048
Free 512 Bytes at 0x0x20007b10, total 528
Free 512 Bytes at 0x0x20007d28, total 8
Allocated 512 Bytes at 0x0x20007d28, total 512
Allocated 512 Bytes at 0x0x20007b10, total 1032
Allocated 512 Bytes at 0x0x200078f8, total 1552
Allocated 512 Bytes at 0x0x200076e0, total 2072
Allocated 512 Bytes at 0x0x200074c8, total 2592
Allocated 512 Bytes at 0x0x200072b0, total 3112
Allocated 512 Bytes at 0x0x20007098, total 3632
Allocated 512 Bytes at 0x0x20006e80, total 4152
Allocated 512 Bytes at 0x0x20006c68, total 4672
Allocated 512 Bytes at 0x0x20006a50, total 5192
Allocated 512 Bytes at 0x0x20006838, total 5712
Allocated 512 Bytes at 0x0x20006620, total 6232
Allocated 512 Bytes at 0x0x20006408, total 6752
Allocated 512 Bytes at 0x0x200061f0, total 7272
Allocated 512 Bytes at 0x0x20005fd8, total 7792
Allocated 512 Bytes at 0x0x20005dc0, total 8312
Allocated 512 Bytes at 0x0x20005ba8, total 8832
Allocated 512 Bytes at 0x0x20005990, total 9352
Allocated 512 Bytes at 0x0x20005778, total 9872
Allocated 512 Bytes at 0x0x20005560, total 10392
Allocated 512 Bytes at 0x0x20005348, total 10912
Allocated 512 Bytes at 0x0x20005130, total 11432
Allocated 512 Bytes at 0x0x20004f18, total 11952
Allocated 512 Bytes at 0x0x20004d00, total 12472
Allocated 512 Bytes at 0x0x20004ae8, total 12992
Allocated 512 Bytes at 0x0x200048d0, total 13512
Allocated 512 Bytes at 0x0x200046b8, total 14032
Allocated 512 Bytes at 0x0x200044a0, total 14552
Allocated 512 Bytes at 0x0x20004288, total 15072
Allocated 512 Bytes at 0x0x20004070, total 15592
Allocated 512 Bytes at 0x0x20003e58, total 16112
Allocated 512 Bytes at 0x0x20003c40, total 16632
Allocated 512 Bytes at 0x0x20003a28, total 17152
Allocated 512 Bytes at 0x0x20003810, total 17672
Allocated 512 Bytes at 0x0x200035f8, total 18192
Allocated 512 Bytes at 0x0x200033e0, total 18712
Allocated 512 Bytes at 0x0x200031c8, total 19232
Allocated 512 Bytes at 0x0x20002fb0, total 19752
Allocated 512 Bytes at 0x0x20002d98, total 20272
Allocated 512 Bytes at 0x0x20002b80, total 20792
Allocated 512 Bytes at 0x0x20002968, total 21312
Allocated 512 Bytes at 0x0x20002750, total 21832
Allocated 512 Bytes at 0x0x20002538, total 22352
Allocated 512 Bytes at 0x0x20002320, total 22872
Allocated 512 Bytes at 0x0x20002108, total 23392
Allocated 512 Bytes at 0x0x20001ef0, total 23912
Allocated 512 Bytes at 0x0x20001cd8, total 24432
Allocated 512 Bytes at 0x0x20001ac0, total 24952
Allocated 512 Bytes at 0x0x200018a8, total 25472
Allocated 512 Bytes at 0x0x20001690, total 25992
Allocated 52fb0, total 7808
Free 512 Bytes at 0x0x20002d98, total 7288
Free 512 Bytes at 0x0x20002b80, total 6768
Free 512 Bytes at 0x0x20002968, total 6248
Free 512 Bytes at 0x0x20002750, total 5728
Free 512 Bytes at 0x0x20002538, total 5208
Free 512 Bytes at 0x0x20002320, total 4688
Free 512 Bytes at 0x0x20002108, total 4168
Free 512 Bytes at 0x0x20001ef0, total 3648
Free 512 Bytes at 0x0x20001cd8, total 3128
Free 512 Bytes at 0x0x20001ac0, total 2608
Free 512 Bytes at 0x0x200018a8, total 2088
Free 512 Bytes at 0x0x20001690, total 1568
Free 512 Bytes at 0x0x20001478, total 1048
Free 512 Bytes at 0x0x20001260, total 528
Free 512 Bytes at 0x0x20001048, total 8
[SUCCESS]
main(): This is RIOT! (Version: 2020.01-devel-1085-g574c7d)
CHUNK_SIZE: 512
NUMBER_OF_TESTS: 3
Allocated 512 Bytes at 0x0x20001048, total 512
Allocated 512 Bytes at 0x0x20001260, total 1032
Allocated 512 Bytes at 0x0x20001478, total 1552
Allocated 512 Bytes at 0x0x20001690, total 2072
Allocated 512 Bytes at 0x0x200018a8, total 2592
Allocated 512 Bytes at 0x0x20001ac0, total 3112
Allocated 512 Bytes at 0x0x20001cd8, total 3632
Allocated 512 Bytes at 0x0x20001ef0, total 4152
Allocated 512 Bytes at 0x0x20002108, total 4672
Allocated 512 Bytes at 0x0x20002320, total 5192
Allocated 512 Bytes at 0x0x20002538, total 5712
Allocated 512 Bytes at 0x0x20002750, total 6232
Allocated 512 Bytes at 0x0x20002968, total 6752
Allocated 512 Bytes at 0x0x20002b80, total 7272
Allocated 512 Bytes at 0x0x20002d98, total 7792
Allocated 512 Bytes at 0x0x20002fb0, total 8312
Allocated 512 Bytes at 0x0x200031c8, total 8832
Allocated 512 Bytes at 0x0x200033e0, total 9352
Allocated 512 Bytes at 0x0x200035f8, total 9872
Allocated 512 Bytes at 0x0x20003810, total 10392
Allocated 512 Bytes at 0x0x20003a28, total 10912
Allocated 512 Bytes at 0x0x20003c40, total 11432
Allocated 512 Bytes at 0x0x20003e58, total 11952
Allocated 512 Bytes at 0x0x20004070, total 12472
Allocated 512 Bytes at 0x0x20004288, total 12992
Allocated 512 Bytes at 0x0x200044a0, total 13512
Allocated 512 Bytes at 0x0x200046b8, total 14032
Allocated 512 Bytes at 0x0x200048d0, total 14552
Allocated 512 Bytes at 0x0x20004ae8, total 15072
Allocated 512 Bytes at 0x0x20004d00, total 15592
Allocated 512 Bytes at 0x0x20004f18, total 16112
Allocated 512 Bytes at 0x0x20005130, total 16632
Allocated 512 Bytes at 0x0x20005348, total 17152
Allocated 512 Bytes at 0x0x20005560, total 17672
Allocated 512 Bytes at 0x0x20005778, total 18192
Allocated 512 Bytes at 0x0x20005990, total 18712
Allocated 512 Bytes at 0x0x20005ba8, total 19232
Allocated 512 Bytes at 0x0x20005dc0, total 19752
Allocated 512 Bytes at 0x0x20005fd8, total 20272
Allocated 512 Bytes at 0x0x200061f0, total 20792
Allocated 512 Bytes at 0x0x20006408, total 21312
Allocated 512 Bytes at 0x0x20006620, total 21832
Allocated 512 Bytes at 0x0x20006838, total 22352
Allocated 512 Bytes at 0x0x20006a50, total 22872
Allocated 512 Bytes at 0x0x20006c68, total 23392
Allocated 512 Bytes at 0x0x20006e80, total 23912
Allocated 512 Bytes at 0x0x20007098, total 24432
Allocated 512 Bytes at 0x0x200072b0, total 24952
Allocated 512 Bytes at 0x0x200074c8, total 25472
Allocated 512 Bytes at 0x0x200076e0, total 25992
Allocated 512 Bytes at 0x0x200078f8, total 26512
Allocated 512 Bytes at 0x0x20007b10, total 27032
Allocated 512 Bytes at 0x0x20007d28, total 27552
Allocations count: 53
Free 512 Bytes at 0x0x20001048, total 27048
Free 512 Bytes at 0x0x20001260, total 26528
Free 512 Bytes at 0x0x20001478, total 26008
Free 512 Bytes at 0x0x20001690, total 25488
Free 512 Bytes at 0x0x200018a8, total 24968
Free 512 Bytes at 0x0x20001ac0, total 24448
Free 512 Bytes at 0x0x20001cd8, total 23928
Free 512 Bytes at 0x0x20001ef0, total 23408
Free 512 Bytes at 0x0x20002108, total 22888
Free 512 Bytes at 0x0x20002320, total 22368
Free 512 Bytes at 0x0x20002538, total 21848
Free 512 Bytes at 0x0x20002750, total 21328
Free 512 Bytes at 0x0x20002968, total 20808
Free 512 Bytes at 0x0x20002b80, total 20288
Free 512 Bytes at 0x0x20002d98, total 19768
Free 512 Bytes at 0x0x20002fb0, total 19248
Free 512 Bytes at 0x0x200031c8, total 18728
Free 512 Bytes at 0x0x200033e0, total 18208
Free 512 Bytes at 0x0x200035f8, total 17688
Free 512 Bytes at 0x0x20003810, total 17168
Free 512 Bytes at 0x0x20003a28, total 16648
Free 512 Bytes at 0x0x20003c40, total 16128
Free 512 Bytes at 0x0x20003e58, total 15608
Free 512 Bytes at 0x0x20004070, total 15088
Free 512 Bytes at 0x0x20004288, total 14568
Free 512 Bytes at 0x0x200044a0, total 14048
Free 512 Bytes at 0x0x200046b8, total 13528
Free 512 Bytes at 0x0x200048d0, total 13008
Free 512 Bytes at 0x0x20004ae8, total 12488
Free 512 Bytes at 0x0x20004d00, total 11968
Free 512 Bytes at 0x0x20004f18, total 11448
Free 512 Bytes at 0x0x20005130, total 10928
Free 512 Bytes at 0x0x20005348, total 10408
Free 512 Bytes at 0x0x20005560, total 9888
Free 512 Bytes at 0x0x20005778, total 9368
Free 512 Bytes at 0x0x20005990, total 8848
Free 512 Bytes at 0x0x20005ba8, total 8328
Free 512 Bytes at 0x0x20005dc0, total 7808
Free 512 Bytes at 0x0x20005fd8, total 7288
Free 512 Bytes at 0x0x200061f0, total 6768
Free 512 Bytes at 0x0x20006408, total 6248
Free 512 Bytes at 0x0x20006620, total 5728
Free 512 Bytes at 0x0x20006838, total 5208
Free 512 Bytes at 0x0x20006a50, total 4688
Free 512 Bytes at 0x0x20006c68, total 4168
Free 512 Bytes at 0x0x20006e80, total 3648
Free 512 Bytes at 0x0x20007098, total 3128
Free 512 Bytes at 0x0x200072b0, total 2608
Free 512 Bytes at 0x0x200074c8, total 2088
Free 512 Bytes at 0x0x200076e0, total 1568
Free 512 Bytes at 0x0x200078f8, total 1048
Free 512 Bytes at 0x0x20007b10, total 528
Free 512 Bytes at 0x0x20007d28, total 8
Allocated 512 Bytes at 0x0x20007d28, total 512
Allocated 512 Bytes at 0x0x20007b10, total 1032
Allocated 512 Bytes at 0x0x200078f8, total 1552
Allocated 512 Bytes at 0x0x200076e0, total 2072
Allocated 512 Bytes at 0x0x200074c8, total 2592
Allocated 512 Bytes at 0x0x200072b0, total 3112
Allocated 512 Bytes at 0x0x20007098, total 3632
Allocated 512 Bytes at 0x0x20006e80, total 4152
Allocated 512 Bytes at 0x0x20006c68, total 4672
Allocated 512 Bytes at 0x0x20006a50, total 5192
Allocated 512 Bytes at 0x0x20006838, total 5712
Allocated 512 Bytes at 0x0x20006620, total 6232
Allocated 512 Bytes at 0x0x20006408, total 6752
Allocated 512 Bytes at 0x0x200061f0, total 7272
Allocated 512 Bytes at 0x0x20005fd8, total 7792
Allocated 512 Bytes at 0x0x20005dc0, total 8312
Allocated 512 Bytes at 0x0x20005ba8, total 8832
Allocated 512 Bytes at 0x0x20005990, total 9352
Allocated 512 Bytes at 0x0x20005778, total 9872
Allocated 512 Bytes at 0x0x20005560, total 10392
Allocated 512 Bytes at 0x0x20005348, total 10912
Allocated 512 Bytes at 0x0x20005130, total 11432
Allocated 512 Bytes at 0x0x20004f18, total 11952
Allocated 512 Bytes at 0x0x20004d00, total 12472
Allocated 512 Bytes at 0x0x20004ae8, total 12992
Allocated 512 Bytes at 0x0x200048d0, total 13512
Allocated 512 Bytes at 0x0x200046b8, total 14032
Allocated 512 Bytes at 0x0x200044a0, total 14552
Allocated 512 Bytes at 0x0x20004288, total 15072
Allocated 512 Bytes at 0x0x20004070, total 15592
Allocated 512 Bytes at 0x0x20003e58, total 16112
Allocated 512 Bytes at 0x0x20003c40, total 16632
Allocated 512 Bytes at 0x0x20003a28, total 17152
Allocated 512 Bytes at 0x0x20003810, total 17672
Allocated 512 Bytes at 0x0x200035f8, total 18192
Allocated 512 Bytes at 0x0x200033e0, total 18712
Allocated 512 Bytes at 0x0x200031c8, total 19232
Allocated 512 Bytes at 0x0x20002fb0, total 19752
Allocated 512 Bytes at 0x0x20002d98, total 20272
Allocated 512 Bytes at 0x0x20002b80, total 20792
Allocated 512 Bytes at 0x0x20002968, total 21312
Allocated 512 Bytes at 0x0x20002750, total 21832
Allocated 512 Bytes at 0x0x20002538, total 22352
Allocated 512 Bytes at 0x0x20002320, total 22872
Allocated 512 Bytes at 0x0x20002108, total 23392
Allocated 512 Bytes at 0x0x20001ef0, total 23912
Allocated 512 Bytes at 0x0x20001cd8, total 24432
Allocated 512 Bytes at 0x0x20001ac0, total 24952
Allocated 512 Bytes at 0x0x200018a8, total 25472
Allocated 512 Bytes at 0x0x20001690, total 25992
Allocated 512 Bytes at 0x0x20001478, total 26512
Allocated 512 Bytes at 0x0x20001260, total 27032
Allocated 512 Bytes at 0x0x20001048, total 27552
Allocations count: 53
Free 512 Bytes at 0x0x20007d28, total 27048
Free 512 Bytes at 0x0x20007b10, total 26528
Free 512 Bytes at 0x0x200078f8, total 26008
Free 512 Bytes at 0x0x200076e0, total 25488
Free 512 Bytes at 0x0x200074c8, total 24968
Free 512 Bytes at 0x0x200072b0, total 24448
Free 512 Bytes at 0x0x20007098, total 23928
Free 512 Bytes at 0x0x20006e80, total 23408
Free 512 Bytes at 0x0x20006c68, total 22888
Free 512 Bytes at 0x0x20006a50, total 22368
Free 512 Bytes at 0x0x20006838, total 21848
Free 512 Bytes at 0x0x20006620, total 21328
Free 512 Bytes at 0x0x20006408, total 20808
Free 512 Bytes at 0x0x200061f0, total 20288
Free 512 Bytes at 0x0x20005fd8, total 19768
Free 512 Bytes at 0x0x20005dc0, total 19248
Free 512 Bytes at 0x0x20005ba8, total 18728
Free 512 Bytes at 0x0x20005990, total 18208
Free 512 Bytes at 0x0x20005778, total 17688
Free 512 Bytes at 0x0x20005560, total 17168
Free 512 Bytes at 0x0x20005348, total 16648
Free 512 Bytes at 0x0x20005130, total 16128
Free 512 Bytes at 0x0x20004f18, total 15608
Free 512 Bytes at 0x0x20004d00, total 15088
Free 512 Bytes at 0x0x20004ae8, total 14568
Free 512 Bytes at 0x0x200048d0, total 14048
Free 512 Bytes at 0x0x200046b8, total 13528
Free 512 Bytes at 0x0x200044a0, total 13008
Free 512 Bytes at 0x0x20004288, total 12488
Free 512 Bytes at 0x0x20004070, total 11968
Free 512 Bytes at 0x0x20003e58, total 11448
Free 512 Bytes at 0x0x20003c40, total 10928
Free 512 Bytes at 0x0x20003a28, total 10408
Free 512 Bytes at 0x0x20003810, total 9888
Free 512 Bytes at 0x0x200035f8, total 9368
Free 512 Bytes at 0x0x200033e0, total 8848
Free 512 Bytes at 0x0x200031c8, total 8328
Free 512 Bytes at 0x0x20002fb0, total 7808
Free 512 Bytes at 0x0x20002d98, total 7288
Free 512 Bytes at 0x0x20002b80, total 6768
Free 512 Bytes at 0x0x20002968, total 6248
Free 512 Bytes at 0x0x20002750, total 5728
Free 512 Bytes at 0x0x20002538, total 5208
Free 512 Bytes at 0x0x20002320, total 4688
Free 512 Bytes at 0x0x20002108, total 4168
Free 512 Bytes at 0x0x20001ef0, total 3648
Free 512 Bytes at 0x0x20001cd8, total 3128
Free 512 Bytes at 0x0x20001ac0, total 2608
Free 512 Bytes at 0x0x200018a8, total 2088
Free 512 Bytes at 0x0x20001690, total 1568
Free 512 Bytes at 0x0x20001478, total 1048
Free 512 Bytes at 0x0x20001260, total 528
Free 512 Bytes at 0x0x20001048, total 8
Allocated 512 Bytes at 0x0x20007d28, total 512
Allocated 512 Bytes at 0x0x20007b10, total 1032
Allocated 512 Bytes at 0x0x200078f8, total 1552
Allocated 512 Bytes at 0x0x200076e0, total 2072
Allocated 512 Bytes at 0x0x200074c8, total 2592
Allocated 512 Bytes at 0x0x200072b0, total 3112
Allocated 512 Bytes at 0x0x20007098, total 3632
Allocated 512 Bytes at 0x0x20006e80, total 4152
Allocated 512 Bytes at 0x0x20006c68, total 4672
Allocated 512 Bytes at 0x0x20006a50, total 5192
Allocated 512 Bytes at 0x0x20006838, total 5712
Allocated 512 Bytes at 0x0x20006620, total 6232
Allocated 512 Bytes at 0x0x20006408, total 6752
Allocated 512 Bytes at 0x0x200061f0, total 7272
Allocated 512 Bytes at 0x0x20005fd8, total 7792
Allocated 512 Bytes at 0x0x20005dc0, total 8312
Allocated 512 Bytes at 0x0x20005ba8, total 8832
Allocated 512 Bytes at 0x0x20005990, total 9352
Allocated 512 Bytes at 0x0x20005778, total 9872
Allocated 512 Bytes at 0x0x20005560, total 10392
Allocated 512 Bytes at 0x0x20005348, total 10912
Allocated 512 Bytes at 0x0x20005130, total 11432
Allocated 512 Bytes at 0x0x20004f18, total 11952
Allocated 512 Bytes at 0x0x20004d00, total 12472
Allocated 512 Bytes at 0x0x20004ae8, total 12992
Allocated 512 Bytes at 0x0x200048d0, total 13512
Allocated 512 Bytes at 0x0x200046b8, total 14032
Allocated 512 Bytes at 0x0x200044a0, total 14552
Allocated 512 Bytes at 0x0x20004288, total 15072
Allocated 512 Bytes at 0x0x20004070, total 15592
Allocated 512 Bytes at 0x0x20003e58, total 16112
Allocated 512 Bytes at 0x0x20003c40, total 16632
Allocated 512 Bytes at 0x0x20003a28, total 17152
Allocated 512 Bytes at 0x0x20003810, total 17672
Allocated 512 Bytes at 0x0x200035f8, total 18192
Allocated 512 Bytes at 0x0x200033e0, total 18712
Allocated 512 Bytes at 0x0x200031c8, total 19232
Allocated 512 Bytes at 0x0x20002fb0, total 19752
Allocated 512 Bytes at 0x0x20002d98, total 20272
Allocated 512 Bytes at 0x0x20002b80, total 20792
Allocated 512 Bytes at 0x0x20002968, total 21312
Allocated 512 Bytes at 0x0x20002750, total 21832
Allocated 512 Bytes at 0x0x20002538, total 22352
Allocated 512 Bytes at 0x0x20002320, total 22872
Allocated 512 Bytes at 0x0x20002108, total 23392
Allocated 512 Bytes at 0x0x20001ef0, total 23912
Allocated 512 Bytes at 0x0x20001cd8, total 24432
Allocated 512 Bytes at 0x0x20001ac0, total 24952
Allocated 512 Bytes at 0x0x200018a8, total 25472
Allocated 512 Bytes at 0x0x20001690, total 25992
Allocated 512 Bytes at 0x0x20001478, total 26512
Allocated 512 Bytes at 0x0x20001260, total 27032
Allocated 512 Bytes at 0x0x20001048, total 27552
Allocations count: 53
Free 512 Bytes at 0x0x20007d28, total 27048
Free 512 Bytes at 0x0x20007b10, total 26528
Free 512 Bytes at 0x0x200078f8, total 26008
Free 512 Bytes at 0x0x200076e0, total 25488
Free 512 Bytes at 0x0x200074c8, total 24968
Free 512 Bytes at 0x0x200072b0, total 24448
Free 512 Bytes at 0x0x20007098, total 23928
Free 512 Bytes at 0x0x20006e80, total 23408
Free 512 Bytes at 0x0x20006c68, total 22888
Free 512 Bytes at 0x0x20006a50, total 22368
Free 512 Bytes at 0x0x20006838, total 21848
Free 512 Bytes at 0x0x20006620, total 21328
Free 512 Bytes at 0x0x20006408, total 20808
Free 512 Bytes at 0x0x200061f0, total 20288
Free 512 Bytes at 0x0x20005fd8, total 19768
Free 512 Bytes at 0x0x20005dc0, total 19248
Free 512 Bytes at 0x0x20005ba8, total 18728
Free 512 Bytes at 0x0x20005990, total 18208
Free 512 Bytes at 0x0x20005778, total 17688
Free 512 Bytes at 0x0x20005560, total 17168
Free 512 Bytes at 0x0x20005348, total 16648
Free 512 Bytes at 0x0x20005130, total 16128
Free 512 Bytes at 0x0x20004f18, total 15608
Free 512 Bytes at 0x0x20004d00, total 15088
Free 512 Bytes at 0x0x20004ae8, total 14568
Free 512 Bytes at 0x0x200048d0, total 14048
Free 512 Bytes at 0x0x200046b8, total 13528
Free 512 Bytes at 0x0x200044a0, total 13008
Free 512 Bytes at 0x0x20004288, total 12488
Free 512 Bytes at 0x0x20004070, total 11968
Free 512 Bytes at 0x0x20003e58, total 11448
Free 512 Bytes at 0x0x20003c40, total 10928
Free 512 Bytes at 0x0x20003a28, total 10408
Free 512 Bytes at 0x0x20003810, total 9888
Free 512 Bytes at 0x0x200035f8, total 9368
Free 512 Bytes at 0x0x200033e0, total 8848
Free 512 Bytes at 0x0x200031c8, total 8328
Free 512 Bytes at 0x0x20002fb0, total 7808
Free 512 Bytes at 0x0x20002d98, total 7288
Free 512 Bytes at 0x0x20002b80, total 6768
Free 512 Bytes at 0x0x20002968, total 6248
Free 512 Bytes at 0x0x20002750, total 5728
Free 512 Bytes at 0x0x20002538, total 5208
Free 512 Bytes at 0x0x20002320, total 4688
Free 512 Bytes at 0x0x20002108, total 4168
Free 512 Bytes at 0x0x20001ef0, total 3648
Free 512 Bytes at 0x0x20001cd8, total 3128
Free 512 Bytes at 0x0x20001ac0, total 2608
Free 512 Bytes at 0x0x200018a8, total 2088
Free 512 Bytes at 0x0x20001690, total 1568
Free 512 Bytes at 0x0x20001478, total 1048
Free 512 Bytes at 0x0x20001260, total 528
Free 512 Bytes at 0x0x20001048, total 8
[SUCCESS]

make: Leaving directory '/work/riot/RIOT/tests/malloc'
LLVM
$ TOOLCHAIN=llvm BUILD_IN_DOCKER=1 make BOARD=samr21-xpro -C tests/malloc/ flash test
make: Entering directory '/work/riot/RIOT/tests/malloc'
Launching build container using image "riot/riotbuild:latest".
docker run --rm -t -u "$(id -u)" \
    -v '/usr/share/zoneinfo/Europe/Paris:/etc/localtime:ro' -v '/work/riot/RIOT:/data/riotbuild/riotbase:delegated' -e 'RIOTBASE=/data/riotbuild/riotbase' -e 'CCACHE_BASEDIR=/data/riotbuild/riotbase' -e 'BUILD_DIR=/data/riotbuild/riotbase/build' -e 'RIOTPROJECT=/data/riotbuild/riotbase' -e 'RIOTCPU=/data/riotbuild/riotbase/cpu' -e 'RIOTBOARD=/data/riotbuild/riotbase/boards' -e 'RIOTMAKE=/data/riotbuild/riotbase/makefiles'     \
    -e 'BOARD=samr21-xpro' -e 'TOOLCHAIN=llvm' \
    -w '/data/riotbuild/riotbase/tests/malloc/' \
    'riot/riotbuild:latest' make  'BOARD=samr21-xpro' 
Building application "tests_malloc" for "samr21-xpro" with MCU "samd21".

"make" -C /data/riotbuild/riotbase/boards/samr21-xpro
"make" -C /data/riotbuild/riotbase/core
"make" -C /data/riotbuild/riotbase/cpu/samd21
"make" -C /data/riotbuild/riotbase/cpu/cortexm_common
"make" -C /data/riotbuild/riotbase/cpu/cortexm_common/periph
"make" -C /data/riotbuild/riotbase/cpu/sam0_common
"make" -C /data/riotbuild/riotbase/cpu/sam0_common/periph
"make" -C /data/riotbuild/riotbase/cpu/samd21/periph
"make" -C /data/riotbuild/riotbase/drivers
"make" -C /data/riotbuild/riotbase/drivers/periph_common
"make" -C /data/riotbuild/riotbase/sys
"make" -C /data/riotbuild/riotbase/sys/auto_init
"make" -C /data/riotbuild/riotbase/sys/newlib_syscalls_default
"make" -C /data/riotbuild/riotbase/sys/pm_layered
"make" -C /data/riotbuild/riotbase/sys/stdio_uart
   text    data     bss     dec     hex filename
   8624       0    2552   11176    2ba8 /data/riotbuild/riotbase/tests/malloc/bin/samr21-xpro/tests_malloc.elf
/work/riot/RIOT/dist/tools/edbg/edbg  --target atmel_cm0p --verbose --file /work/riot/RIOT/tests/malloc/bin/samr21-xpro/tests_malloc.bin --verify || /work/riot/RIOT/dist/tools/edbg/edbg  --target atmel_cm0p --verbose --file /work/riot/RIOT/tests/malloc/bin/samr21-xpro/tests_malloc.bin --verify --program
Debugger: ATMEL EDBG CMSIS-DAP ATML2127031800009840 01.1A.00FB (S)
Clock frequency: 16.0 MHz
Target: SAM R21G18 (Rev C)
Verification...
at address 0x4 expected 0xad, read 0x01
Error: verification failed
Debugger: ATMEL EDBG CMSIS-DAP ATML2127031800009840 01.1A.00FB (S)
Clock frequency: 16.0 MHz
Target: SAM R21G18 (Rev C)
Programming...................................... done.
Verification...................................... done.
/work/riot/RIOT/dist/tools/pyterm/pyterm -p "/dev/ttyACM0" -b "115200" --noprefix --no-repeat-command-on-empty-line
Connect to serial port /dev/ttyACM0
Welcome to pyterm!
Type '/exit' to exit.
�́
�����
����х������RFree 512 Bytes at 0x0x20004d00, total 11968
Free 512 Bytes at 0x0x20004f18, total 11448
Free 512 Bytes at 0x0x20005130, total 10928
Free 512 Bytes at 0x0x20005348, total 10408
Free 512 Bytes at 0x0x20005560, total 9888
Free 512 Bytes at 0x0x20005778, total 9368
Free 512 Bytes at 0x0x20005990, total 8848
Free 512 Bytes at 0x0x20005ba8, total 8328
Free 512 Bytes at 0x0x20005dc0, total 7808
Free 512 Bytes at 0x0x20005fd8, total 7288
Free 512 Bytes at 0x0x200061f0, total 6768
Free 512 Bytes at 0x0x20006408, total 6248
Free 512 Bytes at 0x0x20006620, total 5728
Free 512 Bytes at 0x0x20006838, total 5208
Free 512 Bytes at 0x0x20006a50, total 4688
Free 512 Bytes at 0x0x20006c68, total 4168
Free 512 Bytes at 0x0x20006e80, total 3648
Free 512 Bytes at 0x0x20007098, total 3128
Free 512 Bytes at 0x0x200072b0, total 2608
Free 512 Bytes at 0x0x200074c8, total 2088
Free 512 Bytes at 0x0x200076e0, total 1568
Free 512 Bytes at 0x0x200078f8, total 1048
Free 512 Bytes at 0x0x20007b10, total 528
Free 512 Bytes at 0x0x20007d28, total 8
Allocated 512 Bytes at 0x0x20007d28, total 512
Allocated 512 Bytes at 0x0x20007b10, total 1032
Allocated 512 Bytes at 0x0x200078f8, total 1552
Allocated 512 Bytes at 0x0x200076e0, total 2072
Allocated 512 Bytes at 0x0x200074c8, total 2592
Allocated 512 Bytes at 0x0x200072b0, total 3112
Allocated 512 Bytes at 0x0x20007098, total 3632
Allocated 512 Bytes at 0x0x20006e80, total 4152
Allocated 512 Bytes at 0x0x20006c68, total 4672
Allocated 512 Bytes at 0x0x20006a50, total 5192
Allocated 512 Bytes at 0x0x20006838, total 5712
Allocated 512 Bytes at 0x0x20006620, total 6232
Allocated 512 Bytes at 0x0x20006408, total 6752
Allocated 512 Bytes at 0x0x200061f0, total 7272
Allocated 512 Bytes at 0x0x20005fd8, total 7792
Allocated 512 Bytes at 0x0x20005dc0, total 8312
Allocated 512 Bytes at 0x0x20005ba8, total 8832
Allocated 512 Bytes at 0x0x20005990, total 9352
Allocated 512 Bytes at 0x0x20005778, total 9872
Allocated 512 Bytes at 0x0x20005560, total 10392
Allocated 512 Bytes at 0x0x20005348, total 10912
Allocated 512 Bytes at 0x0x20005130, total 11432
Allocated 512 Bytes at 0x0x20004f18, total 11952
Allocated 512 Bytes at 0x0x20004d00, total 12472
Allocated 512 Bytes at 0x0x20004ae8, total 12992
Allocated 512 Bytes at 0x0x200048d0, total 13512
Allocated 512 Bytes at 0x0x200046b8, total 14032
Allocated 512 Bytes at 0x0x200044a0, total 14552
Allocated 512 Bytes at 0x0x20004288, total 15072
Allocated 512 Bytes at 0x0x20004070, total 15592
Allocated 512 Bytes at 0x0x20003e58, total 16112
Allocated 512 Bytes at 0x0x20003c40, total 16632
Allocated 512 Bytes at 0x0x20003a28, total 17152
Allocated 512 Bytes at 0x0x20003810, total 17672
Allocated 512 Bytes at 0x0x200035f8, total 18192
Allocated 512 Bytes at 0x0x200033e0, total 18712
Allocated 512 Bytes at 0x0x200031c8, total 19232
Allocated 512 Bytes at 0x0x20002fb0, total 19752
Allocated 512 Bytes at 0x0x20002d98, total 20272
Allocated 512 Bytes at 0x0x20002b80, total 20792
Allocated 512 Bytes at 0x0x20002968, total 21312
Allocated 512 Bytes at 0x0x20002750, total 21832
Allocated 512 Bytes at 0x0x20002538, total 22352
Allocated 512 Bytes at 0x0x20002320, total 22872
Allocated 512 Bytes at 0x0x20002108, total 23392
Allocated 512 Bytes at 0x0x20001ef0, total 23912
Allocated 512 Bytes at 0x0x20001cd8, total 24432
Allocated 512 Bytes at 0x0x20001ac0, total 24952
Allocated 512 Bytes at 0x0x200018a8, total 25472
Allocated 512 Bytes at 0x0x20001690, total 25992
Allocated 512 Bytes at 0x0x20001478, total 26512
Allocated 512 Bytes at 0x0x20001260, total 27032
Allocated 512 Bytes at 0x0x20001048, total 27552
Allocations count: 53
Free 512 Bytes at 0x0x20007d28, total 27048
Free 512 Bytes at 0x0x20007b10, total 26528
Free 512 Bytes at 0x0x200078f8, total 26008
Free 512 Bytes at 0x0x200076e0, total 25488
Free 512 Bytes at 0x0x200074c8, total 24968
Free 512 Bytes at 0x0x200072b0, total 24448
Free 512 Bytes at 0x0x20007098, total 23928
Free 512 Bytes at 0x0x20006e80, total 23408
Free 512 Bytes at 0x0x20006c68, total 22888
Free 512 Bytes at 0x0x20006a50, total 22368
Free 512 Bytes at 0x0x20006838, total 21848
Free 512 Bytes at 0x0x20006620, total 21328
Free 512 Bytes at 0x0x20006408, total 20808
Free 512 Bytes at 0x0x200061f0, total 20288
Free 512 Bytes at 0x0x20005fd8, total 19768
Free 512 Bytes at 0x0x20005dc0, total 19248
Free 512 Bytes at 0x0x20005ba8, total 18728
Free 512 Bytes at 0x0x20005990, total 18208
Free 512 Bytes at 0x0x20005778, total 17688
Free 512
main(): This is RIOT! (Version: 2020.01-devel-1085-g574c7d)
CHUNK_SIZE: 512
NUMBER_OF_TESTS: 3
Allocated 512 Bytes at 0x0x20001048, total 512
Allocated 512 Bytes at 0x0x20001260, total 1032
Allocated 512 Bytes at 0x0x20001478, total 1552
Allocated 512 Bytes at 0x0x20001690, total 2072
Allocated 512 Bytes at 0x0x200018a8, total 2592
Allocated 512 Bytes at 0x0x20001ac0, total 3112
Allocated 512 Bytes at 0x0x20001cd8, total 3632
Allocated 512 Bytes at 0x0x20001ef0, total 4152
Allocated 512 Bytes at 0x0x20002108, total 4672
Allocated 512 Bytes at 0x0x20002320, total 5192
Allocated 512 Bytes at 0x0x20002538, total 5712
Allocated 512 Bytes at 0x0x20002750, total 6232
Allocated 512 Bytes at 0x0x20002968, total 6752
Allocated 512 Bytes at 0x0x20002b80, total 7272
Allocated 512 Bytes at 0x0x20002d98, total 7792
Allocated 512 Bytes at 0x0x20002fb0, total 8312
Allocated 512 Bytes at 0x0x200031c8, total 8832
Allocated 512 Bytes at 0x0x200033e0, total 9352
Allocated 512 Bytes at 0x0x200035f8, total 9872
Allocated 512 Bytes at 0x0x20003810, total 10392
Allocated 512 Bytes at 0x0x20003a28, total 10912
Allocated 512 Bytes at 0x0x20003c40, total 11432
Allocated 512 Bytes at 0x0x20003e58, total 11952
Allocated 512 Bytes at 0x0x20004070, total 12472
Allocated 512 Bytes at 0x0x20004288, total 12992
Allocated 512 Bytes at 0x0x200044a0, total 13512
Allocated 512 Bytes at 0x0x200046b8, total 14032
Allocated 512 Bytes at 0x0x200048d0, total 14552
Allocated 512 Bytes at 0x0x20004ae8, total 15072
Allocated 512 Bytes at 0x0x20004d00, total 15592
Allocated 512 Bytes at 0x0x20004f18, total 16112
Allocated 512 Bytes at 0x0x20005130, total 16632
Allocated 512 Bytes at 0x0x20005348, total 17152
Allocated 512 Bytes at 0x0x20005560, total 17672
Allocated 512 Bytes at 0x0x20005778, total 18192
Allocated 512 Bytes at 0x0x20005990, total 18712
Allocated 512 Bytes at 0x0x20005ba8, total 19232
Allocated 512 Bytes at 0x0x20005dc0, total 19752
Allocated 512 Bytes at 0x0x20005fd8, total 20272
Allocated 512 Bytes at 0x0x200061f0, total 20792
Allocated 512 Bytes at 0x0x20006408, total 21312
Allocated 512 Bytes at 0x0x20006620, total 21832
Allocated 512 Bytes at 0x0x20006838, total 22352
Allocated 512 Bytes at 0x0x20006a50, total 22872
Allocated 512 Bytes at 0x0x20006c68, total 23392
Allocated 512 Bytes at 0x0x20006e80, total 23912
Allocated 512 Bytes at 0x0x20007098, total 24432
Allocated 512 Bytes at 0x0x200072b0, total 24952
Allocated 512 Bytes at 0x0x200074c8, total 25472
Allocated 512 Bytes at 0x0x200076e0, total 25992
Allocated 512 Bytes at 0x0x200078f8, total 26512
Allocated 512 Bytes at 0x0x20007b10, total 27032
Allocated 512 Bytes at 0x0x20007d28, total 27552
Allocations count: 53
Free 512 Bytes at 0x0x20001048, total 27048
Free 512 Bytes at 0x0x20001260, total 26528
Free 512 Bytes at 0x0x20001478, total 26008
Free 512 Bytes at 0x0x20001690, total 25488
Free 512 Bytes at 0x0x200018a8, total 24968
Free 512 Bytes at 0x0x20001ac0, total 24448
Free 512 Bytes at 0x0x20001cd8, total 23928
Free 512 Bytes at 0x0x20001ef0, total 23408
Free 512 Bytes at 0x0x20002108, total 22888
Free 512 Bytes at 0x0x20002320, total 22368
Free 512 Bytes at 0x0x20002538, total 21848
Free 512 Bytes at 0x0x20002750, total 21328
Free 512 Bytes at 0x0x20002968, total 20808
Free 512 Bytes at 0x0x20002b80, total 20288
Free 512 Bytes at 0x0x20002d98, total 19768
Free 512 Bytes at 0x0x20002fb0, total 19248
Free 512 Bytes at 0x0x200031c8, total 18728
Free 512 Bytes at 0x0x200033e0, total 18208
Free 512 Bytes at 0x0x200035f8, total 17688
Free 512 Bytes at 0x0x20003810, total 17168
Free 512 Bytes at 0x0x20003a28, total 16648
Free 512 Bytes at 0x0x20003c40, total 16128
Free 512 Bytes at 0x0x20003e58, total 15608
Free 512 Bytes at 0x0x20004070, total 15088
Free 512 Bytes at 0x0x20004288, total 14568
Free 512 Bytes at 0x0x200044a0, total 14048
Free 512 Bytes at 0x0x200046b8, total 13528
Free 512 Bytes at 0x0x200048d0, total 13008
Free 512 Bytes at 0x0x20004ae8, total 12488
Free 512 Bytes at 0x0x20004d00, total 11968
Free 512 Bytes at 0x0x20004f18, total 11448
Free 512 Bytes at 0x0x20005130, total 10928
Free 512 Bytes at 0x0x20005348, total 10408
Free 512 Bytes at 0x0x20005560, total 9888
Free 512 Bytes at 0x0x20005778, total 9368
Free 512 Bytes at 0x0x20005990, total 8848
Free 512 Bytes at 0x0x20005ba8, total 8328
Free 512 Bytes at 0x0x20005dc0, total 7808
Free 512 Bytes at 0x0x20005fd8, total 7288
Free 512 Bytes at 0x0x200061f0, total 6768
Free 512 Bytes at 0x0x20006408, total 6248
Free 512 Bytes at 0x0x20006620, total 5728
Free 512 Bytes at 0x0x20006838, total 5208
Free 512 Bytes at 0x0x20006a50, total 4688
Free 512 Bytes at 0x0x20006c68, total 4168
Free 512 Bytes at 0x0x20006e80, total 3648
Free 512 Bytes at 0x0x20007098, total 3128
Free 512 Bytes at 0x0x200072b0, total 2608
Free 512 Bytes at 0x0x200074c8, total 2088
Free 512 Bytes at 0x0x200076e0, total 1568
Free 512 Bytes at 0x0x200078f8, total 1048
Free 512 Bytes at 0x0x20007b10, total 528
Free 512 Bytes at 0x0x20007d28, total 8
Allocated 512 Bytes at 0x0x20007d28, total 512
Allocated 512 Bytes at 0x0x20007b10, total 1032
Allocated 512 Bytes at 0x0x200078f8, total 1552
Allocated 512 Bytes at 0x0x200076e0, total 2072
Allocated 512 Bytes at 0x0x200074c8, total 2592
Allocated 512 Bytes at 0x0x200072b0, total 3112
Allocated 512 Bytes at 0x0x20007098, total 3632
Allocated 512 Bytes at 0x0x20006e80, total 4152
Allocated 512 Bytes at 0x0x20006c68, total 4672
Allocated 512 Bytes at 0x0x20006a50, total 5192
Allocated 512 Bytes at 0x0x20006838, total 5712
Allocated 512 Bytes at 0x0x20006620, total 6232
Allocated 512 Bytes at 0x0x20006408, total 6752
Allocated 512 Bytes at 0x0x200061f0, total 7272
Allocated 512 Bytes at 0x0x20005fd8, total 7792
Allocated 512 Bytes at 0x0x20005dc0, total 8312
Allocated 512 Bytes at 0x0x20005ba8, total 8832
Allocated 512 Bytes at 0x0x20005990, total 9352
Allocated 512 Bytes at 0x0x20005778, total 9872
Allocated 512 Bytes at 0x0x20005560, total 10392
Allocated 512 Bytes at 0x0x20005348, total 10912
Allocated 512 Bytes at 0x0x20005130, total 11432
Allocated 512 Bytes at 0x0x20004f18, total 11952
Allocated 512 Bytes at 0x0x20004d00, total 12472
Allocated 512 Bytes at 0x0x20004ae8, total 12992
Allocated 512 Bytes at 0x0x200048d0, total 13512
Allocated 512 Bytes at 0x0x200046b8, total 14032
Allocated 512 Bytes at 0x0x200044a0, total 14552
Allocated 512 Bytes at 0x0x20004288, total 15072
Allocated 512 Bytes at 0x0x20004070, total 15592
Allocated 512 Bytes at 0x0x20003e58, total 16112
Allocated 512 Bytes at 0x0x20003c40, total 16632
Allocated 512 Bytes at 0x0x20003a28, total 17152
Allocated 512 Bytes at 0x0x20003810, total 17672
Allocated 512 Bytes at 0x0x200035f8, total 18192
Allocated 512 Bytes at 0x0x200033e0, total 18712
Allocated 512 Bytes at 0x0x200031c8, total 19232
Allocated 512 Bytes at 0x0x20002fb0, total 19752
Allocated 512 Bytes at 0x0x20002d98, total 20272
Allocated 512 Bytes at 0x0x20002b80, total 20792
Allocated 512 Bytes at 0x0x20002968, total 21312
Allocated 512 Bytes at 0x0x20002750, total 21832
Allocated 512 Bytes at 0x0x20002538, total 22352
Allocated 512 Bytes at 0x0x20002320, total 22872
Allocated 512 Bytes at 0x0x20002108, total 23392
Allocated 512 Bytes at 0x0x20001ef0, total 23912
Allocated 512 Bytes at 0x0x20001cd8, total 24432
Allocated 512 Bytes at 0x0x20001ac0, total 24952
Allocated 512 Bytes at 0x0x200018a8, total 25472
Allocated 512 Bytes at 0x0x20001690, total 25992
Allocated 512 Bytes at 0x0x20001478, total 26512
Allocated 512 Bytes at 0x0x20001260, total 27032
Allocated 512 Bytes at 0x0x20001048, total 27552
Allocations count: 53
Free 512 Bytes at 0x0x20007d28, total 27048
Free 512 Bytes at 0x0x20007b10, total 26528
Free 512 Bytes at 0x0x200078f8, total 26008
Free 512 Bytes at 0x0x200076e0, total 25488
Free 512 Bytes at 0x0x200074c8, total 24968
Free 512 Bytes at 0x0x200072b0, total 24448
Free 512 Bytes at 0x0x20007098, total 23928
Free 512 Bytes at 0x0x20006e80, total 23408
Free 512 Bytes at 0x0x20006c68, total 22888
Free 512 Bytes at 0x0x20006a50, total 22368
Free 512 Bytes at 0x0x20006838, total 21848
Free 512 Bytes at 0x0x20006620, total 21328
Free 512 Bytes at 0x0x20006408, total 20808
Free 512 Bytes at 0x0x200061f0, total 20288
Free 512 Bytes at 0x0x20005fd8, total 19768
Free 512 Bytes at 0x0x20005dc0, total 19248
Free 512 Bytes at 0x0x20005ba8, total 18728
Free 512 Bytes at 0x0x20005990, total 18208
Free 512 Bytes at 0x0x20005778, total 17688
Free 512 Bytes at 0x0x20005560, total 17168
Free 512 Bytes at 0x0x20005348, total 16648
Free 512 Bytes at 0x0x20005130, total 16128
Free 512 Bytes at 0x0x20004f18, total 15608
Free 512 Bytes at 0x0x20004d00, total 15088
Free 512 Bytes at 0x0x20004ae8, total 14568
Free 512 Bytes at 0x0x200048d0, total 14048
Free 512 Bytes at 0x0x200046b8, total 13528
Free 512 Bytes at 0x0x200044a0, total 13008
Free 512 Bytes at 0x0x20004288, total 12488
Free 512 Bytes at 0x0x20004070, total 11968
Free 512 Bytes at 0x0x20003e58, total 11448
Free 512 Bytes at 0x0x20003c40, total 10928
Free 512 Bytes at 0x0x20003a28, total 10408
Free 512 Bytes at 0x0x20003810, total 9888
Free 512 Bytes at 0x0x200035f8, total 9368
Free 512 Bytes at 0x0x200033e0, total 8848
Free 512 Bytes at 0x0x200031c8, total 8328
Free 512 Bytes at 0x0x20002fb0, total 7808
Free 512 Bytes at 0x0x20002d98, total 7288
Free 512 Bytes at 0x0x20002b80, total 6768
Free 512 Bytes at 0x0x20002968, total 6248
Free 512 Bytes at 0x0x20002750, total 5728
Free 512 Bytes at 0x0x20002538, total 5208
Free 512 Bytes at 0x0x20002320, total 4688
Free 512 Bytes at 0x0x20002108, total 4168
Free 512 Bytes at 0x0x20001ef0, total 3648
Free 512 Bytes at 0x0x20001cd8, total 3128
Free 512 Bytes at 0x0x20001ac0, total 2608
Free 512 Bytes at 0x0x200018a8, total 2088
Free 512 Bytes at 0x0x20001690, total 1568
Free 512 Bytes at 0x0x20001478, total 1048
Free 512 Bytes at 0x0x20001260, total 528
Free 512 Bytes at 0x0x20001048, total 8
Allocated 512 Bytes at 0x0x20007d28, total 512
Allocated 512 Bytes at 0x0x20007b10, total 1032
Allocated 512 Bytes at 0x0x200078f8, total 1552
Allocated 512 Bytes at 0x0x200076e0, total 2072
Allocated 512 Bytes at 0x0x200074c8, total 2592
Allocated 512 Bytes at 0x0x200072b0, total 3112
Allocated 512 Bytes at 0x0x20007098, total 3632
Allocated 512 Bytes at 0x0x20006e80, total 4152
Allocated 512 Bytes at 0x0x20006c68, total 4672
Allocated 512 Bytes at 0x0x20006a50, total 5192
Allocated 512 Bytes at 0x0x20006838, total 5712
Allocated 512 Bytes at 0x0x20006620, total 6232
Allocated 512 Bytes at 0x0x20006408, total 6752
Allocated 512 Bytes at 0x0x200061f0, total 7272
Allocated 512 Bytes at 0x0x20005fd8, total 7792
Allocated 512 Bytes at 0x0x20005dc0, total 8312
Allocated 512 Bytes at 0x0x20005ba8, total 8832
Allocated 512 Bytes at 0x0x20005990, total 9352
Allocated 512 Bytes at 0x0x20005778, total 9872
Allocated 512 Bytes at 0x0x20005560, total 10392
Allocated 512 Bytes at 0x0x20005348, total 10912
Allocated 512 Bytes at 0x0x20005130, total 11432
Allocated 512 Bytes at 0x0x20004f18, total 11952
Allocated 512 Bytes at 0x0x20004d00, total 12472
Allocated 512 Bytes at 0x0x20004ae8, total 12992
Allocated 512 Bytes at 0x0x200048d0, total 13512
Allocated 512 Bytes at 0x0x200046b8, total 14032
Allocated 512 Bytes at 0x0x200044a0, total 14552
Allocated 512 Bytes at 0x0x20004288, total 15072
Allocated 512 Bytes at 0x0x20004070, total 15592
Allocated 512 Bytes at 0x0x20003e58, total 16112
Allocated 512 Bytes at 0x0x20003c40, total 16632
Allocated 512 Bytes at 0x0x20003a28, total 17152
Allocated 512 Bytes at 0x0x20003810, total 17672
Allocated 512 Bytes at 0x0x200035f8, total 18192
Allocated 512 Bytes at 0x0x200033e0, total 18712
Allocated 512 Bytes at 0x0x200031c8, total 19232
Allocated 512 Bytes at 0x0x20002fb0, total 19752
Allocated 512 Bytes at 0x0x20002d98, total 20272
Allocated 512 Bytes at 0x0x20002b80, total 20792
Allocated 512 Bytes at 0x0x20002968, total 21312
Allocated 512 Bytes at 0x0x20002750, total 21832
Allocated 512 Bytes at 0x0x20002538, total 22352
Allocated 512 Bytes at 0x0x20002320, total 22872
Allocated 512 Bytes at 0x0x20002108, total 23392
Allocated 512 Bytes at 0x0x20001ef0, total 23912
Allocated 512 Bytes at 0x0x20001cd8, total 24432
Allocated 512 Bytes at 0x0x20001ac0, total 24952
Allocated 512 Bytes at 0x0x200018a8, total 25472
Allocated 512 Bytes at 0x0x20001690, total 25992
Allocated 512 Bytes at 0x0x20001478, total 26512
Allocated 512 Bytes at 0x0x20001260, total 27032
Allocated 512 Bytes at 0x0x20001048, total 27552
Allocations count: 53
Free 512 Bytes at 0x0x20007d28, total 27048
Free 512 Bytes at 0x0x20007b10, total 26528
Free 512 Bytes at 0x0x200078f8, total 26008
Free 512 Bytes at 0x0x200076e0, total 25488
Free 512 Bytes at 0x0x200074c8, total 24968
Free 512 Bytes at 0x0x200072b0, total 24448
Free 512 Bytes at 0x0x20007098, total 23928
Free 512 Bytes at 0x0x20006e80, total 23408
Free 512 Bytes at 0x0x20006c68, total 22888
Free 512 Bytes at 0x0x20006a50, total 22368
Free 512 Bytes at 0x0x20006838, total 21848
Free 512 Bytes at 0x0x20006620, total 21328
Free 512 Bytes at 0x0x20006408, total 20808
Free 512 Bytes at 0x0x200061f0, total 20288
Free 512 Bytes at 0x0x20005fd8, total 19768
Free 512 Bytes at 0x0x20005dc0, total 19248
Free 512 Bytes at 0x0x20005ba8, total 18728
Free 512 Bytes at 0x0x20005990, total 18208
Free 512 Bytes at 0x0x20005778, total 17688
Free 512 Bytes at 0x0x20005560, total 17168
Free 512 Bytes at 0x0x20005348, total 16648
Free 512 Bytes at 0x0x20005130, total 16128
Free 512 Bytes at 0x0x20004f18, total 15608
Free 512 Bytes at 0x0x20004d00, total 15088
Free 512 Bytes at 0x0x20004ae8, total 14568
Free 512 Bytes at 0x0x200048d0, total 14048
Free 512 Bytes at 0x0x200046b8, total 13528
Free 512 Bytes at 0x0x200044a0, total 13008
Free 512 Bytes at 0x0x20004288, total 12488
Free 512 Bytes at 0x0x20004070, total 11968
Free 512 Bytes at 0x0x20003e58, total 11448
Free 512 Bytes at 0x0x20003c40, total 10928
Free 512 Bytes at 0x0x20003a28, total 10408
Free 512 Bytes at 0x0x20003810, total 9888
Free 512 Bytes at 0x0x200035f8, total 9368
Free 512 Bytes at 0x0x200033e0, total 8848
Free 512 Bytes at 0x0x200031c8, total 8328
Free 512 Bytes at 0x0x20002fb0, total 7808
Free 512 Bytes at 0x0x20002d98, total 7288
Free 512 Bytes at 0x0x20002b80, total 6768
Free 512 Bytes at 0x0x20002968, total 6248
Free 512 Bytes at 0x0x20002750, total 5728
Free 512 Bytes at 0x0x20002538, total 5208
Free 512 Bytes at 0x0x20002320, total 4688
Free 512 Bytes at 0x0x20002108, total 4168
Free 512 Bytes at 0x0x20001ef0, total 3648
Free 512 Bytes at 0x0x20001cd8, total 3128
Free 512 Bytes at 0x0x20001ac0, total 2608
Free 512 Bytes at 0x0x200018a8, total 2088
Free 512 Bytes at 0x0x20001690, total 1568
Free 512 Bytes at 0x0x20001478, total 1048
Free 512 Bytes at 0x0x20001260, total 528
Free 512 Bytes at 0x0x20001048, total 8
[SUCCESS]

make: Leaving directory '/work/riot/RIOT/tests/malloc'

My guess is that it should be fixed once #12461 is merged.

@MrKevinWeiss
Copy link
Contributor

I think the pi cannot handle the output speed. Even with the larger chunk size it seems like it is failing.

@maribu
Copy link
Member

maribu commented Nov 27, 2019

Lowering the malloc() chunk size definitely didn't introduce a bug. Either it triggered a bug in the test setup, or in the malloc implementation. (With what @aabadie posted, I'd say the former.)

With that in mind, not getting this PR in would have prevented the email. But the issue would still be there, only not triggered during CI. And IMHO the emails have the goal to inform about issues. Not merging something that triggers, but doesn't cause the issue, would IMO be in contrast to the goal of the emails.

(If someone doesn't what the emails, we could maybe add a separate email list for that. Or receivers just set up filters. But if someone is interested in emails about test failures from nightlies, they should get as many correct bug reports as possible, IMO.)

@aabadie
Copy link
Contributor Author

aabadie commented Nov 27, 2019

I think the pi cannot handle the output speed

Not sure this is the best solution, but we could add a small delay between each allocation/free or between chunk of allocations/free.

@miri64
Copy link
Member

miri64 commented Nov 27, 2019

I'm not saying the PR shouldn't have been merged. Of course a fixed, but failing, test is better than a false positive test. However, I think a failing nightly test (after @kaspar030 just fixed another failing test) could have been prevented, if better care would have been taken by running the test on the CI before merging.

@aabadie
Copy link
Contributor Author

aabadie commented Nov 27, 2019

I think it's more important to take this problem as an opportunity to discuss and agree on a potential fix here (please comment #12813 (comment)) than to trying to blame people because they omitted to enable CI: run tests on this PR. Mistakes can happen.

@maribu
Copy link
Member

maribu commented Nov 27, 2019

I think that @miri64 didn't what to blame anyone, but suggest a way to handle it differently next time.

I agree 100% with you that we certainly should be careful to not starting a blame game after nightly failures. Instead, being happy that the bug hunting got much easier by having that info is better :-)

(But again, I don't think that's what @miri64 did. To me, it was just a suggestion to take into account for the next similar situation.)

@miri64
Copy link
Member

miri64 commented Nov 27, 2019

Exactly. I'm sorry if my comment was mistook as pointing the finger. I just wanted to help improve things in the future (and I believe it is already worked upon, that tests always are run before merge unless deactivated - so the opposite of the current situation).

@miri64
Copy link
Member

miri64 commented Nov 27, 2019

I think the pi cannot handle the output speed

Not sure this is the best solution, but we could add a small delay between each allocation/free or between chunk of allocations/free.

We should try that, yes.

@kaspar030
Copy link
Contributor

I'm not sure the delay would help. When sending the test manually to murdock (with a local compile sent to murdock), it succeeds.

@kaspar030
Copy link
Contributor

The regexps could be the problem, similar to #12128 .

The first regexp: child.expect(r'CHUNK_SIZE: (\d+)') might match a partial input, as pexpect reads byte wise.

I'll try a fix...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: AVR Platform: This PR/issue effects AVR-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants