* [Bug lto/97508] lto1: internal compiler error: decompressed stream: Destination buffer is too small
2020-10-20 20:52 [Bug lto/97508] New: lto1: internal compiler error: decompressed stream: Destination buffer is too small hjl.tools at gmail dot com
@ 2020-10-21 6:13 ` rguenth at gcc dot gnu.org
2020-10-21 7:40 ` marxin at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-21 6:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-10-21
Keywords| |ice-on-valid-code, lto
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
It works for me. What compression scheme are you using? I have
Supported LTO compression algorithms: zlib
are you using zstd, if so, which version?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/97508] lto1: internal compiler error: decompressed stream: Destination buffer is too small
2020-10-20 20:52 [Bug lto/97508] New: lto1: internal compiler error: decompressed stream: Destination buffer is too small hjl.tools at gmail dot com
2020-10-21 6:13 ` [Bug lto/97508] " rguenth at gcc dot gnu.org
@ 2020-10-21 7:40 ` marxin at gcc dot gnu.org
2020-10-21 8:04 ` [Bug lto/97508] [10/11 Regression] ICE: " marxin at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-21 7:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org
Status|WAITING |ASSIGNED
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
I can reproduce it, working on that..
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/97508] [10/11 Regression] ICE: decompressed stream: Destination buffer is too small
2020-10-20 20:52 [Bug lto/97508] New: lto1: internal compiler error: decompressed stream: Destination buffer is too small hjl.tools at gmail dot com
2020-10-21 6:13 ` [Bug lto/97508] " rguenth at gcc dot gnu.org
2020-10-21 7:40 ` marxin at gcc dot gnu.org
@ 2020-10-21 8:04 ` marxin at gcc dot gnu.org
2020-10-21 8:16 ` marxin at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-21 8:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|lto1: internal compiler |[10/11 Regression] ICE:
|error: decompressed stream: |decompressed stream:
|Destination buffer is too |Destination buffer is too
|small |small
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with my r10-1548-g87741e51b53511be.
It's caused by the fact that .gnu.lto_.jmpfuncs.3f272ba23409d5d4 is streamed
twise: from "cp" pass and then from "fnsummary" pass.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/97508] [10/11 Regression] ICE: decompressed stream: Destination buffer is too small
2020-10-20 20:52 [Bug lto/97508] New: lto1: internal compiler error: decompressed stream: Destination buffer is too small hjl.tools at gmail dot com
` (2 preceding siblings ...)
2020-10-21 8:04 ` [Bug lto/97508] [10/11 Regression] ICE: " marxin at gcc dot gnu.org
@ 2020-10-21 8:16 ` marxin at gcc dot gnu.org
2020-10-29 13:33 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-21 8:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Then we end up with 2 copies of the compressed stream:
$ cat good.txt
y.o: file format elf64-x86-64
Contents of section .gnu.lto_.jmpfuncs.c09bc76fb7147437:
0000 28b52ffd 20116d00 00380500 01000000 (./. .m..8......
0010 0001001b c002 ......
$ cat bad.txt
y.o: file format elf64-x86-64
Contents of section .gnu.lto_.jmpfuncs.9e830355985c8f8c:
0000 28b52ffd 20116d00 00380500 01000000 (./. .m..8......
0010 0001001b c00228b5 2ffd2011 6d000038 ......(./. .m..8
0020 05000100 00000001 001bc002 ............
Then we tell zstd section size and decompression fails as zstd frame header
contains a smaller size.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/97508] [10/11 Regression] ICE: decompressed stream: Destination buffer is too small
2020-10-20 20:52 [Bug lto/97508] New: lto1: internal compiler error: decompressed stream: Destination buffer is too small hjl.tools at gmail dot com
` (3 preceding siblings ...)
2020-10-21 8:16 ` marxin at gcc dot gnu.org
@ 2020-10-29 13:33 ` cvs-commit at gcc dot gnu.org
2020-10-29 15:02 ` [Bug lto/97508] [10 " marxin at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-29 13:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:
https://gcc.gnu.org/g:568de14d2e74cfdd600b8995ff6ac08c98ddef48
commit r11-4526-g568de14d2e74cfdd600b8995ff6ac08c98ddef48
Author: Martin Liska <mliska@suse.cz>
Date: Wed Oct 21 11:11:03 2020 +0200
LTO: get_section: add new argument
gcc/ChangeLog:
PR lto/97508
* langhooks.c (lhd_begin_section): Call get_section with
not_existing = true.
* output.h (get_section): Add new argument.
* varasm.c (get_section): Fail when NOT_EXISTING is true
and a section already exists.
* ipa-cp.c (ipcp_write_summary): Remove.
(ipcp_read_summary): Likewise.
* ipa-fnsummary.c (ipa_fn_summary_read): Always read jump
functions summary.
(ipa_fn_summary_write): Always stream it.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/97508] [10 Regression] ICE: decompressed stream: Destination buffer is too small
2020-10-20 20:52 [Bug lto/97508] New: lto1: internal compiler error: decompressed stream: Destination buffer is too small hjl.tools at gmail dot com
` (4 preceding siblings ...)
2020-10-29 13:33 ` cvs-commit at gcc dot gnu.org
@ 2020-10-29 15:02 ` marxin at gcc dot gnu.org
2020-10-29 18:22 ` cvs-commit at gcc dot gnu.org
2020-10-29 18:23 ` marxin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-29 15:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[10/11 Regression] ICE: |[10 Regression] ICE:
|decompressed stream: |decompressed stream:
|Destination buffer is too |Destination buffer is too
|small |small
Known to fail|11.0 |
Known to work| |11.0
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on master so far.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/97508] [10 Regression] ICE: decompressed stream: Destination buffer is too small
2020-10-20 20:52 [Bug lto/97508] New: lto1: internal compiler error: decompressed stream: Destination buffer is too small hjl.tools at gmail dot com
` (5 preceding siblings ...)
2020-10-29 15:02 ` [Bug lto/97508] [10 " marxin at gcc dot gnu.org
@ 2020-10-29 18:22 ` cvs-commit at gcc dot gnu.org
2020-10-29 18:23 ` marxin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-29 18:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Martin Liska
<marxin@gcc.gnu.org>:
https://gcc.gnu.org/g:32d16af0c4ede8d008d4360cca7c805db518166f
commit r10-8954-g32d16af0c4ede8d008d4360cca7c805db518166f
Author: Martin Liska <mliska@suse.cz>
Date: Wed Oct 21 11:11:03 2020 +0200
LTO: get_section: add new argument
gcc/ChangeLog:
PR lto/97508
* langhooks.c (lhd_begin_section): Call get_section with
not_existing = true.
* output.h (get_section): Add new argument.
* varasm.c (get_section): Fail when NOT_EXISTING is true
and a section already exists.
* ipa-cp.c (ipcp_write_summary): Remove.
(ipcp_read_summary): Likewise.
* ipa-fnsummary.c (ipa_fn_summary_read): Always read jump
functions summary.
(ipa_fn_summary_write): Always stream it.
(cherry picked from commit 568de14d2e74cfdd600b8995ff6ac08c98ddef48)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/97508] [10 Regression] ICE: decompressed stream: Destination buffer is too small
2020-10-20 20:52 [Bug lto/97508] New: lto1: internal compiler error: decompressed stream: Destination buffer is too small hjl.tools at gmail dot com
` (6 preceding siblings ...)
2020-10-29 18:22 ` cvs-commit at gcc dot gnu.org
@ 2020-10-29 18:23 ` marxin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-29 18:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Known to fail|10.2.0 |
Known to work| |10.2.1
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed now.
^ permalink raw reply [flat|nested] 9+ messages in thread