From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Strange hang maybe due to IP changes Date: Mon, 11 May 2009 20:33:46 +0200 Message-ID: References: <87ljpr8s8z.fsf@CPU107.opentrends.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242067672 31033 80.91.229.12 (11 May 2009 18:47:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 18:47:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Clemente Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 11 20:47:43 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M3aXN-0004YO-5k for ged-emacs-devel@m.gmane.org; Mon, 11 May 2009 20:47:41 +0200 Original-Received: from localhost ([127.0.0.1]:47272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3aXM-0001lw-Tl for ged-emacs-devel@m.gmane.org; Mon, 11 May 2009 14:47:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3aRR-0008BM-VJ for emacs-devel@gnu.org; Mon, 11 May 2009 14:41:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3aRN-00088l-EJ for emacs-devel@gnu.org; Mon, 11 May 2009 14:41:33 -0400 Original-Received: from [199.232.76.173] (port=39721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3aRN-00088g-2J for emacs-devel@gnu.org; Mon, 11 May 2009 14:41:29 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:46038 helo=gate.verona.se) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3aRM-0001PF-5y for emacs-devel@gnu.org; Mon, 11 May 2009 14:41:28 -0400 Original-Received: from localhost.localdomain (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id n4BIfQkM022804; Mon, 11 May 2009 20:41:26 +0200 In-Reply-To: <87ljpr8s8z.fsf@CPU107.opentrends.net> (Daniel Clemente's message of "Thu, 23 Apr 2009 14:33:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110828 Archived-At: I've been meaning to write a more thourough reply to this, but since I never do here goes: - there is a bug in the bugtracker for this, entered by Marcus Triska, and also a patch which helps to some extent. - I get afflicted by this fearsome bug rather frequently because I switch IP-adresses on my laptop frequently. I havent been able to fix it, but I have a workaround: - when you get the horrbile hang, you probably have changed ip adresses, and you also probably have a dangling connection to some server. Verify this with lsof. take note which interfaces are dangling. for me its usualy a gnus connection to gmane. - lsof|grep emacs, notice: emacs 3422 joakim 38u IPv4 141972 0t0 TCP 10= .0.75.184:60871->80.91.229.13:nntp (ESTABLISHED) - now, ifconfig local interfaces for the connection: 80.91.229.13 is ger.gmane.org, so its a gnus socket. 10.0.75.184 is no longer valind, eth0 dead! then i created pseudo interfaces: ifconfig eth0 80.91.229.13 ifconfig eth0:1 10.0.75.184 This seems to work every time so far, but you need of course adapt to your own ip adresses. /Joakim Daniel Clemente writes: > Hi; > since some days my Emacs (compiled from Bazaar) hangs from time to time= . It seems to block on I/O so strongly that I can't even debug it with gdb,= strace or lsof (they block when trying to attach). A kill doesn't work, an= d neither does kill -9 (Emacs doesn't react and stays in D status). > > After each hang, I have noticed that my network card's IP had changed v= ia DHCP. Yes, this is absurd and I don't know how it relates to Emacs, but = if I run dhclient3 and wait a while (about a minute), Emacs comes to life a= gain and all the C-g I issued take effect. > I had IP 192.168.5.123 probably until the DHCP lease expired, then it w= as 192.168.5.190. A =E2=80=9Edhclient3=E2=80=9C run put it again at .123 > At the moment of the hang, another Emacs instance where I had Gnus open= stopped being able to connect to the IMAP servers, maybe because the new I= P couldn't access Internet. > > > Versions: > dhcp3-client 3.1.1-5ubuntu7 > Linux CPU107 2.6.28-11-generic #36-Ubuntu SMP Fri Mar 20 19:40:40 UTC 200= 9 i686 GNU/Linux > GNU Emacs 23.0.92.3 (i686-pc-linux-gnu, GTK+ Version 2.16.0) of 2009-04-2= 0 on CPU107 > > > Were there changes in network / blocking code that could have triggered= these behaviours? > > > -- Daniel > > PS: I had recently another crash involving XftGlyphExtents/XftCharIndex b= ut this seems unrelated. I have reported the bug. > > --=20 Joakim Verona