New issue 2275: pypy segfault https://bitbucket.org/pypy/pypy/issues/2275/pypy-segfault
FredStober: Hi, I have some code that *sometimes* crashes with a segfault when run with pypy (tested with PyPy 2.2.1 from Ubuntu 14.04.4 LTS and PyPy 2.5.0 as installed on TravisCI). The issue does not appear when run with CPython. I've reduced the program to the following short snippet of code: ``` #!python import os, threading def fun(): pass if __name__ == '__main__': thread = threading.Thread(target = fun) thread.start() thread.join() pid, fd = os.forkpty() if pid == 0: os._exit(42) os.waitpid(pid, 0) ``` Creating and joining the thread seems to be essential to trigger the issue - replacing os._exit with sys.exit to run cleanup does not help. Am I overlooking some issue with this code? Cheers, Fred _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue