From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16901: 24.3.50; emacs_backtrace.txt Date: Sat, 01 Mar 2014 10:47:14 +0200 Message-ID: <83k3ceuwz1.fsf__33658.928940031$1393663709$gmane$org@gnu.org> References: <5d9f431d-d0c3-4cfa-b9e5-07cdf6718d5a@default> <83mwhbwm9j.fsf@gnu.org> <53107F45.3060502@yandex.ru> <83d2i7wbyc.fsf@gnu.org> <5310AEEE.4070005@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1393663695 23455 80.91.229.3 (1 Mar 2014 08:48:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2014 08:48:15 +0000 (UTC) Cc: 16901@debbugs.gnu.org, lekktu@gmail.com, emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 01 09:48:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WJfah-00085F-Ng for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 09:48:15 +0100 Original-Received: from localhost ([::1]:54744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJfah-0001dS-DD for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 03:48:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJfaa-0001dL-3j for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 03:48:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJfaU-00007g-QL for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 03:48:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJfaU-00007c-Mj for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 03:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WJfaU-00011c-31 for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 03:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Mar 2014 08:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16901-submit@debbugs.gnu.org id=B16901.13936636393858 (code B ref 16901); Sat, 01 Mar 2014 08:48:02 +0000 Original-Received: (at 16901) by debbugs.gnu.org; 1 Mar 2014 08:47:19 +0000 Original-Received: from localhost ([127.0.0.1]:45297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJfZm-000107-Ex for submit@debbugs.gnu.org; Sat, 01 Mar 2014 03:47:18 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:33186) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJfZf-0000zu-SS for 16901@debbugs.gnu.org; Sat, 01 Mar 2014 03:47:16 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N1R00I001DRBH00@mtaout29.012.net.il> for 16901@debbugs.gnu.org; Sat, 01 Mar 2014 10:50:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1R00C401VM7N70@mtaout29.012.net.il>; Sat, 01 Mar 2014 10:50:10 +0200 (IST) In-reply-to: <5310AEEE.4070005@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86430 Archived-At: > Date: Fri, 28 Feb 2014 19:44:46 +0400 > From: Dmitry Antipov > CC: 16901@debbugs.gnu.org, lekktu@gmail.com, > Emacs development discussions > > Now I have two crash reports to make me worry about GC. Both are > irregular and looks hard to reproduce: > > - this bug (crash in compact_small_strings, MS-Windows only (?)) > > - http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16817#11 - crash > marking C stack, OSX-only (?) > > These crashes may be originated by the same bug (probably irregular > heap corruption). It's known that GC-related crashes may be caused > by freeing fonts during gc_sweep; this is > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16069, but it should > not affect MS-Windows and OSX (and hopefully I'll fix it soon). > > On GNU/Linux, valgrind makes great job in finding memory-related > errors; if there are similar tools for other platforms, it would > be nice to try. And what about using GCC and (sorry RMS) LLVM > sanitizers? This is exacerbated by the fact that Drew, who is the only one that reports such assertion violations on Windows, doesn't build his Emacs. So using temacs under valgrind-like tool is not an option in this case. I'm not aware of any tools comparable with valgrind that work on Windows with GCC-generated symbol tables. However, since Emacs on Windows uses gmalloc, perhaps Juanma could build Emacs with GC_MCHECK defined, which might catch the villain closer to the corruption locus. Last time I hit a segfault in 'free', turning on these checks in gmalloc allowed me to find the culprit in just a few minutes of debugging, which is quite impressive for this sort of bugs.