[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10
STINNER Victor
report at bugs.python.org
Tue May 28 08:08:14 EDT 2019
STINNER Victor <vstinner at redhat.com> added the comment:
+ pthread_attr_t attrs;
+ pthread_attr_init(&attrs);
+ (void)pthread_attr_getstacksize(&attrs, &stack.ss_size);
PyThread_start_new_thread() of thread_pthread.h already contains logic to get a "good" stack size. I would prefer to reuse this code.
See also _pythread_nt_set_stacksize() of thread_nt.h.
Maybe we need a private function to get the default stack size?
See also PyThread_get_stacksize() and _thread.stack_size().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21131>
_______________________________________
More information about the Python-bugs-list
mailing list