From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Helberg Newsgroups: gmane.emacs.devel Subject: Re: emacs crash on SMP notebook only Date: Tue, 29 Nov 2005 16:08:06 +0100 (CET) Message-ID: <20051129.160806.84365346.joost@snow.nl> References: <20051126.095839.-1540407023.joost@snow.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133282450 30301 80.91.229.2 (29 Nov 2005 16:40:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 16:40:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 17:40:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eh8Ds-0005xE-3L for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 17:20:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eh8Dr-0001TN-8B for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 11:20:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eh6ws-0002e0-LC for emacs-devel@gnu.org; Tue, 29 Nov 2005 09:59:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eh6wq-0002d7-47 for emacs-devel@gnu.org; Tue, 29 Nov 2005 09:59:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eh6wo-0002ch-Db for emacs-devel@gnu.org; Tue, 29 Nov 2005 09:59:10 -0500 Original-Received: from [212.72.238.6] (helo=neerijnen.snow.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Eh6wm-0001Cb-QX; Tue, 29 Nov 2005 09:59:09 -0500 Original-Received: (from nobody@localhost) by neerijnen.snow.nl (8.8.8/8.6.9) id RAA23723; Tue, 29 Nov 2005 17:26:56 GMT Original-Received: by neerijnen.snow.nl via recvmail id 23647; Tue Nov 29 17:26:49 2005 Original-Received: from localhost (localhost [127.0.0.1]) by intern.snow.nl (Postfix) with ESMTP id 309B41C000B0; Tue, 29 Nov 2005 16:00:13 +0100 (CET) Original-To: rms@gnu.org In-Reply-To: X-Mailer: Mew version 4.2.52 on Emacs 22.0.50 / Mule 5.0 (SAKAKI) 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:46765 Archived-At: Richard, >>>>> "Richard" == Richard M Stallman writes: > Date: Sat, 26 Nov 2005 19:31:52 -0500 > I've investigated further and came to the conclusion that this is > related to using gcc-4.0.2. > Using a gcc-3.4 compiled GNU Emacs works fine now. > That is disturbing. It could be a GCC bug. > I'm using GNU/Linux of the Debian sort on Intel 4 3.6GHz with > hyperthreading enabled. Using NO hyperthreading (a kernel option) with > gcc-4.0.2 compiled emacs shows no crashes. > I am not sure what hyperthreading is. Does it alter the execution of > machine code? It presents the kernel with 2 CPU's. The CPU can then use wait-states etc. for time-sharing on a CPU-level. Intel claims a 30% performance gain and better `interactive' performance. > Please confirm the meaning of these statements. Are you saying that > the same Emacs executable (made with GCC 4) crashes with > hyperthreading but does not crash when run without hyperthreading? I was saying exactly that. > Does the Emacs executable made with GCC 3.4 run correctly both > with and without hyperthreading? Now I know that the GCC 3.4 compiled Emacs crashes too, but not as often. But there is less alarming news: Emacs-22 (from CVS) works OK (i.e. with hyperthreading, GCC 4). Emacs-21.4 as bundled with my OS but recompiled, crashes often with hyperthreading and GCC 4, crashed twice with GCC 3.4. Emacs-21.4 as deliverd by the FSF works fine using GCC 4 or GCC 3.4. It looks as if the problem is either gcc or the patches from Debian or Ubuntu. We can safely assume that gcc deserves more credits than Debian and Ubuntu together. I'm currently checking out the patches from Debian and Ubuntu, as I'm pretty sure these make the crashes appear. I'm sorry for any hassle I caused, as it looks like the problem sits in people modifying code for no reason whatsoever. I'll look further into the problem in order to complete feedback to the Debian people, I feel a but reluctant though as no good can come from the way their packaging works. > I think that is what you are saying, but let's make sure there is no > misunderstanding. There is a clearer picture now which is a lot less disturbing. > Can I help narrowing this thing down to a gcc or emacs issue? > The way to investigate further is to compile some of the files with > each compiler, and see if it crashes. That way you can determine > which file has the problem. > Would you like to do that? I will try to pin down the problem by looking further and suspecting both GCC and the Debian/Ubuntu patches. Regards, Joost Helberg -- Joost Helberg Snow B.V. http://snow.nl Tel 0418-653333 Fax 0418-653666 Voorzitter VOSN http://www.vosn.nl Tel 0418-653336 Fax 0418-653666