From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.bugs Subject: bug#21474: emacs-25.0.50: compilation error in leim: Args out of Date: Sat, 26 Nov 2016 15:17:14 -0600 Message-ID: <87shqe0wmd.fsf@trouble.defaultvalue.org> References: <20150914124034.GX11695@danbala.tuwien.ac.at> <874m2v2o7x.fsf@trouble.defaultvalue.org> <83r35y3equ.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1480195092 14934 195.159.176.226 (26 Nov 2016 21:18:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 26 Nov 2016 21:18:12 +0000 (UTC) Cc: 21474@debbugs.gnu.org To: Eli Zaretskii , Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 26 22:18:07 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cAkMJ-00030s-FL for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Nov 2016 22:18:07 +0100 Original-Received: from localhost ([::1]:51781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAkMN-0001gD-6P for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Nov 2016 16:18:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAkMH-0001g6-JD for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 16:18:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAkME-0007P3-Dr for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 16:18:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cAkME-0007Oz-BB for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 16:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cAkME-0003PY-6K for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 16:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rob Browning Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Nov 2016 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21474 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21474-submit@debbugs.gnu.org id=B21474.148019503813037 (code B ref 21474); Sat, 26 Nov 2016 21:18:02 +0000 Original-Received: (at 21474) by debbugs.gnu.org; 26 Nov 2016 21:17:18 +0000 Original-Received: from localhost ([127.0.0.1]:42682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAkLW-0003OD-Ja for submit@debbugs.gnu.org; Sat, 26 Nov 2016 16:17:18 -0500 Original-Received: from defaultvalue.org ([70.85.129.156]:33208 ident=postfix) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAkLV-0003O4-6K for 21474@debbugs.gnu.org; Sat, 26 Nov 2016 16:17:17 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 6A3AF20250; Sat, 26 Nov 2016 15:17:15 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 05D6E14E48D; Sat, 26 Nov 2016 15:17:14 -0600 (CST) In-Reply-To: <83r35y3equ.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:126132 Archived-At: Eli Zaretskii writes: > But those problems should have been solved, even without disabling > REL_ALLOC, if Rob is building the current emacs-25 branch. Right? Well, Debian's on 25.1 (very few additional patches so far), so not the tip of emacs-25. But thanks to both of your help, and after reading some of the related bugs, I looked over the changes since 25.1, and saw what I think are the commits in question, commits that appear relevant to this problem, and maybe to the other one. But backing up -- with respect to Debian's version, the current Debian package (25.1+1-2) should be the deb/emacs25/v/25.1+1-2 tag here: https://anonscm.debian.org/cgit/users/rlb/emacs.git/tag/?h=deb/emacs25/v/25.1%2b1-2 Which is effectively the 25.1 tree, after making adjustments for Debian's DFSG issue, and applying these patches: https://anonscm.debian.org/cgit/users/rlb/emacs.git/tree/debian/patches?h=deb/emacs25/v/25.1%2b1-2 (Those patches are both in that directory, *and* applied to the working tree you get if you check out that tag.) That tree is the one that's been intermittently crashing, and I think the only patch it has from upstream after 25.1 is the nopie fix. In any case, after poking around in the newer emacs-25 commits (as mentioned above), it seemed like applying these allocation related patches might help: b6998ea * src/regex.h (re_match_object): Improve commentary. ad66b3f Fix handling of allocation in regex matching f6134bb Port to GCC 6.2.1 + --enable-gcc-warnings c2a1792 * src/regex.c (re_search_2): Make new code safe for -Wjump-misses-init. ee04aed Fix handling of buffer relocation in regex.c functions 7bb5c4f Port --enable-gcc-warnings to bleeding-edge glibc 1047496 Another fix for using pointer to buffer text 96ac0c3 Yet another fix for using pointers into buffer text 32827b3 Default REL_ALLOC to 'no' fee4cef Revert fixes to allocation of regex matching 43986d1 Inhibit buffer relocation during regex searches 0221b7a Mark relocation workarounds with REL_ALLOC And indeed, with those, I've yet to see a crash, but as we know, they're intermittent. To help increase confidence, two others who have been able to produce the crash are probably also going to test that tree soon. Of course, if y'all have some other way you'd like to see this handled, I'd be more than happy to try to accommodate. Thanks again -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4