unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs crashes unless using -nw option
@ 2004-10-07 22:31 Brian Parent
  2004-10-09 15:44 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Parent @ 2004-10-07 22:31 UTC (permalink / raw)


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 bug-gnu-emacs@gnu.org 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 (esr@thyrsus.com)
> 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

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

end of thread, other threads:[~2004-10-15  0:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-07 22:31 Emacs crashes unless using -nw option Brian Parent
2004-10-09 15:44 ` Richard Stallman
2004-10-13 16:31   ` Brian Parent
2004-10-15  0:26     ` Richard 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).