{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7046","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7046/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7046/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7046/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/7046","id":327396393,"number":7046,"title":"CMSIS-RTOS error: Stack overflow for test :features-nvstore-tests-nvstore-functionality on LPC546XX and LPC54114","user":{"login":"studavekar","id":25986241,"avatar_url":"https://avatars3.githubusercontent.com/u/25986241?v=4","gravatar_id":"","url":"https://api.github.com/users/studavekar","html_url":"https://github.com/studavekar","followers_url":"https://api.github.com/users/studavekar/followers","following_url":"https://api.github.com/users/studavekar/following{/other_user}","gists_url":"https://api.github.com/users/studavekar/gists{/gist_id}","starred_url":"https://api.github.com/users/studavekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/studavekar/subscriptions","organizations_url":"https://api.github.com/users/studavekar/orgs","repos_url":"https://api.github.com/users/studavekar/repos","events_url":"https://api.github.com/users/studavekar/events{/privacy}","received_events_url":"https://api.github.com/users/studavekar/received_events","type":"User","site_admin":false},"labels":[{"id":387014743,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/devices:%20nxp","name":"devices: nxp","color":"0052cc","default":false},{"id":28847979,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/type:%20bug","name":"type: bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-29T16:26:33Z","updated_at":"2018-05-29T19:31:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Description\r\n- Type: Bug\r\n- Priority: Major \r\n\r\n---------------------------------------------------------------\r\n## Bug\r\n\r\n**Target**\r\nLPC546XX and LPC54114\r\n\r\n**Toolchain:**\r\nGCC_ARM | ARM | IAR\r\n\r\n**mbed-os sha:**\r\n88d863a Merge pull request #6984 from stevew817/'efm32_irq_bugfix'\r\n\r\n**Steps to reproduce**\r\n\r\nUse command run :  mbed  test -m LPC54114  -t GCC_ARM -n features-nvstore-tests-nvstore-functionality -v\r\n\r\n\r\n[ ] Question  \r\n[ ] Enhancement  \r\n[ X] Bug  \r\n\r\n** log snippet \r\n\r\n```\r\n(env) arm@austin-ci-linux-002:~/repo/mbed-os$ mbed test -m LPC54114 -c -v --run -n features-nvstore-tests-nvstore-functionality\r\n[mbed] Working path \"/home/arm/repo/mbed-os\" (program)\r\n[mbed] Exec \"mbedgt --test-spec /home/arm/repo/mbed-os/BUILD/tests/LPC54114/gcc_arm/test_spec.json -n features-nvstore-tests-nvstore-functionality -V\" in /home/arm/repo/mbed-os\r\nmbedgt: greentea test automation tool ver. 1.3.3\r\nmbedgt: test specification file '/home/arm/repo/mbed-os/BUILD/tests/LPC54114/gcc_arm/test_spec.json' (specified with --test-spec option)\r\nmbedgt: using '/home/arm/repo/mbed-os/BUILD/tests/LPC54114/gcc_arm/test_spec.json' from current directory!\r\nmbedgt: detecting connected mbed-enabled devices...\r\n[1527609963.07][mbedls.platform_database]Duplicate platform ids found: daplink.5000, ignoring the definitions from /home/arm/.local/share/mbedls/platforms.json\r\n[1527609963.07][mbedls.lstools_base]Could not read htm on from usb id 10540000024cac8c00000000000000000000000097969905. Falling back to usb id\r\nmbedgt: detected 1 device\r\n        +---------------+----------------------+--------------+----------------------------------------------------+--------------------------------------------------+\r\n        | platform_name | platform_name_unique | serial_port  | mount_point                                        | target_id                                        |\r\n        +---------------+----------------------+--------------+----------------------------------------------------+--------------------------------------------------+\r\n        | LPC54114      | LPC54114[0]          | /dev/ttyACM0 | /mnt/pci-0000_00_14_0-usb-0_6_1_5_1_0-scsi-0_0_0_0 | 10540000024cac8c00000000000000000000000097969905 |\r\n        +---------------+----------------------+--------------+----------------------------------------------------+--------------------------------------------------+\r\nmbedgt: processing target 'LPC54114' toolchain 'GCC_ARM' compatible platforms... (note: switch set to --parallel 1)\r\n        +---------------+----------------------+-------------------+----------------------------------------------------+--------------------------------------------------+\r\n        | platform_name | platform_name_unique | serial_port       | mount_point                                        | target_id                                        |\r\n        +---------------+----------------------+-------------------+----------------------------------------------------+--------------------------------------------------+\r\n        | LPC54114      | LPC54114[0]          | /dev/ttyACM0:9600 | /mnt/pci-0000_00_14_0-usb-0_6_1_5_1_0-scsi-0_0_0_0 | 10540000024cac8c00000000000000000000000097969905 |\r\n        +---------------+----------------------+-------------------+----------------------------------------------------+--------------------------------------------------+\r\nmbedgt: test case filter (specified with -n option)\r\n        features-nvstore-tests-nvstore-functionality\r\n        test filtered in 'features-nvstore-tests-nvstore-functionality'\r\nmbedgt: running 1 test for platform 'LPC54114' and toolchain 'GCC_ARM'\r\n        use 1 instance of execution threads for testing\r\nmbedgt: checking for 'host_tests' directory above image directory structure\r\n        'host_tests' directory not found: two directory levels above image path checked\r\nmbedgt: selecting test case observer...\r\n        calling mbedhtrun: mbedhtrun -m LPC54114 -p /dev/ttyACM0:9600 -f \"BUILD/tests/LPC54114/gcc_arm/features/nvstore/TESTS/nvstore/functionality/functionality.bin\" -d /mnt/pci-0000_00_14_0-usb-0_6_1_5_1_0-scsi-0_0_0_0 -c default -t 10540000024cac8c00000000000000000000000097969905 -r default -C 4 --sync 5 -P 60\r\nmbedgt: mbed-host-test-runner: started\r\n[1527609963.45][HTST][INF] host test executor ver. 1.3.1\r\n[1527609963.45][HTST][INF] copy image onto target...\r\n[1527609963.45][COPY][INF] Waiting up to 60 sec for '10540000024cac8c00000000000000000000000097969905' mount point (current is '/mnt/pci-0000_00_14_0-usb-0_6_1_5_1_0-scsi-0_0_0_0')...\r\n[1527609963.45][mbedls.platform_database]Duplicate platform ids found: daplink.5000, ignoring the definitions from /home/arm/.local/share/mbedls/platforms.json\r\n[1527609963.45][mbedls.lstools_base]Could not read htm on from usb id 10540000024cac8c00000000000000000000000097969905. Falling back to usb id\r\n[1527609969.80][mbedls.platform_database]Duplicate platform ids found: daplink.5000, ignoring the definitions from /home/arm/.local/share/mbedls/platforms.json\r\n[1527609969.81][mbedls.lstools_base]MBED with target id '10540000024cac8c00000000000000000000000097969905' is connected, but not mounted. Use the '-u' flag to include it in the list.\r\n[1527609970.32][mbedls.platform_database]Duplicate platform ids found: daplink.5000, ignoring the definitions from /home/arm/.local/share/mbedls/platforms.json\r\n[1527609970.33][mbedls.lstools_base]MBED with target id '10540000024cac8c00000000000000000000000097969905' is connected, but not mounted. Use the '-u' flag to include it in the list.\r\n[1527609970.83][mbedls.platform_database]Duplicate platform ids found: daplink.5000, ignoring the definitions from /home/arm/.local/share/mbedls/platforms.json\r\n[1527609970.83][mbedls.lstools_base]MBED with target id '10540000024cac8c00000000000000000000000097969905' is connected, but not mounted. Use the '-u' flag to include it in the list.\r\n[1527609971.34][mbedls.platform_database]Duplicate platform ids found: daplink.5000, ignoring the definitions from /home/arm/.local/share/mbedls/platforms.json\r\n[1527609971.34][mbedls.lstools_base]MBED with target id '10540000024cac8c00000000000000000000000097969905' is connected, but not mounted. Use the '-u' flag to include it in the list.\r\n[1527609971.85][mbedls.platform_database]Duplicate platform ids found: daplink.5000, ignoring the definitions from /home/arm/.local/share/mbedls/platforms.json\r\n[1527609971.85][mbedls.lstools_base]Could not read htm on from usb id 10540000024cac8c00000000000000000000000097969905. Falling back to usb id\r\n[1527609972.36][HTST][INF] starting host test process...\r\n[1527609972.36][CONN][INF] starting connection process...\r\n[1527609972.36][CONN][INF] notify event queue about extra 60 sec timeout for serial port pooling\r\n[1527609972.36][CONN][INF] initializing serial port listener...\r\n[1527609972.36][HTST][INF] setting timeout to: 60 sec\r\n[1527609972.36][PLGN][INF] Waiting up to 60 sec for '10540000024cac8c00000000000000000000000097969905' serial port (current is '/dev/ttyACM0')...\r\n[1527609972.37][mbedls.platform_database]Duplicate platform ids found: daplink.5000, ignoring the definitions from /home/arm/.local/share/mbedls/platforms.json\r\n[1527609972.37][mbedls.lstools_base]Could not read htm on from usb id 10540000024cac8c00000000000000000000000097969905. Falling back to usb id\r\n[1527609972.37][SERI][INF] serial(port=/dev/ttyACM0, baudrate=9600, read_timeout=0.01, write_timeout=5)\r\n[1527609972.37][SERI][INF] reset device using 'default' plugin...\r\n[1527609972.47][SERI][INF] waiting 1.00 sec after reset\r\n[1527609973.48][SERI][INF] wait for it...\r\n[1527609973.48][SERI][TXD] mbedmbedmbedmbedmbedmbedmbedmbedmbedmbed\r\n[1527609973.48][CONN][INF] sending up to 5 __sync packets (specified with --sync=5)\r\n[1527609973.48][CONN][INF] sending preamble '91b1a9fb-9dd3-4b43-889e-b1ed873dde29'\r\n[1527609973.48][SERI][TXD] {{__sync;91b1a9fb-9dd3-4b43-889e-b1ed873dde29}}\r\n[1527609973.61][CONN][RXD] mbedmbedmbedmbedmbedmbedmbedmbed\r\n[1527609973.66][CONN][INF] found SYNC in stream: {{__sync;91b1a9fb-9dd3-4b43-889e-b1ed873dde29}} it is #0 sent, queued...\r\n[1527609973.66][HTST][INF] sync KV found, uuid=91b1a9fb-9dd3-4b43-889e-b1ed873dde29, timestamp=1527609973.661590\r\n[1527609973.68][CONN][INF] found KV pair in stream: {{__version;1.3.0}}, queued...\r\n[1527609973.68][HTST][INF] DUT greentea-client version: 1.3.0\r\n[1527609973.70][CONN][INF] found KV pair in stream: {{__timeout;120}}, queued...\r\n[1527609973.70][HTST][INF] setting timeout to: 120 sec\r\n[1527609973.73][CONN][INF] found KV pair in stream: {{__host_test_name;default_auto}}, queued...\r\n[1527609973.73][HTST][INF] host test class: '<class 'mbed_host_tests.host_tests.default_auto.DefaultAuto'>'\r\n[1527609973.73][HTST][INF] host test setup() call...\r\n[1527609973.73][HTST][INF] CALLBACKs updated\r\n[1527609973.73][HTST][INF] host test detected: default_auto\r\n[1527609973.76][CONN][INF] found KV pair in stream: {{__testcase_count;3}}, queued...\r\n[1527609973.80][CONN][RXD] >>> Running 3 test cases...\r\n[1527609973.85][CONN][INF] found KV pair in stream: {{__testcase_name;NVStore: Basic functionality}}, queued...\r\n[1527609973.89][CONN][INF] found KV pair in stream: {{__testcase_name;NVStore: Race test}}, queued...\r\n[1527609973.94][CONN][RXD]\r\n[1527609973.94][CONN][INF] found KV pair in stream: {{__testcase_name;NVStore: Multiple thread test}}, queued...\r\n[1527609974.00][CONN][RXD] >>> Running case #1: 'NVStore: Basic functionality'...\r\n[1527609974.05][CONN][INF] found KV pair in stream: {{__testcase_start;NVStore: Basic functionality}}, queued...\r\n[1527609974.06][CONN][RXD] NVStore areas:\r\n[1527609974.12][CONN][RXD] Area 0: address 0x00030000, size 32768 (0x8000)\r\n[1527609974.18][CONN][RXD] Area 1: address 0x00038000, size 32768 (0x8000)\r\n[1527609974.44][CONN][RXD] Max keys 20 (out of 127 possible ones)\r\n[1527609974.56][CONN][INF] found KV pair in stream: {{__testcase_finish;NVStore: Basic functionality;1;0}}, queued...\r\n[1527609974.62][CONN][RXD] >>> 'NVStore: Basic functionality': 1 passed, 0 failed\r\n[1527609974.62][CONN][RXD]\r\n[1527609974.67][CONN][RXD] >>> Running case #2: 'NVStore: Race test'...\r\n[1527609974.71][CONN][INF] found KV pair in stream: {{__testcase_start;NVStore: Race test}}, queued...\r\n[1527609975.51][CONN][INF] found KV pair in stream: {{__testcase_finish;NVStore: Race test;1;0}}, queued...\r\n[1527609975.55][CONN][RXD] >>> 'NVStore: Race test': 1 passed, 0 failed\r\n[1527609975.55][CONN][RXD]\r\n[1527609975.61][CONN][RXD] >>> Running case #3: 'NVStore: Multiple thread test'...\r\n[1527609975.66][CONN][INF] found KV pair in stream: {{__testcase_start;NVStore: Multiple thread test}}, queued...\r\n[1527609975.89][CONN][RXD]\r\n[1527609975.89][CONN][RXD]\r\n[1527609975.91][CONN][RXD] ++ MbedOS Error Info ++\r\n[1527609975.96][CONN][RXD] Error Status: 0x80020125 Code: 293 Entity: 2\r\n[1527609976.01][CONN][RXD] Error Message: CMSIS-RTOS error: Stack overflow\r\n[1527609976.03][CONN][RXD] Location: 0x687d\r\n[1527609976.04][CONN][RXD] Error Value: 0x1\r\n[1527609976.16][CONN][RXD] Current Thread: Id: 0x20004498 Entry: 0x3006be9 StackSize: 0x200044e0 StackMem: 0x200044e8 SP: 0x2000ff40\r\n\r\n\r\n[1527610094.28][HTST][INF] test suite run finished after 120.58 sec...\r\n[1527610094.29][CONN][INF] received special event '__host_test_finished' value='True', finishing\r\n[1527610094.33][HTST][INF] CONN exited with code: 0\r\n[1527610094.33][HTST][INF] No events in queue\r\n[1527610094.33][HTST][INF] stopped consuming events\r\n[1527610094.33][HTST][INF] host test result(): None\r\n[1527610094.33][HTST][WRN] missing __exit event from DUT\r\n[1527610094.33][HTST][WRN] missing __exit_event_queue event from host test\r\n[1527610094.33][HTST][ERR] missing __exit_event_queue event from host test and no result from host test, timeout...\r\n[1527610094.33][HTST][INF] calling blocking teardown()\r\n[1527610094.33][HTST][INF] teardown() finished\r\n[1527610094.33][HTST][INF] {{result;timeout}}\r\nmbedgt: retry mbedhtrun 1/1\r\nmbedgt: ['mbedhtrun', '-m', u'LPC54114', '-p', '/dev/ttyACM0:9600', '-f', u'\"BUILD/tests/LPC54114/gcc_arm/features/nvstore/TESTS/nvstore/functionality/functionality.bin\"', '-d', u'/mnt/pci-0000_00_14_0-usb-0_6_1_5_1_0-scsi-0_0_0_0', '-c', 'default', '-t', '10540000024cac8c00000000000000000000000097969905', '-r', 'default', '-C', '4', '--sync', '5', '-P', '60'] failed after 1 count\r\nmbedgt: checking for GCOV data...\r\nmbedgt: mbed-host-test-runner: stopped and returned 'TIMEOUT'\r\nmbedgt: test on hardware with target id: 10540000024cac8c00000000000000000000000097969905\r\nmbedgt: test suite 'features-nvstore-tests-nvstore-functionality' .................................... TIMEOUT in 131.11 sec\r\n        test case: 'NVStore: Basic functionality' .................................................... OK in 0.51 sec\r\n        test case: 'NVStore: Multiple thread test' ................................................... ERROR in 0.00 sec\r\n        test case: 'NVStore: Race test' .............................................................. OK in 0.80 sec\r\nmbedgt: all tests finished!\r\nmbedgt: shuffle seed: 0.7764211262\r\nmbedgt: test suite report:\r\n+------------------+---------------+----------------------------------------------+---------+--------------------+-------------+\r\n| target           | platform_name | test suite                                   | result  | elapsed_time (sec) | copy_method |\r\n+------------------+---------------+----------------------------------------------+---------+--------------------+-------------+\r\n| LPC54114-GCC_ARM | LPC54114      | features-nvstore-tests-nvstore-functionality | TIMEOUT | 131.11             | default     |\r\n+------------------+---------------+----------------------------------------------+---------+--------------------+-------------+\r\nmbedgt: test suite results: 1 TIMEOUT\r\nmbedgt: test case report:\r\n+------------------+---------------+----------------------------------------------+-------------------------------+--------+--------+--------+--------------------+\r\n| target           | platform_name | test suite                                   | test case                     | passed | failed | result | elapsed_time (sec) |\r\n+------------------+---------------+----------------------------------------------+-------------------------------+--------+--------+--------+--------------------+\r\n| LPC54114-GCC_ARM | LPC54114      | features-nvstore-tests-nvstore-functionality | NVStore: Basic functionality  | 1      | 0      | OK     | 0.51               |\r\n| LPC54114-GCC_ARM | LPC54114      | features-nvstore-tests-nvstore-functionality | NVStore: Multiple thread test | 0      | 0      | ERROR  | 0.0                |\r\n| LPC54114-GCC_ARM | LPC54114      | features-nvstore-tests-nvstore-functionality | NVStore: Race test            | 1      | 0      | OK     | 0.8                |\r\n+------------------+---------------+----------------------------------------------+-------------------------------+--------+--------+--------+--------------------+\r\nmbedgt: test case results: 2 OK / 1 ERROR\r\nmbedgt: completed in 131.30 sec\r\nmbedgt: exited with code 1\r\n[mbed] ERROR: \"mbedgt\" returned error code 1.\r\n[mbed] ERROR: Command \"mbedgt --test-spec /home/arm/repo/mbed-os/BUILD/tests/LPC54114/gcc_arm/test_spec.json -n features-nvstore-tests-nvstore-functionality -V\" in \"/home/arm/repo/mbed-os\"\r\n---\r\n```\r\ncc : @maclobdell @bentcooke \r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/392913181","html_url":"https://github.com/ARMmbed/mbed-os/issues/7046#issuecomment-392913181","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7046","id":392913181,"user":{"login":"davidsaada","id":30656454,"avatar_url":"https://avatars3.githubusercontent.com/u/30656454?v=4","gravatar_id":"","url":"https://api.github.com/users/davidsaada","html_url":"https://github.com/davidsaada","followers_url":"https://api.github.com/users/davidsaada/followers","following_url":"https://api.github.com/users/davidsaada/following{/other_user}","gists_url":"https://api.github.com/users/davidsaada/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsaada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsaada/subscriptions","organizations_url":"https://api.github.com/users/davidsaada/orgs","repos_url":"https://api.github.com/users/davidsaada/repos","events_url":"https://api.github.com/users/davidsaada/events{/privacy}","received_events_url":"https://api.github.com/users/davidsaada/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T19:31:38Z","updated_at":"2018-05-29T19:31:38Z","author_association":"CONTRIBUTOR","body":"Thanks @studavekar. Should be quite sufficient then (comparing to other boards that have less RAM and work fine). I'll try looking into it tomorrow."}}
{"actor":{"display_login":"davidsaada"}}