http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56804
Bug #: 56804
Summary: lto1: internal compiler error: bytecode stream: found
non-null terminated string
Classification: Unclassified
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: [email protected]
ReportedBy: [email protected]
bash-4.1$ x86_64-w64-mingw32-gcc -I. -flto -c -save-temps -o lto-bug.o
lto-bug.c
lto-bug.c: In function 'check_vpx_codec_dec_init_ver':
lto-bug.c:3:50: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
long check_vpx_codec_dec_init_ver(void) { return (long)
vpx_codec_dec_init_ver; }
^
bash-4.1$ x86_64-w64-mingw32-gcc -L. -flto -save-temps -o lto-bug.exe lto-bug.o
-lvpx
lto1: internal compiler error: bytecode stream: found non-null terminated
string
0xa58590 bp_unpack_string(data_in*, bitpack_d*)
../../gcc-4_9-trunk/gcc/data-streamer-in.c:112
0x7da427 unpack_ts_translation_unit_decl_value_fields
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:383
0x7da427 unpack_value_fields
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:465
0x7dafcd streamer_read_tree_bitfields(lto_input_block*, data_in*, tree_node*)
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:510
0x5feb03 lto_read_tree
../../gcc-4_9-trunk/gcc/lto-streamer-in.c:1012
0x5feb03 lto_input_tree(lto_input_block*, data_in*)
../../gcc-4_9-trunk/gcc/lto-streamer-in.c:1082
0x7d8344 lto_input_ts_decl_minimal_tree_pointers
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:641
0x7d8344 streamer_read_tree_body(lto_input_block*, data_in*, tree_node*)
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:981
0x5feb11 lto_read_tree
../../gcc-4_9-trunk/gcc/lto-streamer-in.c:1015
0x5feb11 lto_input_tree(lto_input_block*, data_in*)
../../gcc-4_9-trunk/gcc/lto-streamer-in.c:1082
0x7d84ee lto_input_ts_type_common_tree_pointers
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:765
0x7d84ee streamer_read_tree_body(lto_input_block*, data_in*, tree_node*)
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:999
0x5feb11 lto_read_tree
../../gcc-4_9-trunk/gcc/lto-streamer-in.c:1015
0x5feb11 lto_input_tree(lto_input_block*, data_in*)
../../gcc-4_9-trunk/gcc/lto-streamer-in.c:1082
0x7d7f19 lto_input_ts_common_tree_pointers
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:601
0x7d7f19 streamer_read_tree_body(lto_input_block*, data_in*, tree_node*)
../../gcc-4_9-trunk/gcc/tree-streamer-in.c:972
0x5feb11 lto_read_tree
../../gcc-4_9-trunk/gcc/lto-streamer-in.c:1015
0x5feb11 lto_input_tree(lto_input_block*, data_in*)
../../gcc-4_9-trunk/gcc/lto-streamer-in.c:1082
0x41f69f lto_read_decls
../../gcc-4_9-trunk/gcc/lto/lto.c:2086
0x41f69f lto_file_finalize
../../gcc-4_9-trunk/gcc/lto/lto.c:2339
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: x86_64-w64-mingw32-gcc returned 1 exit status
[Leaving LTRANS lto-bug.exe.ltrans.out]
[Leaving LTRANS /tmp/cc2HMJtw.args]
/home/slave/local/xmingw-4_9-trunk-w64-seh/lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status
bash-4.1$ cat lto-bug.c
#include <vpx/vpx_decoder.h>
#include <vpx/vp8dx.h>
long check_vpx_codec_dec_init_ver(void) { return (long) vpx_codec_dec_init_ver;
}
int main(void) { return 0; }