I am doing cross compiling for and arm system on an Intel box. So when I do remote debugging everything seems to OK untill....

if I use a popen command to execute a bash script on the remote machine qtcreator will download a second copy of my application and start executing it.

For example if I run this:

if(!(in = popen("ls l ~", "r"))){
return ecr;

A second copy of my application will be downloaded and executed.

I have even single-stepped over this line and I can see it download a second copy and execute it.

Any ideas?