Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run test subprocesses in gdb #132

Open
QuLogic opened this issue Mar 19, 2017 · 2 comments
Open

Run test subprocesses in gdb #132

QuLogic opened this issue Mar 19, 2017 · 2 comments

Comments

@QuLogic
Copy link

QuLogic commented Mar 19, 2017

If you've got some buggy C-level code, running in gdb can be very useful because it prints out a very detailed traceback, with full argument names and values. This could be achieved by something like gdb -return-child-result -batch -ex r -ex bt --args python -m pytest $PYTEST_ARGS.

However, gdb doesn't work with distributed testing because they are separate process which gdb doesn't know anything about. There is the pytest-faulthandler plugin which is handy but it produces a much more limited traceback with addresses only.

It would be nice if there were some way to run the child processes in gdb like this to automatically get these backtraces.

@RonnyPfannschmidt
Copy link
Member

i suspect this will require additions to execnet as well (at least as things stand)

im happy to accept contributiosn in that direction, but its unlikely most of the pytest/xdist core developers can spend volunteer time on this anytime soon

@LaserPhaser
Copy link
Member

@QuLogic Could you please provide detailed example of current problem and expected output. I would try to be a volunteer here (looks like I had similar problem).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants