From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Maisonobe Newsgroups: gmane.emacs.bugs Subject: Re: emacs dumps core on exit under solaris 2.8 Date: Fri, 08 Nov 2002 13:54:17 +0100 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3DCBB3F9.289CEEAD@c-s.fr> References: <3DC923DD.494B13EC@c-s.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------3A6FF5B1D1E378D872559993" X-Trace: main.gmane.org 1036764994 27921 80.91.224.249 (8 Nov 2002 14:16:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2002 14:16:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org 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 18A9w0-0007GB-00 for ; Fri, 08 Nov 2002 15:16:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18A9wL-0008Dx-00; Fri, 08 Nov 2002 09:16:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18A8iy-0000Q5-00 for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2002 07:59:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18A8gC-0007KW-00 for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2002 07:56:13 -0500 Original-Received: from pegase1.cie-signaux.fr ([194.2.40.7]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18A8gA-0007G3-00; Fri, 08 Nov 2002 07:56:06 -0500 Original-Received: from pegase0.si.c-s.fr by pegase1.cie-signaux.fr with ESMTP id NAA28878; Fri, 8 Nov 2002 13:59:04 +0100 (MET) Original-Received: from pegase0.si.c-s.fr by pegase0.si.c-s.fr with ESMTP id NAA20634; Fri, 8 Nov 2002 13:55:12 +0100 (MET) Original-Received: from hermes8.si.c-s.fr by pegase0.si.c-s.fr with ESMTP id NAA20630; Fri, 8 Nov 2002 13:55:12 +0100 (MET) Original-Received: from c-s.fr ([172.17.52.68]) by hermes8.si.c-s.fr (Netscape Messaging Server 3.62) with ESMTP id 498; Fri, 8 Nov 2002 13:45:24 +0100 X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en Original-To: rms@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3847 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3847 This is a multi-part message in MIME format. --------------3A6FF5B1D1E378D872559993 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Richard Stallman wrote: > If you put a breakpoint at the start of __do_global_dtors_aux and then > step with si to see what functions it calls, you may be able to tell > which library it is. Thanks a lot. I tried this, but it seems the segmentation violation comes from within __do_global_dtors_aux itself. You will find the gdb session attached, with display/i $pc on, in order to get the instruction at each step. The o1 register is null at this time, so it explains the violation. I don't know what is in this register and why it is null. So I have tried to remove some libraries using the configure option. All works well when I remove libpng with the --without-png flag. I tried to recompile both zlib 1.1.4 and libpng 1.2.5, just to make sure everything was compiled with the same version of the gcc compiler, but still had problems. So I have dropped png support for now, and compile emacs using --with-xim=no and --without-png. Thanks for your help. Luc --------------3A6FF5B1D1E378D872559993 Content-Type: text/plain; charset=us-ascii; name="gdb-session" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdb-session" (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /usr/local/src/redhat/BUILD/emacs-21.2/src/emacs -q -batch Breakpoint 3, 0x00044468 in __do_global_dtors_aux () 1: x/i $pc 0x44468 <__do_global_dtors_aux+4>: sethi %hi(0), %l1 (gdb) stepi 0x0004446c in __do_global_dtors_aux () 1: x/i $pc 0x4446c <__do_global_dtors_aux+8>: sethi %hi(0x193000), %l7 (gdb) 0x00044470 in __do_global_dtors_aux () 1: x/i $pc 0x44470 <__do_global_dtors_aux+12>: call 0x4445c <_start+116> (gdb) 0x00044474 in __do_global_dtors_aux () 1: x/i $pc 0x44474 <__do_global_dtors_aux+16>: add %l7, 0x1c8, %l7 ! 0x1931c8 (gdb) 0x0004445c in _start () 1: x/i $pc 0x4445c <_start+116>: retl (gdb) 0x00044460 in _start () 1: x/i $pc 0x44460 <_start+120>: add %o7, %l7, %l7 (gdb) 0x00044478 in __do_global_dtors_aux () 1: x/i $pc 0x44478 <__do_global_dtors_aux+20>: or %l1, 0xc, %o0 (gdb) 0x0004447c in __do_global_dtors_aux () 1: x/i $pc 0x4447c <__do_global_dtors_aux+24>: ld [ %l7 + %o0 ], %o1 (gdb) 0x00044480 in __do_global_dtors_aux () 1: x/i $pc 0x44480 <__do_global_dtors_aux+28>: ldub [ %o1 ], %o2 (gdb) 0x00044484 in __do_global_dtors_aux () 1: x/i $pc 0x44484 <__do_global_dtors_aux+32>: cmp %o2, 0 (gdb) 0x00044488 in __do_global_dtors_aux () 1: x/i $pc 0x44488 <__do_global_dtors_aux+36>: bne 0x44508 <__do_global_dtors_aux+164> (gdb) 0x0004448c in __do_global_dtors_aux () 1: x/i $pc 0x4448c <__do_global_dtors_aux+40>: sethi %hi(0), %o0 (gdb) 0x00044490 in __do_global_dtors_aux () 1: x/i $pc 0x44490 <__do_global_dtors_aux+44>: or %o0, 0x10, %o0 ! 0x10 (gdb) 0x00044494 in __do_global_dtors_aux () 1: x/i $pc 0x44494 <__do_global_dtors_aux+48>: ld [ %l7 + %o0 ], %o0 (gdb) 0x00044498 in __do_global_dtors_aux () 1: x/i $pc 0x44498 <__do_global_dtors_aux+52>: ld [ %o0 ], %o1 (gdb) 0x0004449c in __do_global_dtors_aux () 1: x/i $pc 0x4449c <__do_global_dtors_aux+56>: ld [ %o1 ], %o1 (gdb) info reg g0 0x0 0 g1 0xfec95e98 -20357480 g2 0x0 0 g3 0x0 0 g4 0x0 0 g5 0x0 0 g6 0x0 0 g7 0x0 0 o0 0x28fc44 2686020 o1 0x0 0 o2 0x0 0 o3 0xff3e2668 -12704152 o4 0x0 0 o5 0x0 0 sp 0xffbee820 4290701344 o7 0x44470 279664 l0 0x1 1 l1 0x0 0 l2 0xfec9bde8 -20333080 l3 0xfecba4d4 -20208428 l4 0xfec1b8d4 -20858668 l5 0x0 0 l6 0xff3e3c40 -12698560 l7 0x1d7638 1930808 i0 0xfec1b8d4 -20858668 i1 0x1b6 438 i2 0xfeff1904 -16836348 i3 0x0 0 i4 0xff3e2668 -12704152 i5 0xfec0eb08 -20911352 fp 0xffbee890 4290701456 i7 0x1b0758 1771352 y 0x0 0 psr 0xfe401007 -29356025 icc:-Z--, pil:0, s:0, ps:0, et:0, cwp:7 wim 0x0 0 tbr 0x0 0 pc 0x4449c 279708 npc 0x444a0 279712 fpsr 0x0 0 rd:N, tem:0, ns:0, ver:0, ftt:0, qne:0, fcc:=, aexc:0, cexc:0 cpsr 0x0 0 (gdb) stepi Program received signal SIGSEGV, Segmentation fault. 0x0004449c in __do_global_dtors_aux () 1: x/i $pc 0x4449c <__do_global_dtors_aux+56>: ld [ %o1 ], %o1 (gdb) --------------3A6FF5B1D1E378D872559993--