This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ../../gcc/fixproto[275]: 25412 Memory fault(coredump)
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Subject: Re: ../../gcc/fixproto[275]: 25412 Memory fault(coredump)
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Wed, 7 Mar 2001 14:41:51 -0500 (EST)
- Cc: neil at daikokuya dot demon dot co dot uk, gcc-bugs at gcc dot gnu dot org
> > 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)