This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/58893] [4.8/4.9 Regression] <command-line>:0:0: internal compiler error: Segmentation fault


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]