From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yasushi SHOJI Newsgroups: gmane.emacs.devel Subject: Re: Certain numbers of special forms cause changing behaviour on function calls in --batch Date: Sun, 10 Jul 2016 19:34:40 +0900 Message-ID: References: <8760stvwzp.fsf@web.de> <834m8cvu9p.fsf@gnu.org> <87h9cbpw61.fsf@web.de> <83wpl7v1sg.fsf@gnu.org> <87a8i2dfe3.fsf@web.de> <83poqyvh58.fsf@gnu.org> <87shvu1ixp.fsf@web.de> <8360spvn6i.fsf@gnu.org> <8760sjn5me.fsf@web.de> <871t37n51y.fsf@web.de> <8337nmon4l.fsf@gnu.org> <87mvluomaz.fsf@web.de> <83mvlun6zc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c00560654a555053745951f X-Trace: ger.gmane.org 1468146898 28197 80.91.229.3 (10 Jul 2016 10:34:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 10:34:58 +0000 (UTC) Cc: Michael Heerdegen , me@wilfred.me.uk, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 10 12:34:57 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bMC4d-0000Hz-Gc for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2016 12:34:55 +0200 Original-Received: from localhost ([::1]:54048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMC4c-00061N-KK for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2016 06:34:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMC4U-00061I-0L for emacs-devel@gnu.org; Sun, 10 Jul 2016 06:34:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMC4S-0007Lf-Qp for emacs-devel@gnu.org; Sun, 10 Jul 2016 06:34:45 -0400 Original-Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:35758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMC4Q-0007KY-7A; Sun, 10 Jul 2016 06:34:42 -0400 Original-Received: by mail-qt0-x232.google.com with SMTP id j35so4885071qtj.2; Sun, 10 Jul 2016 03:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oq/MsUpikSdBuCIwm3KnPRs5kCnPWvQV4FPYB0w1TcA=; b=mJsUID2ZhAtsqlQQ3ATLUXmaWwGaoDiqmiKQR2YOcQAz7OWj492Co4duKUawb3P0w5 6sstrmJT2bwhb+9Slwnb9iUjJ5Km2cySAPUEbTbQRQUwG2SnuppmHj0Rdmg0xdcpn91C u5Mf69U25dog9DA4pg/4x4NcGOY0xKK+J8ioLVeUA/F6NtAw1pFm5293xdKBHP/oH97u RH/TrGQxmo9nn11mLVsRsG4O2Os29/hr//acbKTbshPyqTcPc5QXioQsun3I3m2RoTHJ 0k1e2odaU6v4+MeU1Syh7yqxHXAuNCVb9E2tlJ7CDtYkHIC/nCodH3RZ4EKC+Mnxd3bz /Ksg== 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:from:date :message-id:subject:to:cc; bh=oq/MsUpikSdBuCIwm3KnPRs5kCnPWvQV4FPYB0w1TcA=; b=m9gHwETfpDhT68xqDvkKFa9s4Q53X4gwYE7lsHWnu/ehPcknRvFCw0yrFEr029akMD Kh48QmeVl8rGFJ02AENhkk44ZAbI910ZqYmWZy0yeyxtN5RI+9tZo5KD/QJ4DmGiB26P C9eBJ0lLEM4S9h96O5TTUtUWzZLF1/s4i/k7cwiXAv7mWRptXuDbAehkTz1HuDpHb3A8 MDiZrJxsab9qtP+Q9sgR27odTeYymdrIn6Lpo1/2dW5ksSfcKfJdBA5ggcXrIQTVWg7s w2bNM5Dvpx/ir9rA6K9OKrejtsS2jnzyBzcy6Gzc5wAPMkZulCHZpo3quU/cM2480UgG 3kLw== X-Gm-Message-State: ALyK8tJgzynGgohs8A80c7LsEdAvdiP38AjzqfodoTRPepiiFWy/h4CyI4oFpHxt6wt1s8yCv9cBBNTveEUoWw== X-Received: by 10.237.52.193 with SMTP id x59mr18280848qtd.13.1468146881169; Sun, 10 Jul 2016 03:34:41 -0700 (PDT) Original-Received: by 10.55.162.85 with HTTP; Sun, 10 Jul 2016 03:34:40 -0700 (PDT) In-Reply-To: <83mvlun6zc.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::232 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:205487 Archived-At: --94eb2c00560654a555053745951f Content-Type: multipart/alternative; boundary=94eb2c00560654a54f053745951d --94eb2c00560654a54f053745951d Content-Type: text/plain; charset=UTF-8 On Thu, Jul 7, 2016 at 12:04 AM, Eli Zaretskii wrote: > So more data points might help, yes. I can reproduce this bug on my Debian Sid system with gcc version 5.4.0 20160609 (Debian 5.4.0-6). git bisect showed me that 7c3d742c357dd6480e813f067435b324dba2b325 is the one to blame. Farther investigation showed me that the logic of the commit 7c3d742 isn't the root cause but the additional member in the struct it is. 7c3d742^ is 7bf54d01159eb09bae3c9cd86f2af0812d9afdf6, which is good. But if I add void * bad; to struct it, like the attached patch, it turns into bad one. So, there might be a bug related to the size of struct it? -- yashi --94eb2c00560654a54f053745951d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Thu, Jul 7, 2016 at 12:04 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> So more data p= oints might help, yes.

I can reproduce this bug on my Debian Si= d system with
gcc version 5.4.0 20160609 (Debian 5.4.0-6).

git bisect showed me that=C2=A07c3d742c357dd6480e813= f067435b324dba2b325
is the one to blame.=C2=A0 Farther investigat= ion showed me that the logic of the=C2=A0
commit 7c3d742 isn'= t the root cause but the additional member in the struct it is.

7c3d742^ is 7bf54d01159eb09bae3c9cd86f2af0812d9afdf6, whi= ch is good.
But if I add void * bad; to struct it, like the attac= hed patch, it turns into bad one.

So, there might = be a bug related to the size of struct it?
--=C2=A0
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0yashi

--94eb2c00560654a54f053745951d-- --94eb2c00560654a555053745951f Content-Type: text/x-patch; charset=US-ASCII; name="a.patch" Content-Disposition: attachment; filename="a.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iqggpdvh0 ZGlmZiAtLWdpdCBhL3NyYy9kaXNwZXh0ZXJuLmggYi9zcmMvZGlzcGV4dGVybi5oCmluZGV4IGZh ZDViZmQuLjEzY2E2OGMgMTAwNjQ0Ci0tLSBhL3NyYy9kaXNwZXh0ZXJuLmgKKysrIGIvc3JjL2Rp c3BleHRlcm4uaApAQCAtMjUzMyw2ICsyNTMzLDcgQEAgc3RydWN0IGl0CiAgIC8qIElmIHdoYXQg PT0gSVRfWFdJREdFVC4gICovCiAgIHN0cnVjdCB4d2lkZ2V0ICp4d2lkZ2V0OwogI2VuZGlmCisg IHZvaWQgKmZvbzsKIAogICAvKiBWYWx1ZXMgZnJvbSBgc2xpY2UnIHByb3BlcnR5LiAgKi8KICAg c3RydWN0IGl0X3NsaWNlIHNsaWNlOwo= --94eb2c00560654a555053745951f--