bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs crashes unless using -nw option


From: Brian Parent
Subject: Emacs crashes unless using -nw option
Date: Thu, 7 Oct 2004 15:31:13 -0700 (PDT)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (sparc-sun-solaris2.8, X toolkit)
 of 2004-10-04 on ratbert.ucsd.edu
configured using `configure  -prefix=/software/common/gnu'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Emacs crashes with a segmentation fault when run in X windows mode.
Emacs runs fine with "-nw" flag.

[ratbert] [14:56]: emacs
Fatal error (11).Segmentation fault (core dumped)

Using gcc 3.3.3 and gnu ld with LDFLAGS="-z nocombreloc" fixes
the problem.  Using Sun's compilers and link editors fixes the problem.

I found a reference to the problem in the newsgroup gnu.emacs.bug:

> From: Eric S. Raymond (address@hidden)
> Subject: Finding things in the PROBLEMS file is too hard (fix included).
> Newsgroups: gnu.emacs.bug
> Date: 2004-08-16 08:10:03 PST 
...
> ** Emacs crashes with SIGSEGV in XtInitializeWidgetClass
> 
> It crashes on X, but runs fine when called with option "-nw".
> 
> This has been observed when Emacs is linked with GNU ld but without passing
> the -z nocombreloc flag.  Emacs normally knows to pass the -z nocombreloc
> flag when needed, so if you come across a situation where the flag is
> necessary but missing, please report it via M-x report-emacs-bug.
> 
> On platforms such as Solaris, you can also work around this problem by
> configuring your compiler to use the native linker instead of GNU ld.

where it asked that such problems be reported, hence this note.

To configure, I used:
(using tcsh)
mkdir /software/nonrdist/build/emacs-21.3
cd /software/nonrdist/build/emacs-21.3
setenv LDFLAGS "-R /software/common/lib"
/src/gnu/emacs-21.3/configure -prefix=/software/common/gnu 

The "-R /software/common/lib" setting is needed so temacs knows where
to find libpng.
By using

setenv LDFLAGS "-R /software/common/lib -z nocombreloc"

instead of the previous LDFLAGS setting, the problem goes away, Emacs runs
with X.  The version of X is whatever Sun distributes with Solaris 8.

Recent input:
M-x b u g ? DEL DEL DEL r e p o ? r SPC TAB RET

Recent messages:
(emacs)
For information about the GNU Project and its goals, type C-h C-p.
Making completion list... [2 times]
Loading view...done
Loading emacsbug...done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]