Member
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
|
I got the same result. The strace log looks very similar:
...
...
_llseek(4, 0, [0], SEEK_SET) = 0
close(3) = 0
pipe([3, 5]) = 0
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD, child_tidptr=0xb7d3e6f8) = 32723
close(5) = 0
mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7853000
read(3, "", 1048576) = 0
mremap(0xb7853000, 1052672, 4096, MREMAP_MAYMOVE) = 0xb7853000
close(3) = 0
munmap(0xb7853000, 4096) = 0
waitpid(32723, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 32723
--- SIGCHLD (Child exited) @ 0 (0) ---
pipe([3, 5]) = 0
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD, child_tidptr=0xb7d3e6f8) = 995
close(5) = 0
mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7853000
read(3, "", 1048576) = 0
mremap(0xb7853000, 1052672, 4096, MREMAP_MAYMOVE) = 0xb7853000
close(3) = 0
munmap(0xb7853000, 4096) = 0
waitpid(995, Illegal instruction
[{WIFEXITED(s) && WEXITSTATUS(s) == 132}], 0) = 995
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
munmap(0xb7a2d000, 4096) = 0
unlink("/tmp/tmpcS7btS") = 0
...
...
Looking into installer code I found that the extraction method depends on attribute, but since I am not familiar with Python, I do not know how to assign such attribute...
def extract_tarball(tar, destdir):
print 'Extracting application files...'
if hasattr(tar, 'read'):
subprocess.check_call(['tar', 'xjf', tar.name, '-C', destdir])
else:
tarfile.open(tar, 'r').extractall(destdir)
|