My program is coded in Python, and it calls a bash script in a vte window:
In 14.04 or 14.10 ubuntu system, no problem. (python 2.7.8)
But, in ubuntu 12.04, the window closes with this message: (python 2.7.3)
segmentation error
To debug, I've tried to use gdb
with this line:
gdb -ex r --args python my_program.py
The output of gdb at the end is:
Program received signal SIGPIPE, Broken pipe.
0xb7fdd416 in __kernel_vsyscall ()
I know it's a problem with the bash script, but I don't know realy what is the problem. The line to call the bash script is:
self.child_pid = self.v.fork_command(None, ['/bin/bash', cli, '-f', '-d', dest, '-u', adresse, v])
It is possible to debug this for ubuntu 12.04 ? How can I do ?
I have found a solution with insering a
sleep 1
in the bash script (cli), just after the ffmpeg command: