nasa / cFS

The Core Flight System (cFS)
Apache License 2.0
745 stars 217 forks source link

pthread_attr_setstacksize error when running initial build #112

Closed mentoc3000 closed 4 years ago

mentoc3000 commented 4 years ago

I have been playing around with cFS, having gotten it working by cloning this repository. After a couple of days of it working, I started getting the error below when running the software. I tried to start over with a new clone of this repo, but the same error message arises. I presume that it has something to do with my system settings, but I don't know what. Any guidance would be much appreciated!

$ ./core-cpu1 
OS_BSP_Initialize():Maximum user msg queue depth = 10
CFE_PSP: Default Reset SubType = 1
CFE_PSP: Default CPU ID = 1
CFE_PSP: Default Spacecraft ID = 42
CFE_PSP: Default CPU Name: cpu1
OS_Posix_GetSchedulerParams():188:Policy 1: available, min-max: 1-99
OS_Posix_GetSchedulerParams():188:Policy 2: available, min-max: 1-99
OS_Posix_TaskAPI_Impl_Init():374:Selected policy 2 for RT tasks, root task = 99
OS_Posix_InternalTaskCreate_Impl():473:pthread_attr_setstacksize error in OS_TaskCreate: Invalid argument
OS_Posix_InternalTaskCreate_Impl():473:pthread_attr_setstacksize error in OS_TaskCreate: Invalid argument
OS_Posix_InternalTaskCreate_Impl():473:pthread_attr_setstacksize error in OS_TaskCreate: Invalid argument
Aborted (core dumped)
The full details with all commands and outputs can be found here. ``` XXX@XXX~/cFS$ git clone https://github.com/nasa/cFS.git test Cloning into 'test'... remote: Enumerating objects: 44, done. remote: Counting objects: 100% (44/44), done. remote: Compressing objects: 100% (35/35), done. remote: Total 472 (delta 17), reused 31 (delta 9), pack-reused 428 Receiving objects: 100% (472/472), 3.87 MiB | 9.83 MiB/s, done. Resolving deltas: 100% (217/217), done. XXX@XXX~/cFS$ cd te bash: cd: te: No such file or directory XXX@XXX~/cFS$ cd test/ XXX@XXX~/cFS/test$ git submodule init Submodule 'apps/ci_lab' (https://github.com/nasa/ci_lab.git) registered for path 'apps/ci_lab' Submodule 'apps/sample_app' (https://github.com/nasa/sample_app.git) registered for path 'apps/sample_app' Submodule 'apps/sample_lib' (https://github.com/nasa/sample_lib.git) registered for path 'apps/sample_lib' Submodule 'apps/sch_lab' (https://github.com/nasa/sch_lab.git) registered for path 'apps/sch_lab' Submodule 'apps/to_lab' (https://github.com/nasa/to_lab.git) registered for path 'apps/to_lab' Submodule 'cfe' (https://github.com/nasa/cFE.git) registered for path 'cfe' Submodule 'osal' (https://github.com/nasa/osal.git) registered for path 'osal' Submodule 'psp' (https://github.com/nasa/PSP.git) registered for path 'psp' Submodule 'tools/cFS-GroundSystem' (https://github.com/nasa/cFS-GroundSystem.git) registered for path 'tools/cFS-GroundSystem' Submodule 'tools/elf2cfetbl' (https://github.com/nasa/elf2cfetbl.git) registered for path 'tools/elf2cfetbl' Submodule 'tools/tblCRCTool' (https://github.com/nasa/tblCRCTool.git) registered for path 'tools/tblCRCTool' XXX@XXX~/cFS/test$ git submodule update Cloning into '/home/XXX/cFS/test/apps/ci_lab'... Cloning into '/home/XXX/cFS/test/apps/sample_app'... Cloning into '/home/XXX/cFS/test/apps/sample_lib'... Cloning into '/home/XXX/cFS/test/apps/sch_lab'... Cloning into '/home/XXX/cFS/test/apps/to_lab'... Cloning into '/home/XXX/cFS/test/cfe'... Cloning into '/home/XXX/cFS/test/osal'... Cloning into '/home/XXX/cFS/test/psp'... Cloning into '/home/XXX/cFS/test/tools/cFS-GroundSystem'... Cloning into '/home/XXX/cFS/test/tools/elf2cfetbl'... Cloning into '/home/XXX/cFS/test/tools/tblCRCTool'... Submodule path 'apps/ci_lab': checked out 'e4a1bb83357c25fac89a5c7fc240a925ecd66094' Submodule path 'apps/sample_app': checked out '71d2c3290f4c18359cf9212346394e30b5d34fab' Submodule path 'apps/sample_lib': checked out '14710ac0d777e40d5673d61b0fa6cc54c68200d3' Submodule path 'apps/sch_lab': checked out '2e8c26797f2dbed50ad95b7b83b582b077753f9d' Submodule path 'apps/to_lab': checked out '7e7dc4b5e10386ce533fdf890d7e2805cdece38c' Submodule path 'cfe': checked out '84ec281b4a432db7f41f0814e37fc239c723ad39' Submodule path 'osal': checked out '33471c7efa3d4e6a1e3760e0804c79fb21c3de54' Submodule path 'psp': checked out '24450768d270eebbc887513a6e867942482ff730' Submodule path 'tools/cFS-GroundSystem': checked out '9cd5304e749b0ca24e27f96ac8918dd1a613a65d' Submodule path 'tools/elf2cfetbl': checked out '8f53aee4da49f2e432a1ef1396ba5e2df885e733' Submodule path 'tools/tblCRCTool': checked out 'c8009d3fa9cc397f1b989df0bac71c6830097a65' XXX@XXX~/cFS/test$ cp cfe/cmake/Makefile.sample Makefile XXX@XXX~/cFS/test$ cp -r cfe/cmake/sample_defs/ sample_defs XXX@XXX~/cFS/test$ make SIMULATION=native prep mkdir -p "build" (cd "build/" && cmake -DCMAKE_INSTALL_PREFIX=/exe -DCMAKE_BUILD_TYPE=debug "/home/XXX/cFS/test/cfe") -- The C compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Mission configuration sample automatically selected -- OMIT_DEPRECATED=false: Deprecated elements included in build -- Module 'sample_app' found at /home/XXX/cFS/test/apps/sample_app -- Module 'sample_lib' found at /home/XXX/cFS/test/apps/sample_lib -- Module 'ci_lab' found at /home/XXX/cFS/test/apps/ci_lab -- Module 'to_lab' found at /home/XXX/cFS/test/apps/to_lab -- Module 'sch_lab' found at /home/XXX/cFS/test/apps/sch_lab -- Module 'cfe-core' found at /home/XXX/cFS/test/cfe/fsw/cfe-core -- Module 'osal' found at /home/XXX/cFS/test/osal -- Configuring for system arch: native -- The C compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- OMIT_DEPRECATED=false: Deprecated elements included in build -- BSP Selection: generic-linux at /home/XXX/cFS/test/osal/src/bsp/generic-linux -- OSAL Compile Definitions: SIMULATION=native;_LINUX_OS_;_XOPEN_SOURCE=600 -- OSAL Selection: posix at /home/XXX/cFS/test/osal/src/os/posix -- PSP Selection: pc-linux -- Building App: sample_app install=cpu1 -- Building App: sample_lib install=cpu1 NOTE: Selected /home/XXX/cFS/test/apps/sample_app/fsw/tables/sample_app_tbl.c as source for sample_app_tbl -- Building App: ci_lab install=cpu1 -- Building App: to_lab install=cpu1 NOTE: Selected /home/XXX/cFS/test/apps/to_lab/fsw/tables/to_lab_sub.c as source for to_lab_sub -- Building App: sch_lab install=cpu1 NOTE: Selected /home/XXX/cFS/test/apps/sch_lab/fsw/src/sch_lab_table.c as source for sch_lab_table -- Configuring done -- Generating done -- Build files have been written to: /home/XXX/cFS/test/build/native -- Configuring done -- Generating done -- Build files have been written to: /home/XXX/cFS/test/build echo " -DCMAKE_INSTALL_PREFIX=/exe -DCMAKE_BUILD_TYPE=debug" > "build/.prep" XXX@XXX~/cFS/test$ make make --no-print-directory -C "build" mission-all Scanning dependencies of target elf2cfetbl [ 50%] Building C object tools/elf2cfetbl/CMakeFiles/elf2cfetbl.dir/elf2cfetbl.c.o [100%] Linking C executable elf2cfetbl [100%] Built target elf2cfetbl Scanning dependencies of target mission-version [100%] Built target mission-version Scanning dependencies of target mission-prebuild [100%] Built target mission-prebuild Scanning dependencies of target native-all Scanning dependencies of target osal_posix_impl [ 1%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-binsem.c.o [ 2%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-common.c.o [ 2%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-console.c.o [ 3%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-countsem.c.o [ 4%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-dirs.c.o [ 5%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-errors.c.o [ 5%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-files.c.o [ 6%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-filesys.c.o [ 7%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-heap.c.o [ 7%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-idmap.c.o [ 8%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-mutex.c.o [ 9%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-queues.c.o [ 9%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-tasks.c.o [ 10%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-timebase.c.o [ 12%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-fpu.c.o [ 13%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-interrupts.c.o [ 13%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-posix-gettime.c.o [ 14%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-console-bsp.c.o [ 15%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-bsd-select.c.o [ 15%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-posix-io.c.o [ 16%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-posix-files.c.o [ 17%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-posix-dirs.c.o [ 18%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-no-shell.c.o [ 18%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-loader.c.o [ 19%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-posix-dl-loader.c.o [ 20%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-posix-dl-symtab.c.o [ 20%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-bsd-sockets.c.o [ 21%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/__/portable/os-impl-posix-network.c.o [ 21%] Built target osal_posix_impl Scanning dependencies of target osal_generic-linux_impl [ 23%] Building C object osal/generic-linux_impl/CMakeFiles/osal_generic-linux_impl.dir/src/bsp_start.c.o [ 23%] Building C object osal/generic-linux_impl/CMakeFiles/osal_generic-linux_impl.dir/src/bsp_console.c.o [ 23%] Built target osal_generic-linux_impl Scanning dependencies of target osal_bsp [ 23%] Building C object osal/CMakeFiles/osal_bsp.dir/src/bsp/shared/src/osapi-bsp.c.o [ 24%] Building C object osal/CMakeFiles/osal_bsp.dir/src/bsp/shared/src/bsp_default_app_run.c.o [ 25%] Building C object osal/CMakeFiles/osal_bsp.dir/src/bsp/shared/src/bsp_default_app_startup.c.o [ 26%] Building C object osal/CMakeFiles/osal_bsp.dir/src/bsp/shared/src/bsp_default_symtab.c.o [ 26%] Building C object osal/CMakeFiles/osal_bsp.dir/src/bsp/shared/src/bsp_default_voltab.c.o [ 27%] Linking C static library libosal_bsp.a [ 27%] Built target osal_bsp Scanning dependencies of target osal [ 28%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-binsem.c.o [ 28%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-clock.c.o [ 29%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-common.c.o [ 30%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-countsem.c.o [ 31%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-dir.c.o [ 31%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-errors.c.o [ 32%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-file.c.o [ 34%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-filesys.c.o [ 34%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-heap.c.o [ 35%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-idmap.c.o [ 36%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-module.c.o [ 37%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-mutex.c.o [ 37%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-network.c.o [ 38%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-printf.c.o [ 39%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-queue.c.o [ 39%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-select.c.o [ 40%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-shell.c.o [ 41%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-sockets.c.o [ 41%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-task.c.o [ 42%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-timebase.c.o [ 43%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-time.c.o [ 45%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-debug.c.o [ 45%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-fpu.c.o [ 46%] Building C object osal/CMakeFiles/osal.dir/src/os/shared/src/osapi-interrupts.c.o [ 47%] Linking C static library libosal.a [ 47%] Built target osal Scanning dependencies of target psp-pc-linux-impl [ 48%] Building C object psp/pc-linux/pc-linux/CMakeFiles/psp-pc-linux-impl.dir/src/cfe_psp_exception.c.o [ 49%] Building C object psp/pc-linux/pc-linux/CMakeFiles/psp-pc-linux-impl.dir/src/cfe_psp_memory.c.o [ 49%] Building C object psp/pc-linux/pc-linux/CMakeFiles/psp-pc-linux-impl.dir/src/cfe_psp_memtab.c.o [ 50%] Building C object psp/pc-linux/pc-linux/CMakeFiles/psp-pc-linux-impl.dir/src/cfe_psp_ssr.c.o [ 51%] Building C object psp/pc-linux/pc-linux/CMakeFiles/psp-pc-linux-impl.dir/src/cfe_psp_start.c.o [ 52%] Building C object psp/pc-linux/pc-linux/CMakeFiles/psp-pc-linux-impl.dir/src/cfe_psp_support.c.o [ 52%] Building C object psp/pc-linux/pc-linux/CMakeFiles/psp-pc-linux-impl.dir/src/cfe_psp_timer.c.o [ 53%] Building C object psp/pc-linux/pc-linux/CMakeFiles/psp-pc-linux-impl.dir/src/cfe_psp_watchdog.c.o [ 53%] Built target psp-pc-linux-impl Scanning dependencies of target psp-pc-linux [ 54%] Building C object psp/pc-linux/CMakeFiles/psp-pc-linux.dir/fsw/shared/cfe_psp_configdata.c.o [ 54%] Building C object psp/pc-linux/CMakeFiles/psp-pc-linux.dir/fsw/shared/cfe_psp_eeprom.c.o [ 56%] Building C object psp/pc-linux/CMakeFiles/psp-pc-linux.dir/fsw/shared/cfe_psp_exceptionstorage.c.o [ 57%] Building C object psp/pc-linux/CMakeFiles/psp-pc-linux.dir/fsw/shared/cfe_psp_memrange.c.o [ 58%] Building C object psp/pc-linux/CMakeFiles/psp-pc-linux.dir/fsw/shared/cfe_psp_memutils.c.o [ 58%] Building C object psp/pc-linux/CMakeFiles/psp-pc-linux.dir/fsw/shared/cfe_psp_module.c.o [ 59%] Building C object psp/pc-linux/CMakeFiles/psp-pc-linux.dir/fsw/shared/cfe_psp_port.c.o [ 60%] Building C object psp/pc-linux/CMakeFiles/psp-pc-linux.dir/fsw/shared/cfe_psp_ram.c.o [ 60%] Linking C static library libpsp-pc-linux.a [ 60%] Built target psp-pc-linux Scanning dependencies of target sampleAppTable_tables [ 61%] Generating tables_cpu1/sample_app_tbl.tbl [ 61%] Built target sampleAppTable_tables Scanning dependencies of target sample_app [ 61%] Building C object apps/sample_app/CMakeFiles/sample_app.dir/fsw/src/sample_app.c.o [ 62%] Linking C shared module sample_app.so [ 62%] Built target sample_app Scanning dependencies of target sample_lib [ 63%] Building C object apps/sample_lib/CMakeFiles/sample_lib.dir/fsw/src/sample_lib.c.o [ 64%] Linking C shared module sample_lib.so [ 64%] Built target sample_lib Scanning dependencies of target ci_lab [ 65%] Building C object apps/ci_lab/CMakeFiles/ci_lab.dir/fsw/src/ci_lab_app.c.o [ 67%] Linking C shared module ci_lab.so [ 67%] Built target ci_lab Scanning dependencies of target TO_LAB_Subs_tables [ 67%] Generating tables_cpu1/to_lab_sub.tbl [ 67%] Built target TO_LAB_Subs_tables Scanning dependencies of target to_lab [ 67%] Building C object apps/to_lab/CMakeFiles/to_lab.dir/fsw/src/to_lab_app.c.o [ 68%] Linking C shared module to_lab.so [ 68%] Built target to_lab Scanning dependencies of target sch_lab_table_tables [ 69%] Generating tables_cpu1/sch_lab_table.tbl [ 69%] Built target sch_lab_table_tables Scanning dependencies of target sch_lab [ 69%] Building C object apps/sch_lab/CMakeFiles/sch_lab.dir/fsw/src/sch_lab_app.c.o [ 70%] Linking C shared module sch_lab.so [ 70%] Built target sch_lab Scanning dependencies of target cfe_core_default_cpu1 [ 71%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_api.c.o [ 72%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_apps.c.o [ 72%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_backgroundtask.c.o [ 73%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_cds.c.o [ 74%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_cds_mempool.c.o [ 74%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_erlog.c.o [ 75%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_objtab.c.o [ 76%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_perf.c.o [ 78%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_shell.c.o [ 78%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_start.c.o [ 79%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_syslog.c.o [ 80%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_es_task.c.o [ 80%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/es/cfe_esmempool.c.o [ 81%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/sb/ccsds.c.o [ 82%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/sb/cfe_sb_api.c.o [ 82%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/sb/cfe_sb_buf.c.o [ 83%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/sb/cfe_sb_init.c.o [ 84%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/sb/cfe_sb_msg_id_util.c.o [ 85%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/sb/cfe_sb_priv.c.o [ 85%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/sb/cfe_sb_task.c.o [ 86%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/sb/cfe_sb_util.c.o [ 87%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/evs/cfe_evs.c.o [ 87%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/evs/cfe_evs_log.c.o [ 89%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/evs/cfe_evs_task.c.o [ 90%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/evs/cfe_evs_utils.c.o [ 91%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/tbl/cfe_tbl_api.c.o [ 91%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/tbl/cfe_tbl_internal.c.o [ 92%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/tbl/cfe_tbl_task.c.o [ 93%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/tbl/cfe_tbl_task_cmds.c.o [ 93%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/time/cfe_time_api.c.o [ 94%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/time/cfe_time_task.c.o [ 95%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/time/cfe_time_tone.c.o [ 95%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/time/cfe_time_utils.c.o [ 96%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/fs/cfe_fs_api.c.o [ 97%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/fs/cfe_fs_decompress.c.o [ 98%] Building C object cfe_core_default_cpu1/CMakeFiles/cfe_core_default_cpu1.dir/src/fs/cfe_fs_priv.c.o [ 98%] Linking C static library libcfe_core_default_cpu1.a [ 98%] Built target cfe_core_default_cpu1 Scanning dependencies of target core-cpu1 [ 98%] Building C object cpu1/CMakeFiles/core-cpu1.dir/src/target_config.c.o [100%] Linking C executable core-cpu1 [100%] Built target core-cpu1 [100%] Built target native-all Scanning dependencies of target mission-all Scanning dependencies of target cmdUtil [ 14%] Building C object tools/cFS-GroundSystem/Subsystems/cmdUtil/CMakeFiles/cmdUtil.dir/cmdUtil.c.o [ 28%] Building C object tools/cFS-GroundSystem/Subsystems/cmdUtil/CMakeFiles/cmdUtil.dir/SendUdp.c.o [ 42%] Linking C executable cmdUtil [ 42%] Built target cmdUtil [ 71%] Built target elf2cfetbl Scanning dependencies of target cfe_ts_crc [ 85%] Building C object tools/tblCRCTool/CMakeFiles/cfe_ts_crc.dir/cfe_ts_crc.c.o [100%] Linking C executable cfe_ts_crc [100%] Built target cfe_ts_crc Built target mission-all XXX@XXX~/cFS/test$ make install make --no-print-directory -C "build" DESTDIR="/home/XXX/cFS/test/build" mission-install [100%] Built target elf2cfetbl [100%] Built target mission-version [100%] Built target mission-prebuild Scanning dependencies of target native-install [ 21%] Built target osal_posix_impl [ 23%] Built target osal_generic-linux_impl [ 27%] Built target osal_bsp [ 47%] Built target osal [ 53%] Built target psp-pc-linux-impl [ 60%] Built target psp-pc-linux [ 61%] Built target sampleAppTable_tables [ 62%] Built target sample_app [ 64%] Built target sample_lib [ 67%] Built target ci_lab [ 67%] Built target TO_LAB_Subs_tables [ 68%] Built target to_lab [ 69%] Built target sch_lab_table_tables [ 70%] Built target sch_lab [ 98%] Built target cfe_core_default_cpu1 [100%] Built target core-cpu1 Install the project... -- Install configuration: "debug" -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/cfe_es_startup.scr -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/sample_app.so -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/sample_app_tbl.tbl -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/sample_lib.so -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/ci_lab.so -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/to_lab.so -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/to_lab_sub.tbl -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/sch_lab.so -- Installing: /home/XXX/cFS/test/build/exe/cpu1/cf/sch_lab_table.tbl -- Installing: /home/XXX/cFS/test/build/exe/cpu1/core-cpu1 [100%] Built target native-install Scanning dependencies of target mission-install [ 42%] Built target cmdUtil [ 71%] Built target elf2cfetbl [100%] Built target cfe_ts_crc Install the project... -- Install configuration: "debug" -- Installing: /home/XXX/cFS/test/build/exe/host/cmdUtil -- Installing: /home/XXX/cFS/test/build/exe/host/elf2cfetbl -- Installing: /home/XXX/cFS/test/build/exe/host/cfe_ts_crc Built target mission-install XXX@XXX~/cFS/test$ cd build/exe/cpu1/ XXX@XXX~/cFS/test/build/exe/cpu1$ ./core-cpu1 OS_BSP_Initialize():Maximum user msg queue depth = 10 CFE_PSP: Default Reset SubType = 1 CFE_PSP: Default CPU ID = 1 CFE_PSP: Default Spacecraft ID = 42 CFE_PSP: Default CPU Name: cpu1 OS_Posix_GetSchedulerParams():188:Policy 1: available, min-max: 1-99 OS_Posix_GetSchedulerParams():188:Policy 2: available, min-max: 1-99 OS_Posix_TaskAPI_Impl_Init():374:Selected policy 2 for RT tasks, root task = 99 OS_Posix_InternalTaskCreate_Impl():473:pthread_attr_setstacksize error in OS_TaskCreate: Invalid argument OS_Posix_InternalTaskCreate_Impl():473:pthread_attr_setstacksize error in OS_TaskCreate: Invalid argument OS_Posix_InternalTaskCreate_Impl():473:pthread_attr_setstacksize error in OS_TaskCreate: Invalid argument Aborted (core dumped) ```

System observed on:

skliper commented 4 years ago

Quite possibly due to one of the known bugs addressed in the next round of integration candidates (the stack size minimum/rounding update).

jphickey commented 4 years ago

Concur - this is a recent issue fixed in nasa/osal#528 but hasn't made its way into "master" branch just yet. If you'd like to get the fix you could pull the "integration-candidate" branch instead, it is merged into that one. Just be aware that that branch may still change before the final merge.

mentoc3000 commented 4 years ago

Switching to integration-candidate on osal does fix the issue for me. Thanks! I'll keep an eye out for when it's merged into master.