From sergio.pokrovskij@gmail.com Tue Sep 29 05:15:02 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Sep 2009 12:15:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA,FVGT_m_MULTI_ODD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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 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= MIME-Version: 1.0 Received: by 10.223.76.65 with SMTP id b1mr1027508fak.44.1254226487407; Tue, 29 Sep 2009 05:14:47 -0700 (PDT) Date: Tue, 29 Sep 2009 19:14:47 +0700 Message-ID: <42f485580909290514k462228e6m1c8b2283f06a1e4d@mail.gmail.com> Subject: A flaky temacs dump failure From: Sergio Pokrovskij To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 05 14:05:00 2016 Received: (at 4585) by debbugs.gnu.org; 5 Jun 2016 18:05:00 +0000 Received: from localhost ([127.0.0.1]:55863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9cQ0-0002E5-57 for submit@debbugs.gnu.org; Sun, 05 Jun 2016 14:05:00 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:36452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9cPx-0002Dr-M1 for 4585@debbugs.gnu.org; Sun, 05 Jun 2016 14:04:58 -0400 Received: by mail-oi0-f66.google.com with SMTP id n3so5064206oig.3 for <4585@debbugs.gnu.org>; Sun, 05 Jun 2016 11:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=1CibZRzuG1FieyyJMT8X5uqJ3uN3js/s1gzc48dwsWU=; b=NzXdLvFRnfXOeVskQoNRt4kBEJSaElRdObBZ9nZC641nHT+TISj/EYv3PELI+e3xll vB+Hxp8oLJPZqoCNgOctcEkUzoZoefmrwetHS91TvE2xkPd9UMdNtEto+qRNF5bT/PIK 38wpX9eE/0jUAXC0IqlbvvPmF1mrw8ntid4ij4Ut4lQOa5rUycIKNirhuytkHJ5QOVfN zWD19RL9hrIe7mWCtF4mmv0ljm1wmtt/Tdm4GGWEhAvHo04XdTKRTd4hat1LOGG52jFA 52oqQk8p8hVaF8NLF5QBFcgzr2FLc6CteNpgyKJdqyMcgD4+Da+vbfrXE5lcR4c1u8t7 xE0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:cc; bh=1CibZRzuG1FieyyJMT8X5uqJ3uN3js/s1gzc48dwsWU=; b=Y23PivJin8y1LtIJjAYXy3H00SYMeVkvkLIbxUmbd6MFplzcY4MkoRYMvI7roeV2mY lNq/LCmYC8rlUVycMPmzXtVF+Sl68SbsxmBKCmrk/JV/7i3V9wKII2d84cvVYpoTHZZf TdJPFdzc1byr85BVOTHXhRIRD6XXvGeuIgB2T0h/f2ilLuQkz5OM//gbiKIRUDx/OZ42 45zXvPpeCw6/QXRSO+NJBzfgHaPlQmF3tNb1UEfphYSKrsOJhJJlIVRULXzeo1C1pnRP mknaDO6e2pXDn8hmSuLT0ZRztm7jdwKSaufn+6z7+PSaYTJYFlsC32J4pMiH+/oK1CJl iPxQ== X-Gm-Message-State: ALyK8tJQHe6V3vTFAt4DfFZgYjEhNa5nnG8vz/kTJO0Qw/rDmu7rCZ2BQUhsG+k830By4eHER3U4hfrpR7rg/A== X-Received: by 10.202.77.78 with SMTP id a75mr5731008oib.88.1465149891773; Sun, 05 Jun 2016 11:04:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.5.168 with HTTP; Sun, 5 Jun 2016 11:04:51 -0700 (PDT) From: Noam Postavsky Date: Sun, 5 Jun 2016 14:04:51 -0400 X-Google-Sender-Auth: Bam4nw2c1VQd7h_Fb86USZHdJcA Message-ID: Subject: A flaky temacs dump failure To: 4585@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 4585 Cc: Sergio Pokrovskij X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tag 4585 + unreproducible quit I'm not able to reproduce this on Emacs 25 pretest with valgrind. Is it fixed? In GNU Emacs 25.0.94.6 (x86_64-unknown-linux-gnu, X toolkit) of 2016-06-04 built on zony Repository revision: 7eb3bd56d0f0410d5053ee01f4b458d868682df6 Windowing system distributor 'The X.Org Foundation', version 11.0.11803000 Configured using: 'configure --cache-file=../debug-config.cache 'CFLAGS=-Og -g3 -march=native' --enable-checking --with-x-toolkit=lucid --without-toolkit-scroll-bars --with-gif=no --with-jpeg=no' Note that I have to --enable-checking so that USE_VALGRIND is #defined in alloc.c otherwise valgrind complains a lot during GC. I do get an error at the end of dumping, "a gap between BSS and heap". I guess valgrind makes such a gap to aid in finding errors, so it's not possible to successfully dump when running valgrind (not something that needs to be fixed though). ~/src/emacs/emacs-25/src$ LC_ALL=C valgrind --quiet --trace-children=yes --tool=memcheck ./temacs -batch -l loadup dump Loading loadup.el (source)... Using load-path (/home/npostavs/src/emacs/emacs-25/lisp) Loading emacs-lisp/byte-run... Loading emacs-lisp/backquote... Loading subr... Loading version... Loading widget... Loading custom... Loading emacs-lisp/map-ynp... Loading international/mule... Loading international/mule-conf... Loading env... Loading format... Loading bindings... Loading window... Loading files... Loading emacs-lisp/macroexp... Loading cus-face... Loading faces... Loading button... Loading loaddefs.el (source)... Loading emacs-lisp/nadvice... Loading emacs-lisp/cl-preloaded... Loading minibuffer... Loading abbrev... Loading simple... Loading help... Loading jka-cmpr-hook... Loading epa-hook... Loading international/mule-cmds... Loading case-table... Loading international/charprop.el (source)... Loading international/characters... Loading international/charscript... Loading composite... Loading language/chinese... Loading language/cyrillic... Loading language/indian... Loading language/sinhala... Loading language/english... Loading language/ethiopic... Loading language/european... Loading language/czech... Loading language/slovak... Loading language/romanian... Loading language/greek... Loading language/hebrew... Loading international/cp51932... Loading international/eucjp-ms... Loading language/japanese... Loading language/korean... Loading language/lao... Loading language/tai-viet... Loading language/thai... Loading language/tibetan... Loading language/vietnamese... Loading language/misc-lang... Loading language/utf-8-lang... Loading language/georgian... Loading language/khmer... Loading language/burmese... Loading language/cham... Loading indent... Loading emacs-lisp/cl-generic... Loading frame... Loading startup... Loading term/tty-colors... Loading font-core... Loading facemenu... Loading emacs-lisp/syntax... Loading font-lock... Loading jit-lock... Loading mouse... Loading scroll-bar... Loading select... Loading emacs-lisp/timer... Loading isearch... Loading rfn-eshadow... Loading menu-bar... Loading emacs-lisp/lisp... Loading textmodes/page... Loading register... Loading textmodes/paragraphs... Loading progmodes/prog-mode... Loading emacs-lisp/lisp-mode... Loading progmodes/elisp-mode... Loading textmodes/text-mode... Loading textmodes/fill... Loading newcomment... Loading replace... Loading emacs-lisp/tabulated-list... Loading buff-menu... Loading fringe... Loading emacs-lisp/regexp-opt... Loading image... Loading international/fontset... Loading dnd... Loading tool-bar... Loading dynamic-setting... Loading x-dnd... Loading term/common-win... Loading term/x-win... Loading mwheel... Loading emacs-lisp/float-sup... Loading vc/vc-hooks... Loading vc/ediff-hook... Loading uniquify... Loading electric... Loading emacs-lisp/eldoc... Loading cus-start... Loading tooltip... Loading leim/leim-list.el (source)... Finding pointers to doc strings... Finding pointers to doc strings...done Pure-hashed: 24139 strings, 3794 vectors, 38658 conses, 3701 bytecodes, 102 others Dumping under the name emacs ************************************************** Warning: Your system has a gap between BSS and the heap (55495551 bytes). This usually means that exec-shield or something similar is in effect. The dump may fail because of this. See the section about exec-shield in etc/PROBLEMS for more information. ************************************************** **20737** Program aborting because of call to malloc_get_state ==20737== at 0x4C2A96F: ??? (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==20737== by 0x4C2A996: ??? (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==20737== by 0x4C2AA06: malloc_get_state (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==20737== by 0x5CA1DD: alloc_unexec_pre (alloc.c:124) ==20737== by 0x5488C4: Fdump_emacs (emacs.c:2090) ==20737== by 0x5F08A1: eval_sub (eval.c:2169) ==20737== by 0x5F0DFC: Fprogn (eval.c:426) ==20737== by 0x5F04F1: eval_sub (eval.c:2119) ==20737== by 0x5F3E61: Fif (eval.c:383) ==20737== by 0x5F04F1: eval_sub (eval.c:2119) ==20737== by 0x62BEF4: readevalloop (lread.c:1927) ==20737== by 0x62C85C: Fload (lread.c:1335) From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 14 14:15:38 2017 Received: (at control) by debbugs.gnu.org; 14 Apr 2017 18:15:38 +0000 Received: from localhost ([127.0.0.1]:47458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cz5kv-00031I-UA for submit@debbugs.gnu.org; Fri, 14 Apr 2017 14:15:38 -0400 Received: from mail-oi0-f50.google.com ([209.85.218.50]:36485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cz5ku-000315-GK for control@debbugs.gnu.org; Fri, 14 Apr 2017 14:15:36 -0400 Received: by mail-oi0-f50.google.com with SMTP id r203so98009116oib.3 for ; Fri, 14 Apr 2017 11:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=Peyri5rBGlCOsK6D10L8rHPMYjrCW7QZNb8VuSIe7NU=; b=dgXrTyNIek/Qsj8t9eQnL81K0m3kMct5dar2MV8nKjIGhblJf0e131Iq24z4uxvMXb VonHyTTDclOVFt0RI+GY4AwPpLblmHBZwp3D3kPFQaYU+fjqc8UpN4YOoM4yb3BPHboi 4W3vIwW/x2Jq+8VvtTLKjfvE1nPUZR5u1vn4ZW3TEWS1cKiwtl/wHbyol/U24qN4YJmT Llwyglhvc/1LInNcEUDFdyAw7NKU1AolVcnH+Obir7qAdyDAiLWWkvVWMxSHyytNqrTn gQ/UgtI8PJHXGcG/jwstY7a43MezOGVHPtr1JqP8fyvCDLTIHipZAmU1chmj13kPMJ/2 XqHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=Peyri5rBGlCOsK6D10L8rHPMYjrCW7QZNb8VuSIe7NU=; b=blgQFOpLSOTW0ctNdHiyIDHRWCeiuQDmwWdJWoJUo7xDGyWpbn3smdtfCmy8snBPU9 +S2Bhj6XKNw7K5V1TCvQsRkmwZrF3BTmMFRyvIbMxPVTxg8yUuX1IueCpbBzDfEa8li4 dW58sD2G6MQYl6Nq3jo8qLF5YVBjsXkIdKmFNj9QW3DnNsTBS1M4BZH3AZewT9FZy+nt FQlgXaCQXuDU4tJJpNZLLu7r8C4gYNZEvyFoAcIolM7+3kHVikWBZcKZQHZbtrMUEMt9 8QCpp4JTkYZmiAfE30rhLDy780c+UwK3Rvos14l4cfhDncwNF2csEC+rdx05rd1piTmy AwwA== X-Gm-Message-State: AN3rC/4UTRXeoGlbx1LCyzNTDKOifdOwKEzhA8DD2rOpJtz8tDl0TuvH iqZ+0ZIP8hXcwVVzmA6Ypw1vk5Oh0/dO X-Received: by 10.157.38.248 with SMTP id i53mr5782096otd.55.1492193730777; Fri, 14 Apr 2017 11:15:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.9.178 with HTTP; Fri, 14 Apr 2017 11:15:30 -0700 (PDT) From: Noam Postavsky Date: Fri, 14 Apr 2017 14:15:30 -0400 X-Google-Sender-Auth: L-BlxJcqu5jjzgBEHw2_P-52gcg Message-ID: Subject: #4585 A flaky temacs dump failure To: GNU bug tracker automated control server Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) # unreproducible, and no response for almost a year close 4585 quit From unknown Thu Aug 14 21:49:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 13 May 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator