[#3989] test case fails to run on /tmp folder on trunk kernel
Submitted By: Mingquan Pan
2008-03-27 06:33:30 Close Date
Closed Fixed In Release:
Found In Release:
N/A Silicon Revision:
Is this bug repeatable?:
Uboot version or rev.:
Toolchain version or rev.:
App binary format:
Summary: test case fails to run on /tmp folder on trunk kernel
toolchain test case fails to run on /tmp folder on trunk kernel,while it can run in / folder.
/tmp/trivial.exe: cannot execute
kernel: Linux release 126.96.36.199-ADI-2008R2-pre-svn4460, build #90 Thu Mar 27 18:22:35 CST 2008
toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-6396, build #21 Thu Mar 27 18:21:56 CST 2008
root:/> cp /tmp/trivial.exe /
This is dued to the r6396 checkin in uclinux-dist.
--- Mike Frysinger 2008-03-27 08:26:14
i'd say this is correct behavior ... you dont normally want things executed in
/tmp as that is for world writable temporary files, not executable files
--- Mingquan Pan 2008-03-27 22:15:39
However, the toolchain test framework dejagnu it is defaultly set the folder to
run testcase in /tmp.
like in: /usr/share/dejagnu/remote.exp
set remotefile "/tmp/[file tail $prog].[pid]".
Isn't it also running on other platforms to put executable under /tmp?
And it would be easier to change the permission of /tmp ,rather than fixing in
dejagnu, there are quite a few places to use /tmp directory in it.
--- Mike Frysinger 2008-03-28 12:11:21
it depends on the system, but it is common for /tmp to not be executable. that
directory is meant for temporary storage of data files, not executables.
for our systems, we can add exec support back to /tmp since it sounds like many
of our scripts assume it.
--- Mingquan Pan 2008-03-31 23:30:25
Added it back. Close.
File Name File Type File Size Posted By
No Files Were Found