Skip to content

Instantly share code, notes, and snippets.

@smiler
Created August 13, 2013 09:15
Show Gist options
  • Select an option

  • Save smiler/6219335 to your computer and use it in GitHub Desktop.

Select an option

Save smiler/6219335 to your computer and use it in GitHub Desktop.
butik@X-web01:/srv/X/local/bin$ ls -l gsi
-rwxr-xr-x 1 butik butik 4509210 Aug 6 21:44 gsi
butik@X-web01:/srv/X/local/bin$ file gsi
gsi: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0xf5fa060722127410c35308a89f8c876fbf586ff2, not stripped
butik@X-web01:/srv/X/local/bin$ ldd gsi
not a dynamic executable
butik@X-web01:/srv/X/local/bin$ strace ./gsi
execve("./gsi", ["./gsi"], [/* 13 vars */]) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbcb2e16000
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3) = 0
munmap(0x7fbcb2e16000, 4096) = 0
exit_group(1) = ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment