[CRIU] Error dumping Android emulator: Name resolved on unconnected socker

Julian Andres Klode jak at jak-linux.org
Thu Sep 24 07:08:15 PDT 2015


Hi,

while dumping an Android emulator, I always receive the following
errors:

(00.014220) Error (sk-inet.c:188): Name resolved on unconnected socket

I am attaching
* the log file (dump.log)
* the lsof output of the to be dumped process (lsof.log)
* the ss -f output (ss-f.log)

I disabled that and then reached another error "Can't shutdown
inet socket", which I disabled as well. Restoring the dump then
results in a mostly usable image, the emulator is just not auto-detected
by adb anymore, and I need to reconnect manually to :5555.

-- My applies workarounds for now:

diff --git a/sk-inet.c b/sk-inet.c
index bce24e3..d361d6e 100644
--- a/sk-inet.c
+++ b/sk-inet.c
@@ -96,9 +96,9 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
 	BUG_ON((sk->sd.family != AF_INET) && (sk->sd.family != AF_INET6));
 
 	if (sk->shutdown) {
-		pr_err("Can't dump shutdown inet socket %x\n",
+		pr_warn("Can't dump shutdown inet socket %x\n",
 				sk->sd.ino);
-		return 0;
+		return 1;
 	}
 
 	if (sk->type == SOCK_DGRAM) {
@@ -185,8 +185,7 @@ static struct inet_sk_desc *gen_uncon_sk(int lfd, const struct fd_parms *p, int 
 			goto err;
 		}
 	} else if (ret == 0) {
-		pr_err("Name resolved on unconnected socket\n");
-		goto err;
+		pr_warn("Name resolved on unconnected socket\n");
 	}
 
 	sk->sd.ino = p->stat.st_ino;
--
libgit2 0.21.4
-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
    - If you don't I might ignore you.


More information about the CRIU mailing list