From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Problems with HOME on w32 Date: Thu, 18 May 2006 22:31:25 +0300 Message-ID: References: <446CB315.6030309@student.lu.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1147980742 25810 80.91.229.2 (18 May 2006 19:32:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 May 2006 19:32:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 18 21:32:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FgoEE-0004o5-4k for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 21:32:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgoED-0006nP-F8 for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 15:32:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgoDy-0006nE-Tz for emacs-devel@gnu.org; Thu, 18 May 2006 15:31:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgoDx-0006n0-Sm for emacs-devel@gnu.org; Thu, 18 May 2006 15:31:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgoDx-0006mx-NQ for emacs-devel@gnu.org; Thu, 18 May 2006 15:31:53 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FgoH7-0005c7-3r for emacs-devel@gnu.org; Thu, 18 May 2006 15:35:09 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-212-49.inter.net.il [83.130.212.49]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DKE09027 (AUTH halo1); Thu, 18 May 2006 22:31:18 +0300 (IDT) Original-To: Lennart Borgman In-reply-to: <446CB315.6030309@student.lu.se> (message from Lennart Borgman on Thu, 18 May 2006 19:47:01 +0200) 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:54726 Archived-At: > Date: Thu, 18 May 2006 19:47:01 +0200 > From: Lennart Borgman > > I traced Emacs22 file access with NTFILMON > (http://www.sysinternals.com). I found that Emacs try to query > information on |C:\.emacs| (after one on |C:\|) and fails with buffer > overflow (I guess the structure passed to store query result is too > small). Seems something goes bad inside Emacs so that HOME is corrupted. > > It should be noted that without a |C:\.emacs| file, everything works and > then .emacs file is expected in %APPDATA% directory for 22.0.50.1 and > HOME env. var point to this place too. > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > I tested and got the same result with GNU Emacs 22.0.50.1 > (i386-mingw-nt5.0.2195) of 2006-05-13. Lennart, could you please explain in plain English what is the problem? I'm sorry, but I cannot make heads or tails out of the original report you cited, nor can I understand the precise recipe to reproduce the bug. Is the reason the non-ASCII characters used in the value of HOME? or is that the symptom of corruption? what does probing C:\.emacs have to do with this? etc., etc. Since you say that you can reproduce the problem with a fairly recent build, please give a precise recipe for that, including what should be the value of HOME, which .emacs files should be present in what directories, etc. And please don't use NTFILMON or similar tracing tools; instead, if you need to see what is going on under the hood, please step with a debugger into the relevant code (it's in the function init_environment defined on w32.c), and tell what you see. Thanks.