All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: Thomas Meyer <thomas@m3y3r.de>,
	Richard Weinberger <richard.weinberger@gmail.com>
Cc: "user-mode-linux-devel@lists.sourceforge.net"
	<user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] uml_net zombie processes
Date: Mon, 13 Jul 2015 16:00:27 +0200	[thread overview]
Message-ID: <55A3C47B.8040206@nod.at> (raw)
In-Reply-To: <1436795884.3306.7.camel@m3y3r.de>

Am 13.07.2015 um 15:58 schrieb Thomas Meyer:
> Am Montag, den 13.07.2015, 15:52 +0200 schrieb Richard Weinberger:
>> On Mon, Jul 13, 2015 at 3:41 PM, Thomas Meyer <thomas@m3y3r.de> 
>> wrote:
>>> Hi,
>>>
>>> The uml_net network setup "fails" on my computer with:
>>>
>>> [   15.930000] helper_wait : waitpid process 11673 failed, errno = 
>>> 10
>>> [   15.930000] * modprobe tun
>>>                * ifconfig tap0 192.168.10.1 netmask 255.255.255.255 
>>> up
>>>                * bash -c echo 1 > /proc/sys/net/ipv4/ip_forward
>>> [   20.480000] helper_wait : waitpid process 11780 failed, errno = 
>>> 10
>>> [   20.480000] * route add -host 192.168.10.2 dev tap0
>>>                * bash -c echo 1 >
>>> /proc/sys/net/ipv4/conf/tap0/proxy_arp
>>>
>>> because I run uml linux as a normal user and I guess these commands
>>> fail, because of insufficient rights:
>>> bash -c echo 1 > /proc/sys/net/ipv4/ip_forward
>>> bash -c echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp
>>>
>>> But this failure is okay for me, as firewalld, sets above options
>>> correctly on my host computer.
>>>
>>> The problem I see is that UML list two zombie processes:
>>>   11780 root       20   0     0     0     0 Z  0.0  0.0  0:00.00 
>>> 15:34 │  │     ├─ uml_net
>>>   11673 root       20   0     0     0     0 Z  0.0  0.0  0:00.00 
>>> 15:34 │  │     ├─ uml_net
>>>
>>> UML seems to never reap those two processes, likely because of 
>>> errno=10 exit code.
>>>
>>> any idea how to fix this?
>>
>> Hmm, it tries to reap them using waitpid().
>> But it seems to fail with ECHILD.
>>
>> Can you add a few prints to compare the PIDs?
> 
> Sure, where should I add those?
> os-Linux/helper.c - helper_wait(int pid) ?

Yeah. And please add a dump_stack() to figure out where it was called.

Thanks,
//richard

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2015-07-13 14:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13 13:41 [uml-devel] uml_net zombie processes Thomas Meyer
2015-07-13 13:52 ` Richard Weinberger
2015-07-13 13:58   ` Thomas Meyer
2015-07-13 14:00     ` Richard Weinberger [this message]
2015-07-13 14:24       ` Thomas Meyer
2015-07-13 14:41         ` Richard Weinberger
2015-07-13 15:08           ` Thomas Meyer
2015-07-13 15:11             ` Richard Weinberger
2015-07-13 15:12               ` Thomas Meyer
2015-07-15 10:12                 ` Richard Weinberger
2015-07-15 13:58                   ` Thomas Meyer
2015-08-09 17:57                     ` Richard Weinberger
2015-08-09 18:22                       ` Thomas Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55A3C47B.8040206@nod.at \
    --to=richard@nod.at \
    --cc=richard.weinberger@gmail.com \
    --cc=thomas@m3y3r.de \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.