From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#13486: 25.0.50; struct selection_input_event data might be corrupted by assignments as another structure type Date: Wed, 24 Jun 2015 09:56:25 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <5589EF5A.6010409@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435107441 15512 80.91.229.3 (24 Jun 2015 00:57:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2015 00:57:21 +0000 (UTC) Cc: 17026@debbugs.gnu.org, 13486@debbugs.gnu.org, 20756@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 02:57:14 2015 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 1Z7Z04-000558-DV for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 02:57:12 +0200 Original-Received: from localhost ([::1]:48008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Z03-0006qZ-UE for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jun 2015 20:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Yzz-0006ow-45 for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2015 20:57:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Yzu-0001oE-Ll for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2015 20:57:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Yzu-0001oA-I8 for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2015 20:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z7Yzu-00026Z-1g for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2015 20:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jun 2015 00:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13486 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13486-submit@debbugs.gnu.org id=B13486.14351073958045 (code B ref 13486); Wed, 24 Jun 2015 00:57:01 +0000 Original-Received: (at 13486) by debbugs.gnu.org; 24 Jun 2015 00:56:35 +0000 Original-Received: from localhost ([127.0.0.1]:55663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7YzS-00025f-If for submit@debbugs.gnu.org; Tue, 23 Jun 2015 20:56:35 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:56818) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7YzP-00025M-48; Tue, 23 Jun 2015 20:56:33 -0400 Original-Received: from fermat1.math.s.chiba-u.ac.jp (fermat [192.168.32.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 5268CC0560; Wed, 24 Jun 2015 09:56:25 +0900 (JST) In-Reply-To: <5589EF5A.6010409@cs.ucla.edu> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104285 Archived-At: >>>>> On Tue, 23 Jun 2015 16:44:26 -0700, Paul Eggert = said: > Thanks for tracking down and diagnosing this bug. I've installed a > patch as commit 1552e6737317ea2c85e06600e178114c6b0f9fb2 in emacs > master; can you please try it in your environment? Thanks for looking into this. But it doesn't build as it is in the original environment: OS X 10.7, and the following version of llvm-gcc i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5= 658) (LLVM build 2336.11.00) The error message is: gcc -std=3Dgnu99 -c -I/opt/local/include -Demacs -I. -I../../../emacs/trun= k/src -I../lib -I../../../emacs/trunk/lib -D_REENTRANT -I/opt/local/inclu= de/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi= -2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt= /local/include/gtk-3.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/incl= ude -I/opt/local/include/cairo -I/opt/local/include -I/opt/local/include/pa= ngo-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt= /local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixm= an-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/inclu= de -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include= /libpng16 -I/opt/local/include -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/l= ocal/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2= .0/include -I/opt/local/include -I/opt/local/include -I/opt/local/include/= freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/= include -I/opt/local/include/libpng16 -I/opt/local/include -D_REENTRANT = -I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt= /local/include/libpng16 -I/opt/local/include/cairo -I/opt/local/include/gli= b-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/i= nclude/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/= local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/lo= cal/include/libpng16 -I/opt/local/include -DMAGICKCORE_HDRI_ENABLE=3D0 -DM= AGICKCORE_QUANTUM_DEPTH=3D16 -DMAGICKCORE_HDRI_ENABLE=3D0 -DMAGICKCORE_QUAN= TUM_DEPTH=3D16 -I/opt/local/include/ImageMagick-6 -I/opt/local/include/lib= png16 -I/opt/local/include/libxml2 -I/opt/local/include/dbus-1.0 -I/opt/lo= cal/lib/dbus-1.0/include -I/opt/local/include -I/opt/local/include -I/op= t/local/include -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/li= b/glib-2.0/include -I/opt/local/include -DORBIT2=3D1 -D_REENTRANT -I/opt/l= ocal/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/gl= ib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local= /include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -= I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/lib= png16 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/inc= lude -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/inclu= de/libpng16 -MMD -MF deps/dispnew.d -MP -I/opt/local/include -I/opt/loca= l/include/p11-kit-1 -I/opt/local/include -D_REENTRANT -I/opt/local/include= /glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -g3 -O= 2 ../../../emacs/trunk/src/dispnew.c In file included from ../../../emacs/trunk/src/dispnew.c:33: ../../../emacs/trunk/src/keyboard.h: In function =E2=80=98kbd_buffer_store_= event_hold=E2=80=99: ../../../emacs/trunk/src/keyboard.h:461: error: expected specifier-qualifie= r-list before =E2=80=98*=E2=80=99 token ../../../emacs/trunk/src/keyboard.h:461: error: =E2=80=98struct = =E2=80=99 has no member named =E2=80=98__b=E2=80=99 ../../../emacs/trunk/src/keyboard.h:461: error: expected specifier-qualifie= r-list before =E2=80=98*=E2=80=99 token ../../../emacs/trunk/src/keyboard.h:461: error: =E2=80=98struct = =E2=80=99 has no member named =E2=80=98__b=E2=80=99 ../../../emacs/trunk/src/keyboard.h:461: error: bit-field =E2=80=98_gl_veri= fy_error_if_negative=E2=80=99 width not an integer constant make: *** [dispnew.o] Error 1 The output of gcc -E for the corresponding part is: kbd_buffer_store_event_hold (struct input_event *event, struct input_event *hold_quit) { union buffered_input_event *ev =3D (union buffered_input_event *) event; extern int (*_gl_verify_function461 (void)) [(!!sizeof (struct { unsigned= int _gl_verify_error_if_negative: (sizeof *event =3D=3D sizeof *ev && __bu= iltin_offsetof (struct { char __a; *event __b; }, __b) =3D=3D __builtin_off= setof (struct { char __a; *ev __b; }, __b)) ? 1 : -1; }))]; return kbd_buffer_store_buffered_event ((union buffered_input_event *) ev= ent, hold_quit); } If I comment out the line for the "verify" macro, the it successfully builds and runs without crash. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp