all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs 21.4a segmentation fault on startup (gcc 4.0, Solaris 8)
@ 2005-05-16 18:21 Andrew Koenig
  2005-05-18 22:44 ` Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Koenig @ 2005-05-16 18:21 UTC (permalink / raw)


I just installed gcc 4.0 on my Solaris 8 machine and rebuilt GNU emacs 21.4; 
the result is a segmentation fault on startup.

The first few lines of the backtrace (abbreviated):

XtInitializeWidgetClass from /usr/lib/libXt.so.4
_XtCreateWidget from /usr/lib/libXt.so.4
XtCreateWidget from /usr/lib/libXt.so.4
Fx_create_frame at xfns.c:3644
Ffuncall at eval.c:2659
Fbyte_code at bytecode.c:716
funcall_lambda at eval.c:2851
....

If I compiler under gcc 2.95, or run it as emacs -nw, it appears to work.

Any suggestions?

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

* Re: Emacs 21.4a segmentation fault on startup (gcc 4.0, Solaris 8)
  2005-05-16 18:21 Emacs 21.4a segmentation fault on startup (gcc 4.0, Solaris 8) Andrew Koenig
@ 2005-05-18 22:44 ` Richard Stallman
  2005-05-19 14:36   ` Kevin Rodgers
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2005-05-18 22:44 UTC (permalink / raw)
  Cc: gnu-emacs-bug

This could be a GCC bug, or it could be something in Emacs that is not
well-defined C.  You could look at the compiled code for the call to
XtCreateWidget and see if it looks correct.

You could also try recompiling just xterm.c with the old GCC version
and see if that makes everything work.  If so, you could then try
splitting that file in various ways and compiling half with each
GCC version.  This way maybe you could determine which function
the problem is in.

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

* Re: Emacs 21.4a segmentation fault on startup (gcc 4.0, Solaris 8)
  2005-05-18 22:44 ` Richard Stallman
@ 2005-05-19 14:36   ` Kevin Rodgers
  2005-05-19 19:00     ` Eli Zaretskii
  2005-05-20 21:56     ` Richard Stallman
  0 siblings, 2 replies; 6+ messages in thread
From: Kevin Rodgers @ 2005-05-19 14:36 UTC (permalink / raw)


Richard Stallman wrote:
 > This could be a GCC bug, or it could be something in Emacs that is not
 > well-defined C.

The latter possibility could be eliminated from consideration
permanently if gcc -Wall were the default, and the code was tuned up to
eliminate (or at least minimize) gcc's warnings.

-- 
Kevin Rodgers

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

* Re: Emacs 21.4a segmentation fault on startup (gcc 4.0, Solaris 8)
  2005-05-19 14:36   ` Kevin Rodgers
@ 2005-05-19 19:00     ` Eli Zaretskii
  2005-05-20 21:56     ` Richard Stallman
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2005-05-19 19:00 UTC (permalink / raw)
  Cc: bug-gnu-emacs

> From: Kevin Rodgers <ihs_4664@yahoo.com>
> Date: Thu, 19 May 2005 08:36:10 -0600
> 
> Richard Stallman wrote:
>  > This could be a GCC bug, or it could be something in Emacs that is not
>  > well-defined C.
> 
> The latter possibility could be eliminated from consideration
> permanently if gcc -Wall were the default, and the code was tuned up to
> eliminate (or at least minimize) gcc's warnings.

We would probably do that if only "gcc -Wall" in its latest versions
did not whine about too many perfectly valid usages of C.

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

* Re: Emacs 21.4a segmentation fault on startup (gcc 4.0, Solaris 8)
  2005-05-19 14:36   ` Kevin Rodgers
  2005-05-19 19:00     ` Eli Zaretskii
@ 2005-05-20 21:56     ` Richard Stallman
  2005-05-21  9:48       ` Eli Zaretskii
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2005-05-20 21:56 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    The latter possibility could be eliminated from consideration
    permanently if gcc -Wall were the default, and the code was tuned up to
    eliminate (or at least minimize) gcc's warnings.

-Wall warns about a lot of things that are not wrong, and causes
more trouble than it is worth.  I agreed to implement -Wall on the
explicit understanding that we would NOT adopt the goal to change our
code so that -Wall would not warn.

If there is a specific kind of warning that would be useful here,
there is probably an -f option to enable that specific kind of
warning.  That might be a good thing to use for Emacs.

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

* Re: Emacs 21.4a segmentation fault on startup (gcc 4.0, Solaris 8)
  2005-05-20 21:56     ` Richard Stallman
@ 2005-05-21  9:48       ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2005-05-21  9:48 UTC (permalink / raw)
  Cc: bug-gnu-emacs

> From: Richard Stallman <rms@gnu.org>
> Date: Fri, 20 May 2005 17:56:24 -0400
> Cc: bug-gnu-emacs@gnu.org
> 
> -Wall warns about a lot of things that are not wrong, and causes
> more trouble than it is worth.  I agreed to implement -Wall on the
> explicit understanding that we would NOT adopt the goal to change our
> code so that -Wall would not warn.

Except that latest versions of GCC by default enable more and more
warnings that previously belonged to -Wall.  Warnings such as these
for example:

    regex.c: In function `re_search_2':
    regex.c:4231: warning: comparison is always true due to limited range of data type

This warning is a terrible nuisance in a complex macro, for example.

> If there is a specific kind of warning that would be useful here,
> there is probably an -f option to enable that specific kind of
> warning.  That might be a good thing to use for Emacs.

Agreed.

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

end of thread, other threads:[~2005-05-21  9:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-16 18:21 Emacs 21.4a segmentation fault on startup (gcc 4.0, Solaris 8) Andrew Koenig
2005-05-18 22:44 ` Richard Stallman
2005-05-19 14:36   ` Kevin Rodgers
2005-05-19 19:00     ` Eli Zaretskii
2005-05-20 21:56     ` Richard Stallman
2005-05-21  9:48       ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.