Hi Randomly, some times I receive segmenntation fault with system() command in my Qt application. I use system() command for GPIO access for example system("echo 1 > /sys/class/gpio/gpio193/value"); on arm-qte-4.7.3 (-O2) arm-none-linux-gnueabi- 4.4.3 linux-2.6.32.2 not -O0 optimization or arm-qte-4.6.3 are useful I will be appreciated with your comments and suggestion thanks in advance
segmenntation fault 'system()' GPIO access
Why you're using system to access. /sys/class/gpio/gpio193/value is normal file so you can open it and read and write how much u want ;). For your problem just use strace to debug a problem. Did you check return value? Marek
thanks marek I was unsuccessfull in installation of strace-4.6 and olders. ./configure --target=arm-none-linux-gnueabi --host=arm-none-linux-gnueabi make make install then I copied the strace-4.6 directory to mini2440 but any attempts to ./strace myApp leads to segmentation faults