From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Emacs WIN32 crashes on reinitialzing of lisp process using slime Date: Fri, 13 Apr 2007 10:57:18 +0100 Message-ID: <461F53FE.9000800@gnu.org> References: <461EAF08.1050202@gnu.org> <461EB54F.40909@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176458342 15343 80.91.229.12 (13 Apr 2007 09:59:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2007 09:59:02 +0000 (UTC) Cc: carstenblaauw@web.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 13 11:59:01 2007 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 1HcIYW-0003cx-MY for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2007 11:59:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcIcl-0006Lh-UH for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2007 06:03:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcIbL-0004nI-8M for emacs-devel@gnu.org; Fri, 13 Apr 2007 06:01:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcIbI-0004i8-Ve for emacs-devel@gnu.org; Fri, 13 Apr 2007 06:01:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcIbI-0004gp-D1 for emacs-devel@gnu.org; Fri, 13 Apr 2007 06:01:52 -0400 Original-Received: from outmail1.freedom2surf.net ([194.106.33.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HcIWy-0006xR-Na; Fri, 13 Apr 2007 05:57:24 -0400 Original-Received: from [127.0.0.1] (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id 13380513D8; Fri, 13 Apr 2007 10:57:24 +0100 (BST) User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: X-detected-kernel: 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:69381 Archived-At: Eli Zaretskii wrote: >> Date: Thu, 12 Apr 2007 23:40:15 +0100 >> From: Jason Rumney >> Cc: Eli Zaretskii , cb , >> emacs-devel@gnu.org >> >> Further investigation shows that the kill-buffer is called recursively >> on the same buffer in slime-net-close, due to the hooks calling >> slime-net-sentinel which in turn calls slime-net-close again. >> > > That means the problem is not really Windows-specific. > Probably not. There doesn't seem to be any windows specific code involved anywhere in the stack. > How come recursive kill-buffer causes r_alloc_free to be called with a > NULL pointer? > I don't know. I couldn't reproduce it by setting a kill-buffer-hook that calls kill-buffer, so it must be specific to the way it is done by slime (using a process-sentinel rather than kill-buffer-hook).