Message350089
On my FreeBSD 12.0 VM, /usr/bin/ld is a symbolic link to ld.ldd: it's the LLVM linker called "LLD":
https://lld.llvm.org/
I modified manually Makefile to give 16 MiB stack to the main thread using:
LINKFORSHARED= -Wl,--export-dynamic "-Wl,-z" "-Wl,stack-size=0x1000000"
I added manually the following to Python/thread_pthread.h to give 16 MiB stack to thread:
#undef THREAD_STACK_SIZE
#define THREAD_STACK_SIZE 0x1000000
Using that, the RecurisionError is raised at a depth of 1000 Python function calls: before we exhaust the C stack.
--
The syntax used in configure.ac doesn't work with LLD. I get such error:
cc -pthread -Wl,--export-dynamic -Wl,-stack_size,1000000 -o Programs/_testembed Programs/_testembed.o libpython3.9d.a -lcrypt -ldl -lutil -lm -lm
/usr/bin/ld: error: cannot open 1000000: No such file or directory |
|
Date |
User |
Action |
Args |
2019-08-21 15:15:38 | vstinner | set | recipients:
+ vstinner, ronaldoussoren |
2019-08-21 15:15:38 | vstinner | set | messageid: <1566400538.93.0.47534800727.issue37906@roundup.psfhosted.org> |
2019-08-21 15:15:38 | vstinner | link | issue37906 messages |
2019-08-21 15:15:38 | vstinner | create | |
|