Public bug reported:

It took me a while to pin this one down, and I still haven't figured
everything out. I noticed slow startup times on may apps when I would
lose my internet connection. Applications include gvim and gnome-
terminal (would should start up fairly quickly, but would take 5-10 sec
on Insipiron 1501 with 2GB of memory & no internet). With internet, it
was fine. A little investigation with wireshark showed the computer was
sending out ICMP ping packets every time I started up an application. It
would send out four or so packets, and time out waiting for each one,
and then start the App. It works fine with the internet because they're
not timing out. At first I thought it might be related to the /etc/hosts
loopback misconfigured bug that pops up here and there on the buglists,
but that wasn't it (or maybe some weird malicious software on my laptop,
I'm kind of paranoid about that kind of thing). Seems more likely to be
some odd misconfiguration, though. That shouldn't happen.

(on a side note, the Network Configuration gui really shouldn't say
"some applications may break" when you change the name via the gui,
should say "all applications *will* break", and you'll need to reboot -
at least on my box).

Also the packets always contained my hostname & domain in the icmp data.
Weird. Bringing down my interfaces or assigning a 0.0.0.0 ip "fixes" the
issue in that the pings no longer happen, and the applications start up
quickly. I also tried killing avahipd and that seemed to help once, but
not always. I also had this entry in my /etc/network/interfaces:

ifconfig eth0 dhcp
  Address [some address]
  Netmask [some netmask]
  [Err... I forgot this line, the usual one]

I don't know how it got dhcp & entries for address, etc, since I've
never bothered to configure eth0 (it's the wired connection).

Also, when I manually configure the routes, etc, the pings go out to the
gateway (if I remember correctly), but if I don't, they were going out
with the source ip set to 169.x.x.x or whatever the fake ip is for Zero-
Conf. Interestingly the Source & Dest ips were equal in this case, and
the pings were *still* failing.

Removing the ifconfig eth0 entry from /etc/network/interfaces fixes it
for the case when I just boot up with no wireless, but it doesn't fix it
for when I have network manager up, have a connection, it sets up the
routes and everything, and then I move to a place without an internet
connection (very common use case for me). So basically, if you have
routes set up, and no internet connection, ubuntu (gutsy, up to date),
is essentially unusable (5-10 second startup for simple terminal &
editor apps is basically unusable by me).

Why are these pings happening?
Why are they happening on every application startup?

Someone with a deeper understanding of all the gnome parts is probably
needed to understand this.

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
Gnome apps (gvim, gnome-terminal) triggering needless pinging at startup
https://bugs.launchpad.net/bugs/211512
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to