Hi! As far as I know, there is no built-in way, but you can catch all exceptions and send them to the parent process in the same way you send the result - this is what we do for our sandbox usecase.
2015-06-05 4:03 GMT+03:00 Lukas Barth <li...@tinloaf.de>: > Hi everyone, > > I'm using the pypy sandbox, with a slightly modified pypy_interact.py > script. Basically, I'm starting pypy-c with a '-c "from foo import > bar\nbar()' command line argument instead of running a script directly. > After that, I do sandproc.communicate("") to get the result of the script. > > Now, this all works fine. I only have a problem if there's a problem in > the sandboxed script. If there's an exception, the only thing I get is a > >> OSError: the sandboxed subprocess exited with code 1 > > Is there any way of actually getting the backtrace? > > Thanks a lot, > > Lukas > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > https://mail.python.org/mailman/listinfo/pypy-dev _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev