unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philippe Troin <philt@no.spam.synopsys.com>
Subject: Emacs segfaults in __do_global_dtors_aux on SunOS 2.7, temacs works ok.
Date: Wed, 21 May 2003 18:55:55 -0700	[thread overview]
Message-ID: <vcobhbt4nko150@corp.supernews.com> (raw)

[meta: remove the no.spam domain from my email address to reply]

% uname -a
SunOS e3512 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-Enterprise Solaris
% gcc -v
Reading specs from 
/remote/dtg217/philt/usr/local-2003-05-05/lib.sun4u-solaris-5.7/gcc-lib/sparc-sun-solaris2.7/3.3/specs
Configured with: ./configure --enable-shared --disable-static 
--disable-nls --without-included-gettext 
--prefix=/remote/dtg217/philt/usr/local-2003-05-05 
--bindir=/remote/dtg217/philt/usr/local-2003-05-05/bin.sun4u-solaris-5.7 
--libdir=/remote/dtg217/philt/usr/local-2003-05-05/lib.sun4u-solaris-5.7 
--sbindir=/remote/dtg217/philt/usr/local-2003-05-05/sbin.sun4u-solaris-5.7 
--libexecdir=/remote/dtg217/philt/usr/local-2003-05-05/libexec.sun4u-solaris-5.7 
--enable-nls --without-x --without-included-gettext --disable-checking 
--enable-languages=c++ --with-gnu-as 
--with-as=/remote/dtg217/philt/usr/local-2003-05-05/bin.sun4u-solaris-5.7/as 
--with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.3
% ./configure
...
Configured for `sparc-sun-solaris2.7'.

   Where should the build process find the source code? 
/remote/dtg217/philt/usr/local-2003-05-05/stow/emacs-21.3/src/emacs-21.3
   What operating system and machine description files should Emacs use?
         `s/sol2-5.h' and `m/sparc.h'
   What compiler should emacs be built with?               gcc -O2 -g
   Should Emacs use the GNU version of malloc?             yes
   Should Emacs use a relocating allocator for buffers?    yes
   Should Emacs use mmap(2) for buffer allocation?         no
   What window system should Emacs use?                    x11
   What toolkit should Emacs use?                          LUCID
   Where do we find X Windows header files?                Standard dirs
   Where do we find X Windows libraries?                   Standard dirs
   Does Emacs use -lXaw3d?                                 no
   Does Emacs use -lXpm?                                   no
   Does Emacs use -ljpeg?                                  no
   Does Emacs use -ltiff?                                  no
   Does Emacs use -lungif?                                 no
   Does Emacs use -lpng?                                   no
   Does Emacs use X toolkit scroll bars?                   no
...
% make
...
Converting 
/remote/dtg217/philt/usr/local-2003-05-05/stow/emacs-21.3/src/emacs-21.3/leim/CXTERM-DIC/ZOZY.tit 
to quail-package...
Decoding with coding system cn-big5...
Processing header part...
Formatting translation rules...
Byte-compile the created files by:
   % emacs -batch -f batch-byte-compile XXX.el
Fatal error (11).Segmentation Fault - core dumped
...

If I run temacs, everything's fine.
If I run emacs, everything's fine until I exit with M-x kill-emacs: I 
then get a SIGSEGV.

A gdb backtrace indicates:

Program received signal SIGSEGV, Segmentation fault.
0x420fc in __do_global_dtors_aux ()
(gdb) bt
#0  0x420fc in __do_global_dtors_aux ()
#1  0x189c40 in _fini ()
#2  0xfef203e0 in _exithandle ()
#3  0xfef9a194 in exit ()
#4  0xd2b64 in Fkill_emacs (arg=271207428) at emacs.c:1830
#5  0x137e90 in Ffuncall (nargs=1, args=0xffbee9d4) at eval.c:2659
#6  0x1331c0 in Fcall_interactively (function=271397324,
     record_flag=271207476, keys=1076592640) at callint.c:797
#7  0xe01d4 in Fcommand_execute (cmd=271397324, record_flag=271207476,
     keys=271207428, special=2732032) at keyboard.c:9250
#8  0xe0584 in Fexecute_extended_command (prefixarg=271207428)
     at keyboard.c:9356
#9  0x137e90 in Ffuncall (nargs=1, args=0xffbeed44) at eval.c:2659
#10 0x1331c0 in Fcall_interactively (function=271281948,
     record_flag=271207428, keys=1076592640) at callint.c:797
#11 0xe01d4 in Fcommand_execute (cmd=271281948, record_flag=271207428,
     keys=271207428, special=2732032) at keyboard.c:9250
#12 0xd45cc in command_loop_1 () at keyboard.c:1661
#13 0x135bc4 in internal_condition_case (bfun=0xd4154 <command_loop_1>,
     handlers=271329500, hfun=0xd3c9c <cmd_error>) at eval.c:1267
#14 0xd3fc8 in command_loop_2 () at keyboard.c:1245
#15 0x135720 in internal_catch (tag=271281828, func=0xd3fa4 
<command_loop_2>, arg=271207428) at eval.c:1030
#16 0xd3f54 in command_loop () at keyboard.c:1224
#17 0xd39e4 in recursive_edit_1 () at keyboard.c:950
#18 0xd3b48 in Frecursive_edit () at keyboard.c:1006
#19 0xd26d4 in main (argc=0, argv=0xffbef494, envp=0xffbef4a4) at 
emacs.c:1547

Note that the gcc that was used in gcc 3.3, using GNU as 2.13.2.1 and 
the system linker (/usr/ccs/bin/ld).
Compiling with gcc 2.95.3 works ok, as well as gcc 3.2.2 (both using 
/usr/ccs/bin/as as the assembler).

Phil.

             reply	other threads:[~2003-05-22  1:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-22  1:55 Philippe Troin [this message]
2003-05-23 12:05 ` Emacs segfaults in __do_global_dtors_aux on SunOS 2.7, temacsworks ok Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vcobhbt4nko150@corp.supernews.com \
    --to=philt@no.spam.synopsys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).