From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Minga Newsgroups: gmane.emacs.bugs Subject: SEGV building Emacs in Garbage Collection Date: Wed, 20 Oct 2004 11:07:13 -0500 Organization: Cray Inc. Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098288498 3563 80.91.229.6 (20 Oct 2004 16:08:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2004 16:08:18 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 20 18:08:08 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CKJ0R-0004Sw-00 for ; Wed, 20 Oct 2004 18:08:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKJ7q-0008PC-EU for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Oct 2004 12:15:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CKJ7o-0008Oz-Os for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2004 12:15:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CKJ7n-0008O8-6T for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2004 12:15:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKJ7n-0008Nx-4C for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2004 12:15:43 -0400 Original-Received: from [216.168.1.22] (helo=trinity.supernews.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CKJ0K-0002wj-0V for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2004 12:08:00 -0400 Original-Received: from mail1.cray.com ([136.162.0.111]:45071) by trinity.supernews.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.42 (FreeBSD)) id 1CKJ0D-0000kC-1D for gnu-emacs-bug@moderators.isc.org; Wed, 20 Oct 2004 16:07:53 +0000 Original-Received: from relaya.us.cray.com (relaya.us.cray.com [192.168.252.144]) by mail1.cray.com (8.13.1/8.13.1/gw-1.7) with ESMTP id i9KG7JLQ027286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 20 Oct 2004 11:07:21 -0500 (CDT) Original-Received: from flapjack.cray.com (flapjack.us.cray.com [192.168.236.228]) by relaya.us.cray.com (8.13.1/8.13.1/hub-1.9) with ESMTP id i9KG7Gvx012170 for ; Wed, 20 Oct 2004 11:07:16 -0500 (CDT) Original-Received: from flapjack.cray.com (localhost.localdomain [127.0.0.1]) by flapjack.cray.com (8.12.6/8.12.6/cli-lin-1.3) with ESMTP id i9KGSK74024999 for ; Wed, 20 Oct 2004 11:28:20 -0500 Original-Received: (from news@localhost) by flapjack.cray.com (8.12.6/8.12.8/Submit) id i9KGSHaj024998 for gnu-emacs-bug@moderators.isc.org; Wed, 20 Oct 2004 11:28:17 -0500 Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 109 Original-NNTP-Posting-Host: cf-vpn-192-168-239-24.us.cray.com Original-X-Trace: flapjack.cray.com 1098289697 24995 192.168.239.24 (20 Oct 2004 16:28:17 GMT) Original-X-Complaints-To: usenet@cray.com Original-NNTP-Posting-Date: Wed, 20 Oct 2004 16:28:17 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en X-Cray-VirusStatus: clean X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9388 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9388 All, I am porting emacs 21.3 to a cray X1 system and I'm having some difficulties in building the code. The build proceeds OK with only a few warning messages about type such as CC-180 cc: WARNING File = frame.c, Line = 1875 The indicated argument is incompatible with the corresponding formal parameter. STRING_BYTES (XSTRING (f->name)))) ^ And CC-513 cc: WARNING File = frame.c, Line = 2118 A value of type "unsigned char *" cannot be assigned to an entity of type "char *". color_name = XSTRING (value)->data; But I don't believe these are significant. The problem occurs in the build when emacs tries to load lisp. This problem is reproducable by running ./temacs -batch There is a failure in mark_object after it is recutsivly called about for the 31,000th time. It makes stack tracing a bit difficult. Attempst to print the Lisp variables result in the following error. I'm not sure if that's due to an additional bug in print or if that's just because the stack is so corrupted. CC-513 cc: WARNING File = frame.c, Line = 2118 A value of type "unsigned char *" cannot be assigned to an entity of type "char *". color_name = XSTRING (value)->data; So any suggestions for getting to the bottom of this SEGV? ------------ Alan Minga, Ph.D. Sr. Presales Analyst Cray Inc. Breakpoint 1 at 0x1123364: file /ptmp/aminga/emacs-21.3/src/emacs.c, line 387. #0 0x12635ac in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4366 #1 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #2 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #3 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #4 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #5 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #6 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #7 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #8 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #9 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #10 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #11 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #12 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #13 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #14 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #15 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #16 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #17 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #18 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #19 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #20 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #21 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 ... #31747 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #31748 0x1263e28 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4628 #31749 0x1264d98 in mark_object () at /ptmp/aminga/emacs-21.3/src/alloc.c:4616 #31750 0x1261430 in Fgarbage_collect () at /ptmp/aminga/emacs-21.3/src/alloc.c:4097 #31751 0x12bdb58 in Feval () at /ptmp/aminga/emacs-21.3/src/eval.c:1912 #31752 0x131a9cc in readevalloop () at /ptmp/aminga/emacs-21.3/src/lread.c:1259 #31753 0x1317568 in Fload () at /ptmp/aminga/emacs-21.3/src/lread.c:832 #31754 0x12be32c in Feval () at /ptmp/aminga/emacs-21.3/src/eval.c:2027 #31755 0x131a9cc in readevalloop () at /ptmp/aminga/emacs-21.3/src/lread.c:1259 #31756 0x1317568 in Fload () at /ptmp/aminga/emacs-21.3/src/lread.c:832 #31757 0x12be32c in Feval () at /ptmp/aminga/emacs-21.3/src/eval.c:2027 #31758 0x1130214 in top_level_2 () at /ptmp/aminga/emacs-21.3/src/keyboard.c:1254 #31759 0x12b8e4c in internal_condition_case () at /ptmp/aminga/emacs-21.3/src/eval.c:1267 #31760 0x1130404 in top_level_1 () at /ptmp/aminga/emacs-21.3/src/keyboard.c:1262 #31761 0x12b7834 in internal_catch () at /ptmp/aminga/emacs-21.3/src/eval.c:1030 #31762 0x112fe3c in command_loop () at /ptmp/aminga/emacs-21.3/src/keyboard.c:1228 #31763 0x112e57c in recursive_edit_1 () at /ptmp/aminga/emacs-21.3/src/keyboard.c:950 #31764 0x112ec28 in Frecursive_edit () at /ptmp/aminga/emacs-21.3/src/keyboard.c:1006 #31765 0x1129a2c in main () at /ptmp/aminga/emacs-21.3/src/emacs.c:1535