This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/58893] [4.8/4.9 Regression] <command-line>:0:0: internal compiler error: Segmentation fault
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Mar 2014 19:44:19 +0000
- Subject: [Bug preprocessor/58893] [4.8/4.9 Regression] <command-line>:0:0: internal compiler error: Segmentation fault
- Auto-submitted: auto-generated
- References: <bug-58893-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58893
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
True, although it has been broken (though didn't crash) already around in
r110000:
MALLOC_PERTURB_=225 /usr/src/gcc-test/obj/gcc/cc1plus.110000 -include
./pr58893.h -include xxx.h pr58893.c -quiet -o /tmp/pr58893.s
<command line>:3947580:58: error: xxx.h: No such file or directory
(note the completely bogus line and column info).
Perhaps open_file_failed should use cpp_error_with_line instead of cpp_errno,
at least when invoked from within _cpp_find_file/_cpp_stack_include with type
== IT_CMDLINE (or IT_DEFAULT?), because pfile->cur_token[0] as well as
pfile->cur_token[-1] points to uninitialized memory at that point.
Tom/Dodji, any thoughts on this?