Re: poisoned "malloc"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stephan Zimmer <st.zimmer@xxxxxx> writes:

> c-p9871.c:497:43: attempt to use poisoned "malloc"

Try installing a new version of bison.


> I tried to solve the problem with the 'poisoned "malloc"' by
> applying the YYMALLOC patches as, e.g., described at
> http://gcc.gnu.org/ml/gcc/2004-09/msg00927.html. However, the error
> persists. Can anyone help? What actually is a "poisoned"
> (x){c,m}alloc?

This happens because gcc/system.h says
 #pragma GCC poison malloc realloc

It is because gcc source code should not use malloc.  In your case the
error is happening in code generated by yacc/bison.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux