unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: emacs crash on SMP notebook only
       [not found]   ` <20051126.095839.-1540407023.joost@snow.nl>
@ 2005-11-27  0:31     ` Richard M. Stallman
  2005-11-29 15:08       ` Joost Helberg
  0 siblings, 1 reply; 5+ messages in thread
From: Richard M. Stallman @ 2005-11-27  0:31 UTC (permalink / raw)
  Cc: emacs-devel

    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?

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?

Does the Emacs executable made with GCC 3.4 run correctly both
with and without hyperthreading?

I think that is what you are saying, but let's make sure there is no
misunderstanding.

    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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs crash on SMP notebook only
  2005-11-27  0:31     ` emacs crash on SMP notebook only Richard M. Stallman
@ 2005-11-29 15:08       ` Joost Helberg
  2005-11-29 21:48         ` Richard M. Stallman
  2005-11-30 12:32         ` Lőrentey Károly
  0 siblings, 2 replies; 5+ messages in thread
From: Joost Helberg @ 2005-11-29 15:08 UTC (permalink / raw)
  Cc: emacs-devel

Richard,

>>>>> "Richard" == Richard M Stallman <rms@gnu.org> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs crash on SMP notebook only
  2005-11-29 15:08       ` Joost Helberg
@ 2005-11-29 21:48         ` Richard M. Stallman
  2005-11-30 12:32         ` Lőrentey Károly
  1 sibling, 0 replies; 5+ messages in thread
From: Richard M. Stallman @ 2005-11-29 21:48 UTC (permalink / raw)
  Cc: emacs-devel

      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.

That is a very useful clue.  If you can determine which patch it is,
we would be on the home stretch.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs crash on SMP notebook only
  2005-11-29 15:08       ` Joost Helberg
  2005-11-29 21:48         ` Richard M. Stallman
@ 2005-11-30 12:32         ` Lőrentey Károly
  2005-12-01  6:07           ` Richard M. Stallman
  1 sibling, 1 reply; 5+ messages in thread
From: Lőrentey Károly @ 2005-11-30 12:32 UTC (permalink / raw)
  Cc: emacs-devel

Joost Helberg <joost@snow.nl> writes:
>   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.

> I'm currently checking out the patches from Debian and Ubuntu, as I'm
> pretty sure these make the crashes appear.

Did you check what GCC options are used to compile Emacs in
Debian/Ubuntu?  Perhaps the target processor (-mcpu) or the
optimization level is different than what you use when you compile the
package yourself.

The last I checked, there were only harmless-looking bugfixes in the
Debian patches.

-- 
Károly

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs crash on SMP notebook only
  2005-11-30 12:32         ` Lőrentey Károly
@ 2005-12-01  6:07           ` Richard M. Stallman
  0 siblings, 0 replies; 5+ messages in thread
From: Richard M. Stallman @ 2005-12-01  6:07 UTC (permalink / raw)
  Cc: joost, emacs-devel

    The last I checked, there were only harmless-looking bugfixes in the
    Debian patches.

Harmless-looking changes can cause real trouble when there is a
compiler bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-12-01  6:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20051124.202621.1410328090.joost@snow.nl>
     [not found] ` <E1Efra9-0003Y1-9U@fencepost.gnu.org>
     [not found]   ` <20051126.095839.-1540407023.joost@snow.nl>
2005-11-27  0:31     ` emacs crash on SMP notebook only Richard M. Stallman
2005-11-29 15:08       ` Joost Helberg
2005-11-29 21:48         ` Richard M. Stallman
2005-11-30 12:32         ` Lőrentey Károly
2005-12-01  6:07           ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).