OCaml Forge

Detail: [#1011] oasis-0.2.0-linux-installer.bin does not work on particular environment

Bugs: Browse | Download .csv | Monitor

[#1011] oasis-0.2.0-linux-installer.bin does not work on particular environment

Date:
2011-07-13 16:41
Priority:
3
State:
Closed
Submitted by:
Romain Slootmaekers (toolslive)
Assigned to:
Sylvain Le Gall (gildor-admin)
Product:
None
Due in version:
None
Resolution:
Won't Fix
Severity:
None
Version:
0.2.0
Component:
OASIS
Operating System:
Linux
 
URL:
Summary:
oasis-0.2.0-linux-installer.bin does not work on particular environment

Detailed description
$> md5sum ./oasis-0.2.0-linux-installer.bin
b72e9400ecbe362b5528783cbdab4a31 ./oasis-0.2.0-linux-installer.bin
$> ls -alh ./oasis-0.2.0-linux-installer.bin
ls -alh ./oasis-0.2.0-linux-installer.bin
-rwxr--r-- 1 xxx xxx 5.2M 2011-07-13 18:29 ./oasis-0.2.0-linux-installer.bin

$> ./oasis-0.2.0-linux-installer.bin: No such file or directory
$> uname -a
Linux lucid 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux

this particular machine is a virtual machine and the Ubuntu install has no X
(don't know if that has anything to do with it.)



Followup

Message
Date: 2016-05-18 12:48
Sender: Christophe Troestler

oasis-2.0 is old and no oasis-installer currently exists. Please open a new issue if a similar problem with the current version of oasis.
Date: 2011-07-28 20:51
Sender: ygrek

it should have been `strace -f -ttT ./oasis-0.2.0-linux-installer.bin` - without sh which tries to interpret the ELF binary :) . But I think that I have a guess (based on same recent experience) - you are executing the binary from the noexec mounted filesystem (and execve fails with EPERM in this case).
Date: 2011-07-15 07:50
Sender: Romain Slootmaekers

$> ldd ./oasis-0.2.0-linux-installer.bin
not a dynamic executable

$>file ./oasis-0.2.0-linux-installer.bin
./oasis-0.2.0-linux-installer.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped

$>sh ./oasis-0.2.0-linux-installer.bin
./oasis-0.2.0-linux-installer.bin: 1: Syntax error: "(" unexpected

$>strace -f -ttT sh ./oasis-0.2.0-linux-installer.bin

09:48:17.454613 execve("/bin/sh", ["sh", "./oasis-0.2.0-linux-installer.bi"...], [/* 17 vars */]) = 0 <0.000199>
09:48:17.455221 brk(0) = 0x18a6000 <0.000036>
09:48:17.455419 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) <0.000042>
09:48:17.455622 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f115a04a000 <0.000040>
09:48:17.455879 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) <0.000051>
09:48:17.456082 open("/etc/ld.so.cache", O_RDONLY) = 3 <0.000054>
09:48:17.456297 fstat(3, {st_mode=S_IFREG|0644, st_size=22331, ...}) = 0 <0.000044>
09:48:17.456470 mmap(NULL, 22331, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f115a044000 <0.000048>
09:48:17.456620 close(3) = 0 <0.000043>
09:48:17.456763 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) <0.000052>
09:48:17.456948 open("/lib/libc.so.6", O_RDONLY) = 3 <0.000054>
09:48:17.457107 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0"..., 832) = 832 <0.000046>
09:48:17.457278 fstat(3, {st_mode=S_IFREG|0755, st_size=1572232, ...}) = 0 <0.000045>
09:48:17.457448 mmap(NULL, 3680296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1159aa9000 <0.000050>
09:48:17.457600 mprotect(0x7f1159c23000, 2093056, PROT_NONE) = 0 <0.000050>
09:48:17.457749 mmap(0x7f1159e22000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x179000) = 0x7f1159e22000 <0.000089>
09:48:17.457954 mmap(0x7f1159e27000, 18472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1159e27000 <0.000053>
09:48:17.458123 close(3) = 0 <0.000044>
09:48:17.458315 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f115a043000 <0.000048>
09:48:17.458478 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f115a042000 <0.000047>
09:48:17.458634 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f115a041000 <0.000046>
09:48:17.458791 arch_prctl(ARCH_SET_FS, 0x7f115a042700) = 0 <0.000044>
09:48:17.459078 mprotect(0x7f1159e22000, 16384, PROT_READ) = 0 <0.000050>
09:48:17.459239 mprotect(0x617000, 4096, PROT_READ) = 0 <0.000049>
09:48:17.459394 mprotect(0x7f115a04c000, 4096, PROT_READ) = 0 <0.000049>
09:48:17.459541 munmap(0x7f115a044000, 22331) = 0 <0.000058>
09:48:17.459840 getpid() = 25108 <0.000044>
09:48:17.459994 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0x7f1159adcaf0}, {SIG_DFL, [], 0}, 8) = 0 <0.000046>
09:48:17.460202 geteuid() = 1000 <0.000043>
09:48:17.460463 brk(0) = 0x18a6000 <0.000044>
09:48:17.460606 brk(0x18c7000) = 0x18c7000 <0.000047>
09:48:17.460816 getppid() = 25107 <0.000047>
09:48:17.461058 stat("/home/qbase", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000074>
09:48:17.461259 stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000047>
09:48:17.461485 open("./oasis-0.2.0-linux-installer.bin", O_RDONLY) = 3 <0.000052>
09:48:17.461649 fcntl(3, F_DUPFD, 10) = 10 <0.000045>
09:48:17.461860 close(3) = 0 <0.000045>
09:48:17.462004 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 <0.000410>
09:48:17.462528 rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0 <0.000044>
09:48:17.462697 rt_sigaction(SIGINT, {0x408189, ~[RTMIN RT_1], SA_RESTORER, 0x7f1159adcaf0}, NULL, 8) = 0 <0.000045>
09:48:17.462903 rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0 <0.000044>
09:48:17.463080 rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f1159adcaf0}, NULL, 8) = 0 <0.000045>
09:48:17.463253 rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0 <0.000043>
09:48:17.463408 rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f1159adcaf0}, NULL, 8) = 0 <0.000043>
09:48:17.463579 read(10, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\300~\6\0104\0\0\0"..., 8192) = 8192 <0.000057>
09:48:17.464247 write(2, "./oasis-0.2.0-linux-installer.bi"..., 38./oasis-0.2.0-linux-installer.bin: 1: ) = 38 <0.000054>
09:48:17.464447 write(2, "Syntax error: \"(\" unexpected", 28Syntax error: "(" unexpected) = 28 <0.000055>
09:48:17.464620 write(2, "\n", 1
) = 1 <0.000054>
09:48:17.464792 exit_group(2) = ?
Date: 2011-07-15 07:36
Sender: ygrek

strace -f -ttT sh ./oasis-0.2.0-linux-installer.bin

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2016-05-18 12:48chris
close_dateNone2016-05-18 12:48chris
ResolutionNone2016-05-18 12:48chris
assigned_tonone2012-03-12 22:14gildor-admin