This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/43271] New: SEGV in linemap_lookup if PCH cannot be loaded
- From: "ro at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2010 20:48:13 -0000
- Subject: [Bug pch/43271] New: SEGV in linemap_lookup if PCH cannot be loaded
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
As described in
PATCH: Avoid segfault if line_table->maps is not set up
http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00981.html
if a PCH couldn't be loaded, the call to fatal_error ("had to relocate PCH")
causes a SEGV in linemap_lookup since the line_table hasn't been set up at this
point. While the proposed patch hacks around the problem by having
linemap_lookup
provide a dummy line_map in this case, it should probably be pch's
responsibility
to set one up before calling fatal_error.
--
Summary: SEGV in linemap_lookup if PCH cannot be loaded
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43271