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]

Re: ../../gcc/fixproto[275]: 25412 Memory fault(coredump)


> > No, I think it was my patch.  This is all related to basename ()
> > not returning a pointer to within the string it was passed on
> > your platform (and hence pointer subtraction returning a large
> > random number).  Clearly, some input other than "", which I now
> > catch as a special case, returns a special string too.
> 
> I know alloca caused the segmentation fault.  I printed path->name

On further thought, I think your correct.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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