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 pch/43271] New: SEGV in linemap_lookup if PCH cannot be loaded


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


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