[#3989] test case fails to run on /tmp folder on trunk kernel
Submitted By: Mingquan Pan
Open Date
2008-03-27 06:33:30 Close Date
2008-03-31 23:30:26
Priority:
Medium Assignee:
Mike Frysinger
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
N/A
Uboot version or rev.:
Toolchain version or rev.:
08r1-8
App binary format:
N/A
Summary: test case fails to run on /tmp folder on trunk kernel
Details:
toolchain test case fails to run on /tmp folder on trunk kernel,while it can run in / folder.
root:/>
root:/> /tmp/trivial.exe
/tmp/trivial.exe: cannot execute
root:/> version
kernel: Linux release 2.6.24.3-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 /
root:/> ./trivial.exe
root:/>
This is dued to the r6396 checkin in uclinux-dist.
Follow-ups
--- 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.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found