From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Segfault during fontification of rgrep buffers [HELP NEEDED] Date: Wed, 26 Oct 2016 15:25:27 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1477510017 18277 195.159.176.226 (26 Oct 2016 19:26:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2016 19:26:57 +0000 (UTC) Cc: Emacs developers To: Herwig Hochleitner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 26 21:26:52 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzTqW-0003In-FS for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2016 21:26:44 +0200 Original-Received: from localhost ([::1]:37052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzTqY-0002LU-Pz for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2016 15:26:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzTpJ-0002Im-S3 for emacs-devel@gnu.org; Wed, 26 Oct 2016 15:25:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzTpI-00006j-VP for emacs-devel@gnu.org; Wed, 26 Oct 2016 15:25:29 -0400 Original-Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]:33092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bzTpI-00006a-QU for emacs-devel@gnu.org; Wed, 26 Oct 2016 15:25:28 -0400 Original-Received: by mail-oi0-x244.google.com with SMTP id i127so677375oia.0 for ; Wed, 26 Oct 2016 12:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=q1wLsLbW83eEoJk6QVqBYatN7nsPZS1P3GJiveqVoWo=; b=u20/ecP4ZCWJdbBIDJVXtGPynzuJhbUe4sP0rlWwAqiu+LDWB02FgiPnIRineNHK3V U5NpXN8ak+/eGHTL7gOmIvOMz4JBD8UeBD9qRf/wUWSmU7xMaCvg6DPwYSpkRLgvmQV0 VT/Lw+Xhs5SONqSBV4xxySeUPU2Fw6NOVTLEPWIVYnp+nR5w80vB9wrv/418yxaZtTm9 FXz4+st5Mf1HpYj8ncB4slfmtHk4a63D/k1LlDqmqUREWe05MageDtMAZ2zSs25OFCfA RyYJy7N5KDz2+ytDcPLp5obmbT63nW0SCtbQ+6jj1u5Cc5KMbzVHqStN2f+wDzNompLu 4GJw== 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:in-reply-to:references:from :date:message-id:subject:to:cc; bh=q1wLsLbW83eEoJk6QVqBYatN7nsPZS1P3GJiveqVoWo=; b=DcA7WOhBa/9+oYA5T6yptyof3ePJcA7TeWfBcyDL6TpipEws6Y2F23VoWwwDGfgZWf 5+wGesIhPmjqh8ibnc30Q+LDVntPbLq5UOKdY7jjRyLQM+mJVHV0Hf2iLKFNDGupMV/A sXPOL1+kQG3t3ugsuvQireoq1lFzMMHXXtnHEbE4zX1zgtZHHMhY1xF/NQVPmWD+UyD/ DPovcaqXO305dDLVYPqNIRK/YaLcX+mY/P1oFYHSWaTdgOHOqNnwWlW/gWahZSYvNana sDFzaAbqzypBA5Us8laN9h7+XAHWZ74GgNwPnCqDHXMYz8ddn+FxGHiEBZujHR1UAgoI rINg== X-Gm-Message-State: ABUngvd9Htaw57Ho80FWdyWROQRVU1jG+snwPsGbwIvHddsHl5NJNo9qHzqKzp7dM7P2C3VzbD8G0OTAagbdpw== X-Received: by 10.157.1.133 with SMTP id e5mr2665982ote.101.1477509928184; Wed, 26 Oct 2016 12:25:28 -0700 (PDT) Original-Received: by 10.157.29.239 with HTTP; Wed, 26 Oct 2016 12:25:27 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 9AsctCVzroRAZgc7mDxtQdxdx0M X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::244 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:208853 Archived-At: On Wed, Oct 26, 2016 at 2:44 PM, Herwig Hochleitner wrote: > 2016-10-26 20:36 GMT+02:00 Noam Postavsky : >> >> On Wed, Oct 26, 2016 at 12:09 PM, Herwig Hochleitner >> wrote: >> > Hi, >> > >> > I've been hunting a segfault during usage of rgrep for some time, now >> > I've >> > managed to catch it in gdb. From the looks of it, BEGV_ADDR is changed >> > during a single run of search_buffer, which leaves a stale pointer in a >> > local variable. >> >> >> This is almost certainly the same bug as #24358. You can try building >> with REL_ALLOC=no, or applying >> >> https://debbugs.gnu.org/cgi/bugreport.cgi?msg=225;att=2;bug=24358;filename=v4-0002-Inhibit-buffer-relocation-during-regex-searches.patch. > > > That looks like the issue. I'll do a test build, and if successful, will add > the patch to NixOS' emacs 25.1 build. > > Thanks! Actually, there are a few other similar issues in other parts of the code, so you should to apply all of http://git.savannah.gnu.org/cgit/emacs.git/patch/?id=71ca4f6a43bad06192cbc4bb8c7a2d69c179b7b0 http://git.savannah.gnu.org/cgit/emacs.git/patch/?id=1047496722a58ef5b736dae64d32adeb58c5055c http://git.savannah.gnu.org/cgit/emacs.git/patch/?id=96ac0c3ebce825e60595794f99e703ec8302e240 http://git.savannah.gnu.org/cgit/emacs.git/patch/?id=43986d16fb6ad78a627250e14570ea70bdb1f23a (that last one is the same as what I told you earlier). Certainly just using REL_ALLOC=no is simpler, but getting confirmation that the patches work would be useful also.