简体   繁体   中英

Python - segmentation error in ubuntu 12.04

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:

ffmpeg -y -i "${M3U2}" -vcodec copy -acodec copy "${Directory}/${PROG}_${ID}.mkv"
sleep 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM