Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Emacs hangs
@ 1998-06-03 15:00 Peter S Galbraith
  1998-06-03 15:51 ` Michael Larocque
  1998-06-03 23:06 ` Quant-X Alpha Linux Support
  0 siblings, 2 replies; 5+ messages in thread
From: Peter S Galbraith @ 1998-06-03 15:00 UTC (permalink / raw)
  To: axp-list; +Cc: Peter S Galbraith

I'm using Linux 2.0.33, RedHat 5.0, on two alpha boxes (recently acquired,
partly on my advice).  GNU Emacs 20.2 hangs quite often and I have to kill
it to continue (it won't respond to C-g).

Is this a known problem?  Should I try recompiling Emacs from scratch?
Any advice?  Any help appreciated!

I'm an experienced i386 Linux user (SLS, Slackware, and currently Debian),
but have very little experience with RedHat and alpha.
-- 
Peter Galbraith, research scientist          <GalbraithP@dfo-mpo.gc.ca>
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546


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

* Re: Emacs hangs
  1998-06-03 15:00 Emacs hangs Peter S Galbraith
@ 1998-06-03 15:51 ` Michael Larocque
  1998-06-03 15:59   ` Stephen Williams
  1998-06-03 23:06 ` Quant-X Alpha Linux Support
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Larocque @ 1998-06-03 15:51 UTC (permalink / raw)
  To: axp-list

On Wed, 3 Jun 1998, Peter S Galbraith wrote:

> I'm using Linux 2.0.33, RedHat 5.0, on two alpha boxes (recently acquired,
> partly on my advice).  GNU Emacs 20.2 hangs quite often and I have to kill
> it to continue (it won't respond to C-g).
> 
> Is this a known problem?  Should I try recompiling Emacs from scratch?
> Any advice?  Any help appreciated!
> 

Sorry, I can't help with your problem directly, _but_...

_If_ you're interested in XEmacs, someone posted a url for binary rpms
of XEmacs 20.4 a month or two ago. I seem to have lost it, but I'm
sure you can find it in the list archives. IIRC, it was a .de address.
I've been using it on 5.0 and have run into no problems.

Oh, and I just checked, and there appears to be 5.0 binaries of 20.4
at ftp.xemacs.org (and its mirrors) - I haven't tried those though.


Mike

<*> Michael Larocque - mlarocque@shaw.wave.ca <*>
An idle CPU is a terrible thing to waste - www.distributed.net


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

* Re: Emacs hangs
  1998-06-03 15:51 ` Michael Larocque
@ 1998-06-03 15:59   ` Stephen Williams
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Williams @ 1998-06-03 15:59 UTC (permalink / raw)
  To: axp-list


On Wed, 3 Jun 1998, Peter S Galbraith wrote:

> I'm using Linux 2.0.33, RedHat 5.0, on two alpha boxes (recently acquired,
> partly on my advice).  GNU Emacs 20.2 hangs quite often and I have to kill
> it to continue (it won't respond to C-g).

Apply various updates from the redhat site, especially those pertaining
to glibc. These cured it for me.

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



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

* Re: Emacs hangs
  1998-06-03 15:00 Emacs hangs Peter S Galbraith
  1998-06-03 15:51 ` Michael Larocque
@ 1998-06-03 23:06 ` Quant-X Alpha Linux Support
  1998-06-03 23:29   ` Michal Jaegermann
  1 sibling, 1 reply; 5+ messages in thread
From: Quant-X Alpha Linux Support @ 1998-06-03 23:06 UTC (permalink / raw)
  To: axp-list

Hi Peter !
 
> I'm using Linux 2.0.33, RedHat 5.0, on two alpha boxes (recently acquired,
> partly on my advice).  GNU Emacs 20.2 hangs quite often and I have to kill
> it to continue (it won't respond to C-g).
> 
> Is this a known problem?  Should I try recompiling Emacs from scratch?
> Any advice?  Any help appreciated!

I think it's caused by the select(...) bug.
Recompile doesn't help because "/usr/include/gnu/types.h" has a
broken __FDMASK definition.
Update glibc (glibc-devel) or change 
/usr/include/gnu/types.h
from
#define __FDMASK(d)     (1 << ((d) % __NFDBITS))
to 
#define __FDMASK(d)     (1UL << ((d) % __NFDBITS))

and then recompile.

-- 

Quant-X Service &                         Ph:  (+43) 4212 6004-0
Consulting Ges.m.b.H.                     Fax: (+43) 4212 600420
http://www.quant-x.com                    Email: support@quant-x.com


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

* Re: Emacs hangs
  1998-06-03 23:06 ` Quant-X Alpha Linux Support
@ 1998-06-03 23:29   ` Michal Jaegermann
  0 siblings, 0 replies; 5+ messages in thread
From: Michal Jaegermann @ 1998-06-03 23:29 UTC (permalink / raw)
  To: support; +Cc: axp-list

> 
> I think it's caused by the select(...) bug.

Most likely, although this seems to be a bit more complicated.
emacs still is not totally healthy but usable and this was definitely
not the case with the original 5.0 distribution.

> Recompile doesn't help because "/usr/include/gnu/types.h" has a
> broken __FDMASK definition.

This was true for some early versions.

> /usr/include/gnu/types.h
> from
> #define __FDMASK(d)     (1 << ((d) % __NFDBITS))

For quite a long while, i.e. through a number of updates, this
definition is

#define __FDMASK(d)     ((__fd_mask) 1 << ((d) % __NFDBITS))

which is correct but indeed requires updates to glibc-devel before
recompilation.  Another critical macro defintions, corrected in
updates of glibc-devel, are in <selectbits.h>

> to 
> #define __FDMASK(d)     (1UL << ((d) % __NFDBITS))
> 
> and then recompile.

so this will be not good enough.

You may also want to add '(setq cannot-suspend t)' if you are using
emacs on a console.  It is a bit of a pain as on C-z it spawns then a
new shell instead of suspending emacs and going back to the original
one; otherwise some other bug hits and emacs starts to interpret all
keyboard input "raw".  Not a very pretty sight.

  Michal

p.s. I did not try to recompile emacs with the current glibc-2.0.7-13
(and its headers).  Maybe I should.  Anybody knows for sure?


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

end of thread, other threads:[~1998-06-03 23:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-03 15:00 Emacs hangs Peter S Galbraith
1998-06-03 15:51 ` Michael Larocque
1998-06-03 15:59   ` Stephen Williams
1998-06-03 23:06 ` Quant-X Alpha Linux Support
1998-06-03 23:29   ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox