system call giving BAD KERNEL TRAP

Hi all

I have a application in which files are copied to USB drive. For copying files to USB system() fucntion call is used ( system("cp -f...") ).

Some times the system() function causes BAD KERNEL TRAP. following is the KERNEL dump after execution of the system("cp -f") call.Even if I replace the "cp -f" with "date" still it causes bad kernel trap.
[ 1445.400000] *** FORMAT ERROR *** FORMAT=4
[ 1445.400000] Current process id is 599
[ 1445.410000] BAD KERNEL TRAP: 00000000
[ 1445.410000] PC: [<00023cd2>] resume_userspace+0x18/0x1a<0>
[ 1445.420000] SR: 2010 SP: 3f4d3da8 a2: 3f49c390
[ 1445.420000] d0: 00000800 d1: 00000000 d2: 00000800 d3: aa5a2f2b
[ 1445.430000] d4: 0000e000 d5: 00000052 a0: 38b80004 a1: 84bf8008

Are there any issues calling system() function in a multi threaded application.

regards
amit
Topic archived. No new replies allowed.