Hello All,
I am porting DMTCP to Android 7.0 and the OS is 64bit.
When I compile mtcp, it failed in building mtcp library (libmtcp.a).
The libmtcp.a is generated from syscall-aarch64.S and restore_libc.c which is
written with ASM code.
It failed in compiling.
Is there any Android.mk for reference?
I comment the mtcp_syscall usage in the source code to make it pass to build.
And it has segment default error like below. Please support to verify this
error.
Thanks a lost
3365 getuid() = 0
3365 faccessat(AT_FDCWD, "/dev/socket/logdw", W_OK) = 0
3365 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
3365 connect(4, {sa_family=AF_UNIX, sun_path="/dev/socket/logdw"}, 110) = 0
3365 openat(AT_FDCWD, "/dev/__properties__/u:object_r:logd_prop:s0",
O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 5
3365 fstat(5, {st_mode=S_IFREG|0444, st_size=131072, ...}) = 0
3365 mmap(NULL, 131072, PROT_READ, MAP_SHARED, 5, 0) = 0xe32c726d1000
3365 close(5) = 0
3365 openat(AT_FDCWD, "/dev/__properties__/u:object_r:log_tag_prop:s0",
O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 5
3365 fstat(5, {st_mode=S_IFREG|0444, st_size=131072, ...}) = 0
3365 mmap(NULL, 131072, PROT_READ, MAP_SHARED, 5, 0) = 0xe32c726b1000
3365 close(5) = 0
3365 getuid() = 0
3365 writev(4, [{iov_base="\0%\r\362*\214Y\177L\200\33", iov_len=11},
{iov_base="\7", iov_len=1}, {iov_base="crash_dump64\0", iov_len=13},
{iov_base="crash_dump.cpp:268] failed to at"..., iov_len=77}], 4) = 102
3365 socket(AF_UNIX, SOCK_SEQPACKET, 0) = 5
3365 connect(5, {sa_family=AF_UNIX, sun_path="/dev/socket/tombstoned_crash"},
31) = 0
3365 write(5, "\0\0\0\0\"\r\0\0", 8) = 8
3365 recvmsg(5, {msg_name=NULL, msg_namelen=0,
msg_iov=[{iov_base="\200\0\0\0\0\0\0\0", iov_len=8}], msg_iovlen=1,
msg_control=[{cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS,
cmsg_data=[6]}], msg_controllen=24, msg_flags=0}, 0) = 8
3365 fcntl(6, F_GETFL) = 0x20401 (flags
O_WRONLY|O_APPEND|O_LARGEFILE)
3365 fcntl(6, F_SETFL, O_WRONLY|O_APPEND|O_LARGEFILE) = 0
3365 write(6, "crash_dump failed to dump proces"..., 33) = 33
3365 write(6, " 3362: failed to attach to threa"..., 64) = 64
3365 exit_group(1) = ?
3363 <... read resumed> "", 4) = 0
3363 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
3363 connect(4, {sa_family=AF_UNIX, sun_path="/dev/socket/logdw"}, 110) = 0
3363 writev(4, [{iov_base="\4", iov_len=1}, {iov_base="\"\r", iov_len=2},
{iov_base="\362*\214Y(t\300\33", iov_len=8}, {iov_base="\7", iov_len=1},
{iov_base="libc\0", iov_len=5}, {iov_base="crash_dump helper failed to
exec"..., iov_len=33}], 6) = 50
3363 close(4) = 0
3363 close(3) = 0
3363 wait4(3364, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3364
3363 exit(0) = ?
3362 <... futex resumed> ) = 0
3363 +++ exited with 0 +++
3362 futex(0xf9b5bb770d08, FUTEX_WAIT, 3363, NULL) = -1 EAGAIN (Try again)
3362 prctl(PR_SET_DUMPABLE, SUID_DUMP_USER) = 0
3362 rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[],
sa_flags=SA_RESTART}, {sa_handler=0xf9b5bb7a1138, sa_mask=~[KILL STOP],
sa_flags=SA_RESTART|SA_SIGINFO|SA_ONSTACK}, 8) = 0
3362 rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[],
sa_flags=SA_RESTART}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTART}, 8)
= 0
3362 getpid() = 3362
3362 gettid() = 3362
3362 rt_tgsigqueueinfo(3362, 3362, SIGSEGV, {si_signo=SIGSEGV,
si_code=SEGV_MAPERR, si_addr=0xffffd00c8e20}) = 0
3362 rt_sigreturn({mask=[]}) = 24
3362 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR,
si_addr=0xffffd00c8e20} ---
3362 +++ killed by SIGSEGV +++
3365 +++ exited with 1 +++
Best regards,
Baohong CHENG
CM/ESW11-CN
Tel. +86 512 6767-4676
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum