CBeginThread in cthreads.pp fails with default stack size
Original Reporter info from Mantis: ppopov99
-
Reporter name: Peter Popov
Original Reporter info from Mantis: ppopov99
- Reporter name: Peter Popov
Description:
Apparently the stack size for a new thread on my machine is less than what CBeginThread is being called with. As a result, CBeginThread fails leading to EThread error.
The current implementation of CBeginThread will fail if pthread_attr_setstacksize fails. This should probably be changed.
Steps to reproduce:
You need a machine with sufficiently small max pthread stack size (2M in my case).
Mantis conversion info:
- Mantis ID: 20452
- OS: linux
- OS Build: 2.4.33
- Platform: i386
- Version: 2.4.4