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)


John David Anglin wrote:-

> I know alloca caused the segmentation fault.

Right, but I suspect that's because it overflowed your stack with the
same huge allocation that malloc had.

The best solution is to remove any dependence on external
implementations and write our own basename ().

Neil.


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