From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sergio Pokrovskij Newsgroups: gmane.emacs.bugs Subject: bug#4585: A flaky temacs dump failure Date: Tue, 29 Sep 2009 19:14:47 +0700 Message-ID: <42f485580909290514k462228e6m1c8b2283f06a1e4d@mail.gmail.com> Reply-To: Sergio Pokrovskij , 4585@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1254283006 31178 80.91.229.12 (30 Sep 2009 03:56:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 03:56:46 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 05:56:39 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MsqIv-0008BQ-N6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 05:56:38 +0200 Original-Received: from localhost ([127.0.0.1]:52018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsqIv-000859-Af for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 23:56:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msbnb-0000oT-Up for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 08:27:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsbnW-0000mC-8Y for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 08:27:18 -0400 Original-Received: from [199.232.76.173] (port=34553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsbnU-0000lg-Ht for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 08:27:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44234) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsbnT-0007Yl-Du for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 08:27:12 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8TCR7gU015248; Tue, 29 Sep 2009 05:27:07 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8TCK4x1014031; Tue, 29 Sep 2009 05:20:04 -0700 Resent-Date: Tue, 29 Sep 2009 05:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Sergio Pokrovskij Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 29 Sep 2009 12:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4585 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125422650213330 (code B ref -1); Tue, 29 Sep 2009 12:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 29 Sep 2009 12:15:02 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8TCF0CF013320 for ; Tue, 29 Sep 2009 05:15:01 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msbbd-000777-Bv for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 08:14:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsbbW-000768-EU for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 08:14:55 -0400 Original-Received: from [199.232.76.173] (port=58245 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsbbW-000763-0n for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 08:14:50 -0400 Original-Received: from mail-fx0-f205.google.com ([209.85.220.205]:46160) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsbbV-0005pf-2D for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 08:14:49 -0400 Original-Received: by fxm1 with SMTP id 1so4275391fxm.31 for ; Tue, 29 Sep 2009 05:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=rE2i5SSv12mu0gUXKb+OZJow+cQqjuL6WH2dAp1Y3m4=; b=WnREayfaGgzIpw0MUy0AW9UExjrz+1U6ZJja3dtcTfAf4Zn8Fz37TEZV9SiwZfkLwe UVd4dZk59uXU7QzvxJgjPZIR5Zpk00P35t9pEfUdk6ZpogTnFyHxPc2kRrDxB0hOk8zP tk4jxWbKA6cgxEpIBMMH4y+qabWZ0PCqS7cAU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZnUhuLwNFbae2chVqkxHpMnbY9T7MT+L1oVgpKOn6tA7GzmIyG51vabNf87Ry4buAg 4HYRAbCfMZs0/jD7NpP8+pusG0DzVvz3vSVOxOTZjJ8O33nXVaUzksJf5lISCkShwSS0 PLcsQsnuFRIALrD6Z39cHJ3bJIyOHzP164R8k= Original-Received: by 10.223.76.65 with SMTP id b1mr1027508fak.44.1254226487407; Tue, 29 Sep 2009 05:14:47 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 29 Sep 2009 08:27:18 -0400 X-Mailman-Approved-At: Tue, 29 Sep 2009 23:56:22 -0400 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31586 Archived-At: There is a very infrequent failure at the temacs dump stage, which seems to be due to a read from uninitialized memory. The problem is common to several versions of emacs; in this report I use v. 22.3; it is all the same in the cvs version. Sometimes it leads to a Segmentation Fault. This is a flaky (unstable) behavior, but there are two ways to reproduce the symptom: 1. Compile with Intel's icc compiler using the -check-uninit option, or 2. Use valgrind (for either gcc or icc build -- the results are similar). src/temacs produced by Intel's icc reports this: ,---- | LC_ALL=C ./temacs -batch -l loadup dump | | Run-Time Check Failure: The variable '__d1' is being used without being initialized | | make[1]: *** [emacs] Aborted `---- But I suppose you should prefer the GNU utilities. Here is the Valgrind's output for the gcc build (it has completed successfully and I am using the constructed src/emacs to prepare this report and give the build details; but after the build I am repeating the temacs dump with Valgrind): % LC_ALL=C valgrind --quiet --trace-children=yes --tool=memcheck ./temacs -batch -l loadup dump ==29515== Invalid read of size 4 ==29515== at 0x80BA240: reset_buffer_local_variables (buffer.c:748) ==29515== by 0x80C00FA: Fget_buffer_create (buffer.c:413) ==29515== by 0x805F239: ensure_echo_area_buffers (xdisp.c:7956) ==29515== by 0x805F2D2: with_echo_area_buffer (xdisp.c:7992) ==29515== by 0x805F6AB: current_message (xdisp.c:8484) ==29515== by 0x805F6DB: push_message (xdisp.c:8519) ==29515== by 0x80F2FD5: Fgarbage_collect (alloc.c:5123) ==29515== by 0x810769D: Ffuncall (eval.c:2927) ==29515== by 0x8107B88: call2 (eval.c:2800) ==29515== by 0x8107C47: Fsignal (eval.c:1652) ==29515== by 0x8107E27: xsignal (eval.c:1725) ==29515== by 0x810830F: xsignal1 (eval.c:1742) ==29515== Address 0x618 is not stack'd, malloc'd or (recently) free'd ==29515== ==29515== Process terminating with default action of signal 11 (SIGSEGV) ==29515== Access not within mapped region at address 0x618 ==29515== at 0x80BA240: reset_buffer_local_variables (buffer.c:748) ==29515== by 0x80C00FA: Fget_buffer_create (buffer.c:413) ==29515== by 0x805F239: ensure_echo_area_buffers (xdisp.c:7956) ==29515== by 0x805F2D2: with_echo_area_buffer (xdisp.c:7992) ==29515== by 0x805F6AB: current_message (xdisp.c:8484) ==29515== by 0x805F6DB: push_message (xdisp.c:8519) ==29515== by 0x80F2FD5: Fgarbage_collect (alloc.c:5123) ==29515== by 0x810769D: Ffuncall (eval.c:2927) ==29515== by 0x8107B88: call2 (eval.c:2800) ==29515== by 0x8107C47: Fsignal (eval.c:1652) ==29515== by 0x8107E27: xsignal (eval.c:1725) ==29515== by 0x810830F: xsignal1 (eval.c:1742) Segmentation fault % ============================================= In GNU Emacs 22.3.1 (i686-pc-linux-gnu) of 2009-09-29 on nsticlxlqa1 configured using `configure '--without-x'' Important settings: value of $LC_ALL: en_US.iso885915 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: en_US.UTF-8 locale-coding-system: iso-8859-15 default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: encoded-kbd-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: ESC x r e p o r t - e m a c s - b u g RET Recent messages: ("./emacs" "-q") Loading encoded-kb...done For information about GNU Emacs and the GNU system, type C-h C-a. Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done -- Sergio