This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Memory Fault in "free"
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Anjali Sharma <anjalis at cdotd dot ernet dot in>
- Cc: gcc at gcc dot gnu dot org
- Date: 19 Dec 2003 10:09:50 -0500
- Subject: Re: Memory Fault in "free"
- References: <3FE2E2F1.C59A3C47@cdotd.ernet.in>
Anjali Sharma <anjalis@cdotd.ernet.in> writes:
> I am modifying the source code of assembler of binutils-2.8.1.I am using a
> temporary character pointer in the code of function
> "input_file_give_next_buffer()" in file input-file.c,
> and allocating memory for it using the OS system call "malloc()" on HP-UX
> 11.0.When i try to free this pointer, it always gives a memory fault.
>
> Please let me know if anyone has come across such a problem.Any help is deeply
> appreciated.
The gcc@gcc.gnu.org list is for discussion related to development of
GCC. It is not for programming questions.
There is a different binutils list, but that is also not for
programming questions. See http://sourceware.org/binutils/.
binutils 2.8.1 is very old.
There are any number of possible causes for the problem you are
seeing. It is most likely a memory corruption problem.
Ian