From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Judah Milgram Newsgroups: gmane.emacs.bugs Subject: 21.2 on Irix 6.5 segfault on startup; patch. Date: Fri, 04 Oct 2002 17:11:27 -0400 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200210042111.g94LBRJ07393@convair.dt.navy.mil> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1033766155 19137 127.0.0.1 (4 Oct 2002 21:15:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2002 21:15:55 +0000 (UTC) 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 17xZnb-0004yA-00 for ; Fri, 04 Oct 2002 23:15:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17xZms-000557-00; Fri, 04 Oct 2002 17:15:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17xZlx-0003al-00 for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2002 17:14:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17xZlv-0003XP-00 for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2002 17:14:08 -0400 Original-Received: from fw1.dt.navy.mil ([192.5.27.135]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17xZk2-0000ff-00 for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2002 17:12:10 -0400 Original-Received: by FW1.dt.navy.mil; id RAA06822; Fri, 4 Oct 2002 17:12:09 -0400 (EDT) Original-Received: from unknown(130.46.225.16) by FW1.dt.navy.mil via smap (V5.5) id xma006749; Fri, 4 Oct 02 17:11:59 -0400 Original-Received: from NAVGATE.dt.navy.mil (navgate.dt.navy.mil [130.46.225.15]) by smtprelay.dt.navy.mil (8.9.3/8.9.3) with SMTP id RAA24607 for ; Fri, 4 Oct 2002 17:11:58 -0400 Original-Received: from crbeex01.nswccd.navy.mil ([130.46.225.84]) by NAVGATE.dt.navy.mil (NAVGW 2.5.2.17) with SMTP id M2002100417115812126 for ; Fri, 04 Oct 2002 17:11:58 -0400 Original-Received: from convair.dt.navy.mil ([130.46.162.35]) by crbeex01.nswccd.navy.mil with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id T820VBXA; Fri, 4 Oct 2002 17:11:58 -0400 Original-Received: from convair.dt.navy.mil (localhost [127.0.0.1]) by convair.dt.navy.mil (8.11.6/8.9.3) with ESMTP id g94LBRJ07393 for ; Fri, 4 Oct 2002 17:11:27 -0400 Original-To: bug-gnu-emacs@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:3641 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3641 X-Mailer: mh-e 5.0.90; nmh 1.0.4; Emacs 20.4 In GNU Emacs 21.2.15 (mips-sgi-irix6.5, X toolkit) of 2002-10-04 configured using `configure --prefix=/usr/local/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: C locale-coding-system: nil default-enable-multibyte-characters: t Compiled with gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) Problem seen with binutils 2.13, then I completely uninstalled binutils and re-compiled gcc (thus configuring to use system ld etc.) and rebuilt emacs. No change. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Seg fault & core dump on startup. Believe it or not, the following patch fixes things. Don't ask me why. *** gmalloc.c.dist Sun Nov 4 12:35:43 2001 --- gmalloc.c Fri Oct 4 17:03:41 2002 *************** *** 987,992 **** --- 987,994 ---- = FINAL_FREE_BLOCKS + 2 * __malloc_extra_blocks; register struct alignlist *l; + char gronked[7]="gronked"; /* On Irix 6.5, prevents seg + fault on startup. Go figure. */ if (ptr == NULL) return; - Judah Milgram milgramjh@nswccd.navy.mil