From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: Emacs 22.1 reproducible crash Date: Wed, 8 Aug 2007 13:49:40 +0300 Message-ID: <20070808104939.GA19002@kobe.laptop> References: <38018.65621.qm@web88014.mail.re2.yahoo.com> <46B85FA7.4060000@swipnet.se> <20070808100039.GB1907@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186570231 28528 80.91.229.12 (8 Aug 2007 10:50:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Aug 2007 10:50:31 +0000 (UTC) Cc: Gardner Bell , Jan Dj?rv , emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 08 12:50:28 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 1IIj7Q-0008Ux-Ne for ged-emacs-devel@m.gmane.org; Wed, 08 Aug 2007 12:50:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIj7P-0006JY-TX for ged-emacs-devel@m.gmane.org; Wed, 08 Aug 2007 06:50:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIj7M-0006JJ-Q8 for emacs-devel@gnu.org; Wed, 08 Aug 2007 06:50:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIj7L-0006J5-Ho for emacs-devel@gnu.org; Wed, 08 Aug 2007 06:50:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIj7L-0006J2-Cv for emacs-devel@gnu.org; Wed, 08 Aug 2007 06:50:19 -0400 Original-Received: from igloo.linux.gr ([62.1.205.36]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IIj7K-0004xP-O8 for emacs-devel@gnu.org; Wed, 08 Aug 2007 06:50:19 -0400 Original-Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l78AnxGo004730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 8 Aug 2007 13:50:06 +0300 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l78AnhPW019035; Wed, 8 Aug 2007 13:49:58 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Original-Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l78AneK7019034; Wed, 8 Aug 2007 13:49:40 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Content-Disposition: inline In-Reply-To: <20070808100039.GB1907@kobe.laptop> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.052, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.35, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Detected-Kernel: Linux 2.6 (newer, 1) 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:76192 Archived-At: On 2007-08-08 13:00, Giorgos Keramidas wrote: >On 2007-08-08 11:32, YAMAMOTO Mitsuharu wrote: >>>>>>> On Tue, 07 Aug 2007 14:03:51 +0200, Jan Dj?rv said: >>>> Same thing, slightly different backtrace this time. I have also >>>> noticed that this is triggered much easier when using the mouse to >>>> open, and close files. >>> >>> I think this might be due to the fact that Glib uses posix_memalign, >>> but there is no posix_memalign in gmalloc.c. >> >> Then adding its implementation to gmalloc.c simply work? >> >> Index: src/gmalloc.c >> =================================================================== >> RCS file: /cvsroot/emacs/emacs/src/gmalloc.c,v >> retrieving revision 1.25 >> diff -c -p -r1.25 gmalloc.c >> *** src/gmalloc.c 7 Aug 2007 08:55:43 -0000 1.25 >> --- src/gmalloc.c 8 Aug 2007 02:31:42 -0000 >> *************** memalign (alignment, size) >> *** 1857,1862 **** >> --- 1857,1891 ---- >> return result; >> } >> >> + #ifndef ENOMEM >> + #define ENOMEM 12 >> + #endif >> + >> + #ifndef EINVAL >> + #define EINVAL 22 >> + #endif >> + >> + int >> + posix_memalign (memptr, alignment, size) >> + __ptr_t *memptr; >> + __malloc_size_t alignment; >> + __malloc_size_t size; > > Excellent, thanks :-) > > I will try this with a snapshot of HEAD from CVS in a few minutes :-) Nice. I just finished rebuilding Emacs --with-gtk from a snapshot of the CVS repository at: % changeset: 82488:9563c0c734fe % tag: tip % user: gm % date: Wed Aug 08 08:14:03 2007 +0000 % files: lisp/emacs-lisp/eldoc.el % description: % (eldoc-get-fnsym-args-string): Make second argument optional, for % backwards compatibility, and only highlight args when present. % Fix symbol name typo (doc/args). A clean bootstrap now works as expected (i.e. no temacs crash while building), and I haven't been able to crash Emacs in the first few minutes by browsing news groups with Gnus (this used to trigger a segfault pretty fast before). I think we may have a fix, but let's wait until Jan completes his own testing too :-) Thank you for the patch, George