Skip to content

Failing filesystem tests due to memory allocation #7712

@aashishc1988

Description

@aashishc1988

Description

  • Type: Bug
  • Priority: Major

Bug

Target
WIZWIKI_W7500

Toolchain:
GCC_ARM

Tests we are failing:
features-tests-filesystem-buffered_block_device

Steps to reproduce

mbed test -m WIZWIKI_W7500 -t IAR -n features-tests-filesystem-buffered_block_device -DMBED_HEAP_STATS_ENABLED=1 -DMBED_TRAP_ERRORS_ENABLED=1 -v

So, it seems that the call to new would fail, and even though we have nothrow exception defined, the mbed-os error handler is not very forgiving. The failure gets trapped by the error handler.

log snippet

> 
00:26:05.091 mbedgt: test case summary: 4 passes, 0 failures
00:26:05.091 mbedgt: checking for 'host_tests' directory above image directory structure
00:26:05.092 	'host_tests' directory not found: two directory levels above image path checked
00:26:05.092 mbedgt: selecting test case observer...
00:26:05.093 	calling mbedhtrun: mbedhtrun -m WIZWIKI_W7500 -p DUMMY:9600 -f "BUILD/tests/WIZWIKI_W7500/GCC_ARM/features/TESTS/filesystem/buffered_block_device/buffered_block_device.bin" --grm raas_client:goku.austin.arm.com:8000 -C 4 --sync 10 -P 60
00:26:05.093 mbedgt: mbed-host-test-runner: started
00:26:05.895 [1533239535.10][root]Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
00:26:05.970 [1533239535.17][root]Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
00:26:05.993 [1533239535.19][HTST][INF] host test executor ver. 1.4.0
00:26:05.993 [1533239535.19][HTST][INF] copy image onto target... SKIPPED!
00:26:05.994 [1533239535.19][HTST][INF] starting host test process...
00:26:06.007 [1533239535.21][CONN][INF] starting connection process...
00:26:06.017 [1533239535.22][CONN][INF] notify event queue about extra 60 sec timeout for serial port pooling
00:26:06.018 [1533239535.22][CONN][INF] initializing global resource mgr listener...
00:26:06.028 [1533239535.23][HTST][INF] setting timeout to: 60 sec
00:26:06.078 [1533239535.28][GLRM][INF] remote resources initialization: remote(host=goku.austin.arm.com, port=8000)
00:26:06.081 [1533239535.28][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:06.085 [1533239535.29][urllib3.connectionpool]http://goku.austin.arm.com:8000 "POST /login HTTP/1.1" 200 213
00:26:06.087 [1533239535.29][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:06.093 [1533239535.29][urllib3.connectionpool]http://goku.austin.arm.com:8000 "GET /socket.io/?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InVzZXIiLCJncm91cCI6InVzZXIiLCJpYXQiOjE1MzMyMzk1MzUsImV4cCI6MTUzMzg0NDMzNX0.fbqrbQuKBPgDg87ij1-AUoR01YR0YRV1NgueWFCYIqs&EIO=3&transport=polling&t=1533239535286-0 HTTP/1.1" 200 101
00:26:06.133 [1533239535.33][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:06.135 [1533239535.34][urllib3.connectionpool]http://goku.austin.arm.com:8000 "GET /this/resource HTTP/1.1" 200 3651
00:26:06.137 [1533239535.34][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:06.151 [1533239535.35][urllib3.connectionpool]http://goku.austin.arm.com:8000 "GET /resource HTTP/1.1" 200 55713
00:26:06.155 [1533239535.36][GLRM][INF] remote resources count: 39
00:26:06.172 [1533239535.37][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:06.175 [1533239535.38][urllib3.connectionpool]http://goku.austin.arm.com:8000 "GET /resource/2201000003b88c5b00000000000000000000000097969902 HTTP/1.1" 200 1847
00:26:06.176 [1533239535.38][GLRM][INF] remote resources flashing with 'BUILD/tests/WIZWIKI_W7500/GCC_ARM/features/TESTS/filesystem/buffered_block_device/buffered_block_device.bin'...
00:26:06.177 [1533239535.38][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:06.182 [1533239535.38][urllib3.connectionpool]http://goku.austin.arm.com:8000 "POST /file HTTP/1.1" 200 257
00:26:20.739 [1533239549.94][GLRM][INF] opening connection to platform at baudrate='9600'
00:26:20.739 [1533239549.94][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:20.927 [1533239550.13][urllib3.connectionpool]http://goku.austin.arm.com:8000 "PUT /resource/2201000003b88c5b00000000000000000000000097969902/connect HTTP/1.1" 200 15
00:26:20.928 [1533239550.13][GLRM][INF] remote resources reset...
00:26:23.189 [1533239552.39][GLRM][TXD] mbedmbedmbedmbedmbedmbedmbedmbedmbedmbed
00:26:23.189 [1533239552.39][CONN][INF] sending up to 10 __sync packets (specified with --sync=10)
00:26:23.189 [1533239552.39][CONN][INF] sending preamble '919e5587-69b0-4500-bad1-0fbc7ca4b290'
00:26:23.190 [1533239552.39][GLRM][TXD] {{__sync;919e5587-69b0-4500-bad1-0fbc7ca4b290}}
00:26:24.334 [1533239553.53][CONN][RXD] mbedmbedmbedmbedmbedmbedmbedmbed
00:26:24.334 [1533239553.54][HTST][INF] sync KV found, uuid=919e5587-69b0-4500-bad1-0fbc7ca4b290, timestamp=1533239553.535081
00:26:24.335 [1533239553.54][CONN][INF] found SYNC in stream: {{__sync;919e5587-69b0-4500-bad1-0fbc7ca4b290}} it is #0 sent, queued...
00:26:24.453 [1533239553.64][CONN][RXD] >>> Running 1 test cases...
00:26:24.454 [1533239553.65][HTST][INF] DUT greentea-client version: 1.3.0
00:26:24.454 [1533239553.65][CONN][INF] found KV pair in stream: {{__version;1.3.0}}, queued...
00:26:24.454 [1533239553.65][HTST][INF] setting timeout to: 30 sec
00:26:24.454 [1533239553.65][CONN][INF] found KV pair in stream: {{__timeout;30}}, queued...
00:26:24.456 [1533239553.66][HTST][INF] host test class: '<class 'mbed_host_tests.host_tests.default_auto.DefaultAuto'>'
00:26:24.456 [1533239553.66][HTST][INF] host test setup() call...
00:26:24.456 [1533239553.66][HTST][INF] CALLBACKs updated
00:26:24.456 [1533239553.66][HTST][INF] host test detected: default_auto
00:26:24.456 [1533239553.66][CONN][INF] found KV pair in stream: {{__host_test_name;default_auto}}, queued...
00:26:24.539 [1533239553.74][CONN][RXD]
00:26:24.539 [1533239553.74][CONN][INF] found KV pair in stream: {{__testcase_name;BufferedBlockDevice functionality test}}, queued...
00:26:24.634 [1533239553.84][CONN][RXD] >>> Running case #1: 'BufferedBlockDevice functionality test'...
00:26:24.635 [1533239553.84][CONN][INF] found KV pair in stream: {{__testcase_start;BufferedBlockDevice functionality test}}, queued...
00:26:24.747 [1533239553.95][CONN][RXD] :34::SKIP: Not enough memory for test
00:26:24.747 [1533239553.95][CONN][INF] found KV pair in stream: {{__testcase_finish;BufferedBlockDevice functionality test;1;0}}, queued...
00:26:24.848 [1533239554.05][CONN][RXD] >>> 'BufferedBlockDevice functionality test': 1 passed, 0 failed
00:26:24.848 [1533239554.05][CONN][RXD]
00:26:24.955 [1533239554.16][CONN][RXD] >>> Test cases: 1 passed, 0 failed
00:26:24.956 [1533239554.16][CONN][RXD]
00:26:24.956 [1533239554.16][CONN][RXD]
00:26:24.956 [1533239554.16][CONN][INF] found KV pair in stream: {{__testcase_summary;1;0}}, queued...
00:26:24.956 [1533239554.16][CONN][INF] found KV pair in stream: {{max_heap_usage;0}}, queued...
00:26:24.956 [1533239554.16][HTST][ERR] orphan event in main phase: {{max_heap_usage;0}}, timestamp=1533239554.156132
00:26:24.956 [1533239554.16][CONN][INF] found KV pair in stream: {{reserved_heap;4624}}, queued...
00:26:24.956 [1533239554.16][HTST][ERR] orphan event in main phase: {{reserved_heap;4624}}, timestamp=1533239554.156136
00:26:25.039 [1533239554.24][CONN][RXD] ++ MbedOS Error Info ++
00:26:25.039 [1533239554.24][CONN][RXD] Error Status: 0x8001011F Code: 287 Module: 1
00:26:25.039 [1533239554.24][CONN][RXD] Error Message: Operator new[] out of memory
00:26:25.139 [1533239554.34][CONN][RXD]
00:26:25.139 [1533239554.34][CONN][RXD] Location: 0x41CF
00:26:25.139 [1533239554.34][CONN][RXD] Error Value: 0xC
00:26:25.332 [1533239554.53][CONN][RXD] Current Thread: Id: 0x2000194C Entry: 0x44F9 StackSize: 0x1000 StackMem: 0x20001998 SP: 0x20002828
00:26:25.333 [1533239554.53][CONN][RXD] -- MbedOS Error Info --
00:26:55.368 [1533239584.57][HTST][INF] test suite run finished after 30.91 sec...
00:26:55.386 [1533239584.59][CONN][INF] received special event '__host_test_finished' value='True', finishing
00:26:55.387 [1533239584.59][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:55.480 [1533239584.68][urllib3.connectionpool]http://goku.austin.arm.com:8000 "PUT /resource/2201000003b88c5b00000000000000000000000097969902/disconnect HTTP/1.1" 200 2
00:26:55.481 [1533239584.68][urllib3.connectionpool]Starting new HTTP connection (1): goku.austin.arm.com:8000
00:26:58.715 [1533239587.92][urllib3.connectionpool]http://goku.austin.arm.com:8000 "PUT /resource/2201000003b88c5b00000000000000000000000097969902/release HTTP/1.1" 200 66
00:26:58.718 [1533239587.92][HTST][INF] CONN exited with code: 0
00:26:58.718 [1533239587.92][HTST][INF] No events in queue
00:26:58.718 [1533239587.92][HTST][INF] stopped consuming events
00:26:58.718 [1533239587.92][HTST][INF] host test result(): None
00:26:58.718 [1533239587.92][HTST][WRN] missing __exit event from DUT
00:26:58.718 [1533239587.92][HTST][WRN] missing __exit_event_queue event from host test
00:26:58.718 [1533239587.92][HTST][ERR] missing __exit_event_queue event from host test and no result from host test, timeout...
00:26:58.718 [1533239587.92][HTST][INF] calling blocking teardown()
00:26:58.718 [1533239587.92][HTST][INF] teardown() finished
00:26:58.718 [1533239587.92][HTST][INF] {{result;timeout}}
[ ] Question
[ ] Enhancement 
[X ] Bug 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions