From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Philippe Troin Newsgroups: gmane.emacs.bugs Subject: Emacs segfaults in __do_global_dtors_aux on SunOS 2.7, temacs works ok. Date: Wed, 21 May 2003 18:55:55 -0700 Organization: Posted via Supernews, http://www.supernews.com Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053570177 31319 80.91.224.249 (22 May 2003 02:22:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 02:22:57 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 22 04:22:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IfiG-00085q-00 for ; Thu, 22 May 2003 04:21:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IfgV-0006IH-Gc for gnu-bug-gnu-emacs@m.gmane.org; Wed, 21 May 2003 22:19:59 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19IfbY-0004Gb-2B for bug-gnu-emacs@gnu.org; Wed, 21 May 2003 22:14:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19IfWu-0002h0-6H for bug-gnu-emacs@gnu.org; Wed, 21 May 2003 22:10:35 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IfQB-0000JB-V6 for bug-gnu-emacs@gnu.org; Wed, 21 May 2003 22:03:07 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.20) id 19IfQB-00089N-Qk for gnu-emacs-bug@prep.ai.mit.edu; Wed, 21 May 2003 22:03:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19IfOO-0008Hy-TE for gnu-emacs-bug@prep.ai.mit.edu; Wed, 21 May 2003 22:01:48 -0400 Original-Received: from trinity.ranger.supernews.net ([216.168.1.22] helo=trinity.supernews.net) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IfJI-0006jN-51 for gnu-emacs-bug@prep.ai.mit.edu; Wed, 21 May 2003 21:56:00 -0400 Original-Received: from pa-01.ranger.supernews.net ([216.168.1.34] helo=pa-01.supernews.net) by trinity.supernews.net with esmtp (Exim 4.12) id 19IfJG-000Fwj-00 for gnu-emacs-bug@prep.ai.mit.edu; Thu, 22 May 2003 01:55:58 +0000 Original-Received: (from news@localhost) by pa-01.supernews.net (8.12.6/8.12.5/Submit) id h4M1twKX081715 for gnu-emacs-bug@prep.ai.mit.edu; Thu, 22 May 2003 01:55:58 GMT (envelope-from nntp-bounce@supernews.net) Original-To: gnu-emacs-bug@prep.ai.mit.edu Original-Path: corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.bug User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3) Gecko/20030313 X-Accept-Language: en-us, en, fr-fr, fr Original-X-Complaints-To: abuse@supernews.com Original-Lines: 102 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5131 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5131 [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 , handlers=271329500, hfun=0xd3c9c ) at eval.c:1267 #14 0xd3fc8 in command_loop_2 () at keyboard.c:1245 #15 0x135720 in internal_catch (tag=271281828, func=0xd3fa4 , 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.