[issue25342] test_json segfault on OpenBSD

2015-10-10 Thread Stefan Krah
Stefan Krah added the comment: Adjusting the estimate at runtime sounds good to me. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Duplicates and related issues: issue25329, issue25222, issue24999, issue22984, issue18075, issue12980. -- nosy: +serhiy.storchaka ___ Python tracker

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread STINNER Victor
STINNER Victor added the comment: Stefan Krah added the comment: > Or did you want to compute it at runtime? Actually, why not? I'm asking to adjust the limit at _runtime_. getrlimit() is not something static, it's common to modify them manually for the current shell process (and child process)

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread Stefan Krah
Stefan Krah added the comment: Or did you want to compute it at runtime? Actually, why not? -- ___ Python tracker ___ ___ Python-bugs

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread Stefan Krah
Stefan Krah added the comment: The ratio (1000/8MB) seems to be stable on Linux. Perhaps we could write a getrlimit program for ./configure to get the stack size and adjust the recursion limit to keep the ratio the same. It's just an estimate of course. -- _

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to compute the recursion limit depending on the current maximum C stack size? At least estimate it? I guess the sys.getdefaultlimit() is 1000 is an arbitrary value. I also know that the effective limit depends on the memory allocated on th

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread Stefan Krah
Stefan Krah added the comment: It's not noise, we also have problems on Windows with test_json. In theory we should set Py_DEFAULT_RECURSION_LIMIT in Python/ceval.c to appropriate values for the default OS stack sizes in order to get a proper RuntimeError instead of a segfault. For OpenBSD it's

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread Remi Pointel
Remi Pointel added the comment: It's good when I entered "ulimit -s 8192". Sorry for the noise... -- ___ Python tracker ___ ___ Python

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread Stefan Krah
Stefan Krah added the comment: Try setting the stack size to 8MB (the default on Linux) in login.conf. -- nosy: +skrah ___ Python tracker ___

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread Remi Pointel
Remi Pointel added the comment: It fails on test_endless_recursion: $ LD_LIBRARY_PATH=. PYTHONPATH=./Lib/ ./python ./Lib/test/test_json -v test_endless_recursion (test.test_json.test_recursion.TestPyRecursion) ... zsh: segmentation fault (core dumped) -- _

[issue25342] test_json segfault on OpenBSD

2015-10-08 Thread Remi Pointel
Changes by Remi Pointel : -- title: json -> test_json segfault on OpenBSD ___ Python tracker ___ ___ Python-bugs-list mailing list Uns