From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Tim Van Holder" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: current CVS build segfaults Date: Wed, 3 Oct 2007 16:20:18 +0200 Message-ID: References: <87ir5or3hb.fsf@leeloo.anubex.internal> <47035C31.8030500@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191421275 10566 80.91.229.12 (3 Oct 2007 14:21:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2007 14:21:15 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Jason Rumney" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 03 16:21:11 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Id55o-00061u-LM for ged-emacs-devel@m.gmane.org; Wed, 03 Oct 2007 16:20:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id55e-0003Mo-Bb for ged-emacs-devel@m.gmane.org; Wed, 03 Oct 2007 10:20:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id55Q-0003Gc-EK for emacs-devel@gnu.org; Wed, 03 Oct 2007 10:20:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id55O-0003Fi-An for emacs-devel@gnu.org; Wed, 03 Oct 2007 10:20:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id55N-0003FK-Ne for emacs-devel@gnu.org; Wed, 03 Oct 2007 10:20:25 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Id55N-0000J9-Dz for emacs-devel@gnu.org; Wed, 03 Oct 2007 10:20:25 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Id54X-0003nb-Ke for emacs-pretest-bug@gnu.org; Wed, 03 Oct 2007 10:19:33 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Id55I-0000Hp-Ax for emacs-pretest-bug@gnu.org; Wed, 03 Oct 2007 10:20:24 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.240]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Id55H-0000Ha-Ri for emacs-pretest-bug@gnu.org; Wed, 03 Oct 2007 10:20:20 -0400 Original-Received: by an-out-0708.google.com with SMTP id c25so541861ana for ; Wed, 03 Oct 2007 07:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Cpf1VACLAEKRrx94J9gmEsTH5C8JVMs73YqyRviKySQ=; b=bJzyih6UkycAtp5NVZUoTuwgE06d95qNUHF3pjk7DsMh6DEggFmNc+cXtnZaGEW3z7miiqu4CKtwnmrKv4M/ciJ63x+Cj3lsVMu2R2L+tAPm1ER6FtlitCa8kKs9uV0fSBuXlNBWDFrpuWPt959l4ksJBTxid4qfakPRK4Pq7Ns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=D71+H5ZknwHnK1Hln39foGJpasiAQ414FWzNg3xSdwi+xBT1QOTs5GhXiRkoS6+g3fR32W4FlG+dxcISX8ycB6ABY02hEMJhn/JZ4jSiZA54rIjBXIOAEBpum8O+yoZwGYG/Z/DETjuQtj4qYO0dmX7Ge/L4MHcy3ufhS5Lpm0o= Original-Received: by 10.142.216.9 with SMTP id o9mr1498074wfg.1191421218375; Wed, 03 Oct 2007 07:20:18 -0700 (PDT) Original-Received: by 10.142.77.18 with HTTP; Wed, 3 Oct 2007 07:20:18 -0700 (PDT) In-Reply-To: <47035C31.8030500@gnu.org> Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:80186 gmane.emacs.pretest.bugs:20062 Archived-At: On 10/3/07, Jason Rumney wrote: > Tim Van Holder wrote: > > The current CVS build segfaults during startup (with or without -q); stack trace in attachment (to avoid line break issues). > > > > (Note: the archives for this list seem to end in August, so I cannot check if this has been reported already; apologies if it is a duplicate entry) > > > > emacs-pretest-bug was merged with emacs-devel in August, so subsequent > messages are archived in emacs-devel. There is a mail from earlier today > which includes a suggested fix for this bug. The subject is "GC crash". I can confirm that this patch fixes the crash: --- frame.h 03 Oct 2007 09:20:59 +0200 1.124 +++ frame.h 03 Oct 2007 16:10:39 +0200 @@ -78,7 +78,6 @@ struct frame struct Lisp_Vector *next; /* All Lisp_Object components must come first. - Only EMACS_INT values can be intermixed with them. That ensures they are all aligned normally. */ /* Name of this frame: a Lisp string. It is used for looking up resources, @@ -152,8 +151,6 @@ struct frame For the format of the data, see extensive comments in xmenu.c. Only the X toolkit version uses this. */ Lisp_Object menu_bar_vector; - /* Number of elements in the vector that have meaningful data. */ - EMACS_INT menu_bar_items_used; /* Predicate for selecting buffers for other-buffer. */ Lisp_Object buffer_predicate; @@ -183,6 +180,9 @@ struct frame /* Cache of realized faces. */ struct face_cache *face_cache; + /* Number of elements in the vector that have meaningful data. */ + EMACS_INT menu_bar_items_used; + /* A buffer to hold the frame's name. We can't use the Lisp string's pointer (`name', above) because it might get relocated. */ char *namebuf; Note that putting anything before face_cache still triggers the segfault (because face_cache is explicitly used in alloc.c to decide the pseudovector's size), so perhaps an additional comment to that effect is needed as well.