[CRIU] Error dumping Android emulator: Name resolved on unconnected socker
Pavel Emelyanov
xemul at parallels.com
Thu Sep 24 09:06:42 PDT 2015
On 09/24/2015 05:08 PM, Julian Andres Klode wrote:
> Hi,
>
> while dumping an Android emulator, I always receive the following
> errors:
>
> (00.014220) Error (sk-inet.c:188): Name resolved on unconnected socket
Oh! Do you receive it every single time you try to dump? Or just quite often?
And which version of criu do you use?
> 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)
No attachments in the e-mail :\
> 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
>
More information about the CRIU
mailing list