From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: emacs segfault on bootstrap Date: Sun, 29 Jan 2006 14:09:03 -0500 Message-ID: <87psma3l80.fsf@stupidchicken.com> References: <87zmljt9ra.fsf@downtown.mentenet.com> <38231.18.95.5.111.1138512672.squirrel@webmail.stupidchicken.com> <7wpsma7uyv.fsf@ece.lsu.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138561771 9010 80.91.229.2 (29 Jan 2006 19:09:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 19:09:31 +0000 (UTC) Cc: emacs-devel@gnu.org, Clemens Schueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 29 20:09:28 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3HvT-0005T0-0U for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2006 20:09:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3HyO-0000Pt-3M for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2006 14:12:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F3Hy9-0000Od-FT for emacs-devel@gnu.org; Sun, 29 Jan 2006 14:12:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F3Hy2-0000Lr-RT for emacs-devel@gnu.org; Sun, 29 Jan 2006 14:12:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3Hy2-0000LZ-CK for emacs-devel@gnu.org; Sun, 29 Jan 2006 14:12:06 -0500 Original-Received: from [18.95.5.111] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F3HwD-00029f-A0 for emacs-devel@gnu.org; Sun, 29 Jan 2006 14:10:13 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 03BD51E4329; Sun, 29 Jan 2006 14:09:04 -0500 (EST) Original-To: David Koppelman In-Reply-To: <7wpsma7uyv.fsf@ece.lsu.edu> (David Koppelman's message of "Sun, 29 Jan 2006 12:24:56 -0600") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49694 Archived-At: OK, now I can reproduce this (I had to reinstall gcc-3.4 -- the bug doesn't show up for gcc4, or for -O2 and below). I managed to get a backtrace. A Lisp_Int was passed to print_object, but, for some reason, print_object is in the Lisp_Vectorlike case statement instead. A cursory inspection did not reveal any bugs in print_object. Smells like a compiler bug. Program received signal SIGSEGV, Segmentation fault. 0x0819c3be in print_object (obj=58, printcharfun=137788457, escapeflag=1) at print.c:2009 2009 switch (XMISCTYPE (obj)) (gdb) bt #0 0x0819c3be in print_object (obj=58, printcharfun=137788457, escapeflag=1) at print.c:2009 #1 0x0819c4c5 in print_object (obj=137726760, printcharfun=137788457, escapeflag=1) at print.c:1999 #2 0x0819e989 in Fprin1 (object=137726764, printcharfun=137788457) at print.c:1295 #3 0x0819eedd in print_error_message (data=142518805, stream=137788457, context=0x2
, caller=142518437) at print.c:1097 #4 0x08112a1a in cmd_error_internal (data=142518805, context=0xbfcfffb0 "") at keyboard.c:1263 #5 0x08112bae in cmd_error (data=142518805) at keyboard.c:1200 #6 0x081856fc in internal_condition_case (bfun=0x811c420 , handlers=137832193, hfun=0x8112ad0 ) at eval.c:1455 #7 0x0810cda6 in command_loop_2 () at keyboard.c:1323 #8 0x0818564a in internal_catch (tag=2, func=0x810cd80 , arg=137788409) at eval.c:1211 #9 0x0810cc3d in recursive_edit_1 () at keyboard.c:1302 #10 0x0810cd3c in Frecursive_edit () at keyboard.c:1056 #11 0x0810bff3 in main (argc=3, argv=0xbfd00574) at emacs.c:1789 (gdb) f 1 #1 0x0819c4c5 in print_object (obj=137726760, printcharfun=137788457, escapeflag=1) at print.c:1999 1999 print_object (tem, printcharfun, escapeflag); (gdb) p tem $3 = 2 (gdb) p size $4 = 10 (gdb) p obj $5 = 137726760 (gdb) xtype Lisp_Int (gdb) xvector $6 = (struct Lisp_Vector *) 0x8358b28 0 (gdb) p $6->contents[0] $11 = 58