I have a crossplatform multithread program (Windows/Linux) that works fine on Linux and crashes on Windows. Searching in the internet gives me an idea, that this is because of stackoverflow: Linux and Windows thread stack sizes may differ. So how can I check each thread (not only the main one) stack size? Write to stack until the program crashes (need to work both on windows and linux)? And how get the size then?
С++ checking thread stack size with crashing
76 Views Asked by Nika_Rika At
1
There are 1 best solutions below
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in LINUX
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in WINDOWS
- how to play a sounds in c# forms?
- Echo behaviour of Microsoft Windows Telnet Client
- Getting error while running spark-shell on my system; pyspark is running fine
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Cannot load modules/mod_dav_svn.so into server
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
- 32-bit applications do not display some files in Windows 10
- 'bun' is not recognized as an internal or external command
- mkssecreenshotmgr taking a screenshot
- Next js installation in windows 7 os
- Can't resize a partition using Mini Tool?
- Is there any way to set a printer as default according with Active Directory Policy Security Group and PC hostname?
- Electron Printing not working on Windows (Works on Mac)
Related Questions in STACK-OVERFLOW
- How to allocate a large structure in a heap baked `Arc<T>` without stack overflow in Rust?
- Build failed: Your build exceed the maximum build time of 120 minutes
- intelliJ Error when build the Project - Cause: java.lang.StackOverflowError
- Ran on an MCU (STM32F1), doubly-linked list code results in a call of HardFault() due to stack overflow
- How to turn off login pop-up on stackoverflow
- stack overflow error occurs only when converting to a type with the Error method defined
- Does an Stackoverflow occur in the JVM if the Activation Record is too small but there is still space left in the general stack?
- Automapper with Record types causing StackOverflowException
- Stack overflow when finding all paths through a grid with recursion and backtracking
- What refactoring should I apply on this email validation regex?
- Can someone explain why this is throwing a stackoverflow error? (Scala, lazylist, nth prime number)
- How to fix Recursion Function overflow error?
- Why is a topic locked as off-topic
- How to detect a Stack Overflow error in C++Builder 2010?
- How can I implement screen tapping functionality programmatically in Flutter to simulate user clicks?
Related Questions in STACK-SIZE
- how to find default stack size in java
- С++ checking thread stack size with crashing
- RangeError: Maximum call stack size exceeded NEXTJS
- GNU ld linker: stack-size=value has no effect
- RangeError: Maximum call stack size exceeded in a context.js file when using a custom hook in React
- Increase Python Stack Size
- Uncaught RangeError: Maximum call stack size exceeded can't figure out why
- Can I ask a running thread about how much stack it has been using?
- Where is Max Stack Size set on ORACLE database machines running ORACLE LINUX 7 (on top of VMWARE)
- Winston logger causing "Maximum call stack size exceeded" error
- How to change stack size limit in NodeJS?
- How do i define the task size in xTaskCreate()?
- Different ways of setting recursion limit/stack size in Python
- maximum call stack size exceeded in local database data fetch in for loop
- Stack Overflow when using gp2c but not when using gp directly with the same program (PARI/GP)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
My solution of knowing a thread stack size on both platforms is a simple testing program: create thread, write to stack recursively until the program crashes. And yes, it's 1MB on Windows and 8 MB on Linux ARM.
Result on Windows
Result on Linux ARM