Describe the bug
When building with cmake -B build -S . -DENABLE_STD_THREADS:BOOL=ON -DENABLE_REGRESSION:BOOL=ON -DENABLE_EXAMPLES:BOOL=ON the set_stack_size test has a fault.
To Reproduce
Steps to reproduce the behavior:
- Indicate the SystemC version - 3.0.2
- Include any relevant API calls - set_stack_size
- Show how you run the simulation (e.g., command line, scripts). - ran unit test directly
- Indicate where the error occurs (e.g., during elaboration, simulation, ...) - unit test
Expected behavior
I would expect no crash. If this API requires PTHREAD then this test should be disabled or "xfail" when only std::thread is used.
Logs
./build/tests/systemc-kernel-sc_module-test10
SystemC 3.0.2-Accellera --- Apr 14 2026 13:23:09
Copyright (c) 1996-2025 by all Contributors,
ALL RIGHTS RESERVED
stack size = 0x600000 (6291456)
[1] 23350 bus error ./build/tests/systemc-kernel-sc_module-test10
Environment (please complete the following information)
OS: [e.g., Ubuntu 22.04, Windows 11]
Compiler: [e.g., GCC 11.2, Clang 14, MSVC]
SystemC version: [e.g., 3.0.2]
Additional context
Add any other context about the problem here, such as:
- Specific SystemC features used - set_stack_size
- built on Mac 26.4.1 w/ Homebrew Clang
Homebrew clang version 20.1.8
Target: arm64-apple-darwin25.4.0
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/llvm@20/20.1.8/bin
Configuration file: /opt/homebrew/etc/clang/arm64-apple-darwin25.cfg
System configuration file directory: /opt/homebrew/etc/clang
User configuration file directory: /Users/emrainey/.config/clang
Describe the bug
When building with
cmake -B build -S . -DENABLE_STD_THREADS:BOOL=ON -DENABLE_REGRESSION:BOOL=ON -DENABLE_EXAMPLES:BOOL=ONthe set_stack_size test has a fault.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect no crash. If this API requires PTHREAD then this test should be disabled or "xfail" when only std::thread is used.
Logs
Environment (please complete the following information)
OS: [e.g., Ubuntu 22.04, Windows 11]
Compiler: [e.g., GCC 11.2, Clang 14, MSVC]
SystemC version: [e.g., 3.0.2]
Additional context
Add any other context about the problem here, such as: