From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: compilation failure Date: Wed, 30 Mar 2011 07:25:09 -0400 Message-ID: References: <20110330.081322.460926700.wl@gnu.org> <4D92CE2C.9060108@cs.ucla.edu> <20110330.085238.150445611.wl@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1301484324 18544 80.91.229.12 (30 Mar 2011 11:25:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2011 11:25:24 +0000 (UTC) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: Werner LEMBERG Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 13:25:19 2011 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.69) (envelope-from ) id 1Q4tWY-0001pY-Dy for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2011 13:25:18 +0200 Original-Received: from localhost ([127.0.0.1]:52259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4tWX-0005fi-UJ for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2011 07:25:18 -0400 Original-Received: from [140.186.70.92] (port=34417 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4tWS-0005fd-8Q for emacs-devel@gnu.org; Wed, 30 Mar 2011 07:25:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4tWR-0005PG-6U for emacs-devel@gnu.org; Wed, 30 Mar 2011 07:25:12 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:50753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4tWR-0005PC-53 for emacs-devel@gnu.org; Wed, 30 Mar 2011 07:25:11 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q4tWP-0007BM-Sb; Wed, 30 Mar 2011 07:25:09 -0400 In-reply-to: <20110330.085238.150445611.wl@gnu.org> (message from Werner LEMBERG on Wed, 30 Mar 2011 08:52:38 +0200 (CEST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:137898 Archived-At: > Date: Wed, 30 Mar 2011 08:52:38 +0200 (CEST) > From: Werner LEMBERG > Cc: emacs-devel@gnu.org > > LC_ALL=C ./temacs -batch -l loadup dump > > it aborts. Calling gdb, I get the backtrace shown below. Note that > I'm doing a normal build without any additional options. > > > Werner > > > ====================================================================== > > #0 mark_object (arg=138477574) at alloc.c:5429 > #1 0x08195d4e in mark_maybe_pointer (p=) at alloc.c:4083 > #2 mark_memory (offset=0, end=0xbfffed98, start=0x841313a) at alloc.c:4133 > #3 mark_stack () at alloc.c:4381 > #4 Fgarbage_collect () at alloc.c:4966 Can you try unoptimized build (with "-O0 -ggdb -g3")? If that crashes as well, please show the backtrace from an unoptimized build, because backtraces from optimized builds cannot be trusted. Based on first glance, it crashes in GC, which means memory corruption somewhere. There are instructions in etc/DEBUG about how to debug crashes in GC, so if you can follow them, please do; since this crash is not very deep under Fgarbage_collect, I presume you will find out the bad data structure fairly easy. Failing that, please leave the crashed Emacs under GDB, so that we could ask you to show important values. If an unoptimized build does not crash, then the plot will thicken... Btw, what version of GCC do you have on Ubuntu 10.10?