Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on armv71 Debian #1

Open
TonyPuryer opened this issue Mar 13, 2021 · 0 comments
Open

Segfault on armv71 Debian #1

TonyPuryer opened this issue Mar 13, 2021 · 0 comments

Comments

@TonyPuryer
Copy link

TonyPuryer commented Mar 13, 2021

Hi there.

I'm getting a segfault while trying to run this program and was wondering if you had any suggestions. I've tried the best I can to get it running. I have a hunch it's to do with linux-vdso.so.1 not being on the system (but from what I can find it's supposed to be in the kernel - perhaps?).

ldd ./aml-upgrade-package-extract
linux-vdso.so.1 (0xbee3b000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6eb5000)
/lib/ld-linux-armhf.so.3 (0xb6fd2000)

find / -name linux-vdso.so.1
not found

strace ./aml-upgrade-package-extract /home/tony/Downloads/mdz16ab\ (1).img
execve("./aml-upgrade-package-extract", ["./aml-upgrade-package-extract", "/home/tony/Downloads/mdz16ab (1)"..., "aml-upgrade-package-extract"], 0xbef8b7a8 /* 14 vars */) = 0 brk(NULL) = 0x2166000 uname({sysname="Linux", nodename="debian", ...}) = 0 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f9e000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=67247, ...}) = 0 mmap2(NULL, 67247, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6f67000 close(3) = 0 openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/libc.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\09v\1\0004\0\0\0"..., 512) = 512 _llseek(3, 949188, [949188], SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2840) = 2840 _llseek(3, 945756, [945756], SEEK_SET) = 0 read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 53) = 53 _llseek(3, 949188, [949188], SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2840) = 2840 _llseek(3, 945756, [945756], SEEK_SET) = 0 read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 53) = 53 _llseek(3, 949188, [949188], SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2840) = 2840 _llseek(3, 945756, [945756], SEEK_SET) = 0 read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 53) = 53 _llseek(3, 949188, [949188], SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2840) = 2840 _llseek(3, 945756, [945756], SEEK_SET) = 0 read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 53) = 53 _llseek(3, 949188, [949188], SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2840) = 2840 _llseek(3, 945756, [945756], SEEK_SET) = 0 read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 53) = 53 _llseek(3, 949188, [949188], SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2840) = 2840 _llseek(3, 945756, [945756], SEEK_SET) = 0 read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 53) = 53 fstat64(3, {st_mode=S_IFREG|0755, st_size=952028, ...}) = 0 mmap2(NULL, 1020732, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e6d000 mprotect(0xb6f51000, 65536, PROT_NONE) = 0 mmap2(0xb6f61000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe4000) = 0xb6f61000 mmap2(0xb6f64000, 9020, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6f64000 close(3) = 0 set_tls(0xb6f9ed20) = 0 mprotect(0xb6f61000, 8192, PROT_READ) = 0 mprotect(0x415000, 4096, PROT_READ) = 0 mprotect(0xb6fa0000, 4096, PROT_READ) = 0 munmap(0xb6f67000, 67247) = 0 brk(NULL) = 0x2166000 brk(0x2187000) = 0x2187000 openat(AT_FDCWD, "/home/tony/Downloads/mdz16ab (1).img", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0600, st_size=1601848492, ...}) = 0 fstat64(3, {st_mode=S_IFREG|0600, st_size=1601848492, ...}) = 0 _llseek(3, 1601847296, [1601847296], SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1196) = 1196 _llseek(3, 0, [0], SEEK_SET) = 0 mmap2(NULL, 1601851392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory) brk(0x6192c000) = 0x2187000 mmap2(NULL, 1601982464, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory) read(3, NULL, 1601847296) = -1 EFAULT (Bad address) close(3) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x18} --- +++ killed by SIGSEGV +++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant