From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Synacek Newsgroups: gmane.emacs.bugs Subject: bug#23726: emacs 25.0.94 crashes Date: Thu, 9 Jun 2016 08:17:48 +0200 Message-ID: References: <489b54c6-1d39-4f47-9c35-36eea32c7b6c@cs.ucla.edu> <72a0452f-b732-d562-47a7-cedbc9548a39@redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1465453100 2979 80.91.229.3 (9 Jun 2016 06:18:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2016 06:18:20 +0000 (UTC) Cc: Paul Eggert , 23726@debbugs.gnu.org To: Florian Weimer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 09 08:18:15 2016 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 1bAtID-0006Xd-5q for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 08:18:13 +0200 Original-Received: from localhost ([::1]:60774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAtIC-0008RF-9m for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 02:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAtI6-0008R8-Kw for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 02:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAtI2-0002BF-D5 for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 02:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAtI2-0002BB-9I for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 02:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bAtI2-0006b3-5W for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 02:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan Synacek Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jun 2016 06:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23726 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23726-submit@debbugs.gnu.org id=B23726.146545307625345 (code B ref 23726); Thu, 09 Jun 2016 06:18:02 +0000 Original-Received: (at 23726) by debbugs.gnu.org; 9 Jun 2016 06:17:56 +0000 Original-Received: from localhost ([127.0.0.1]:33281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAtHw-0006aj-DU for submit@debbugs.gnu.org; Thu, 09 Jun 2016 02:17:56 -0400 Original-Received: from mail-io0-f182.google.com ([209.85.223.182]:33478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAtHu-0006aU-Ey for 23726@debbugs.gnu.org; Thu, 09 Jun 2016 02:17:55 -0400 Original-Received: by mail-io0-f182.google.com with SMTP id m62so29529085iof.0 for <23726@debbugs.gnu.org>; Wed, 08 Jun 2016 23:17:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=/ECDlqnvmJw0zYWXI6H9pK1h4h0Bvk86XyurFtR2We4=; b=Wu0PocPpBQ1NrBCN+juu2Jz8so03ocvx4MlKfFfPoZnkJ0ynMZiXbSSlBCWpCZWi9g jt/LlC9dSjgmsBOPFldwesjr3S/nNSffhBckZFPgzxibSsQIFrG4gstiALBjz/fkXbVd t1kFKX8eEE0c3bsOTSGlD6ALSSHgnzmXildChSExfUFJBcUsC5bXtMMt0ZEozfJ5W4lg sJxWih0KamwERX/s9eJ3XdJ1TgUoS6xvmHN2olDIpfzTPz/y/PbGo1L4i+bZhF3UGife 6BzFkAU7aZJObrLrcBHjP4lzNSye0GfiY210yIXcGZ2pAN4xDj/R7aYutsH+sKhV3P80 h3ow== X-Gm-Message-State: ALyK8tKySWoJkcfpEc8nfOXyVnsvj6Mo7Hq55UdtLGKieZ8//9BHDru2xyVW1oOR9wsiUFl3+z0gFDNz2R2XAlim X-Received: by 10.107.19.165 with SMTP id 37mr13800710iot.167.1465453068704; Wed, 08 Jun 2016 23:17:48 -0700 (PDT) Original-Received: by 10.107.47.159 with HTTP; Wed, 8 Jun 2016 23:17:48 -0700 (PDT) In-Reply-To: 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:119313 Archived-At: On Wed, Jun 8, 2016 at 8:52 PM, Florian Weimer wrote: > On 06/08/2016 08:34 PM, Florian Weimer wrote: > >> The problem is that the realloc implementation for dumped chunks is >> incorrect; that bit is already in glibc master and rawhide. I think I >> can see what is wrong: The size computation for the old chunk size in >> realloc is wrong, and the trailing sizeof (size_t) bytes are not copied. >> Fortunately, it's not a conceptual problem with the heap rewriter. > > > glibc patch posted: > > https://sourceware.org/ml/libc-alpha/2016-06/msg00261.html > > The same dumped binary crashes before this patch is applied, and works > afterwards. > > Jan, thanks for reporting this. Thanks for investigating and the quick fix! -- Jan Synacek Software Engineer, Red Hat