how to debug ansible seg vault ?

im getting a seg fault when im running my ansible. Is there a way to turn on more debugging or anything that can help me find out the source ?

My /var/log/syslog has entries like this

Jul 26 10:47:26 ubuntu-xenial kernel: [ 497.822661] ansible-playboo[13890]: segfault at a9 ip 00000000004a7ee4 sp 00007ffdabc1b128 error 4 in python2.7[400000+2ea000]

I’ve tried -vvvv but no luck there.

Cheers

Can you reproduce the segfault?

Can try running it under gdb:

‘bin/ansible-playbook’ or the path to you ansible-playbook install (which ansible-playbook)

gdb --batch -ex run --args python bin/ansible-playbook -vvv your_playbook.yml

But maybe easier to use catchsegv to grab a stack trace

catchsegv ansible-playbook -vvv your_playbook.yml

Since that log message points to a segfault in python, you likely need to install the debuginfo for

python first, something like:

sudo apt-get install python2.7-dbg

Though the segfault is likely coming from a python C extension and not ansible

itself...

thanks for the info, ill give it a go.
Im not convinced either that the seg fault is ansibles, but i need more info to see a stack the very least.