[Bug lto/91078] [10 regression] All LTO tests FAIL: SIGBUS in lto1 (lto_file_finalize)

2019-07-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91078

Martin Liška  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Martin Liška  ---
Fixed.

[Bug lto/91078] [10 regression] All LTO tests FAIL: SIGBUS in lto1 (lto_file_finalize)

2019-07-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91078

--- Comment #4 from Martin Liška  ---
Author: marxin
Date: Thu Jul  4 11:38:28 2019
New Revision: 273077

URL: https://gcc.gnu.org/viewcvs?rev=273077=gcc=rev
Log:
Fix loading of lto_section on strict alignment targets (PR lto/91078).

2019-07-04  Martin Liska  

PR lto/91078
* lto-common.c (lto_file_finalize): Use memcpy to set
file_data->lto_section_header.

Modified:
trunk/gcc/lto/ChangeLog
trunk/gcc/lto/lto-common.c

[Bug lto/91078] [10 regression] All LTO tests FAIL: SIGBUS in lto1 (lto_file_finalize)

2019-07-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91078

Martin Liška  changed:

   What|Removed |Added

   Keywords||patch

--- Comment #3 from Martin Liška  ---
I've just sent a patch to ML:
https://gcc.gnu.org/ml/gcc-patches/2019-07/msg00330.html

[Bug lto/91078] [10 regression] All LTO tests FAIL: SIGBUS in lto1 (lto_file_finalize)

2019-07-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91078

--- Comment #2 from Martin Liška  ---
I can confirm that on a x86_64 machine with -fsanitize=alignment:

$ gcc main.o -flto
../../gcc/lto/lto-common.c:2202:36: runtime error: reference binding to
misaligned address 0x7f997df9e0a7 for type 'const struct lto_section', which
requires 4 byte alignment
0x7f997df9e0a7: note: pointer points here
 00 1b c0 02 09  00 00 00 03 00 00 00 28  b5 2f fd 60 77 00 d5 08  00 e6 d1 3d
37 20 01 09  00 bf 53
 ^ 
../../gcc/lto/lto-common.c:2202:33: runtime error: load of misaligned address
0x7f997df9e0a7 for type 'const struct lto_section', which requires 4 byte
alignment
0x7f997df9e0a7: note: pointer points here
 00 1b c0 02 09  00 00 00 03 00 00 00 28  b5 2f fd 60 77 00 d5 08  00 e6 d1 3d
37 20 01 09  00 bf 53
 ^

[Bug lto/91078] [10 regression] All LTO tests FAIL: SIGBUS in lto1 (lto_file_finalize)

2019-07-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91078

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-07-04
   Assignee|unassigned at gcc dot gnu.org  |marxin at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
That's definitely mine, started with r272995.

[Bug lto/91078] [10 regression] All LTO tests FAIL: SIGBUS in lto1 (lto_file_finalize)

2019-07-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91078

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |10.0