Core + malloc

L

lasek

Hi all...now i'm working in a little society and the first thing i've seen
is a lot of file c and pc.
But sometime happens....this application load in memory through a list of
pointers more information..but now the question....we have modify
somtething...and, sbrrrraaaaa...i receive a file core...
and so the question....the memory allocated with malloc (used to expand
the list), when received a core file who release the memory in particular
the system call free() function before terminate the application ?

Best regards all....Claudio
 
D

Default User

lasek said:
Hi all...now i'm working in a little society and the first thing i've
seen is a lot of file c and pc.
But sometime happens....this application load in memory through a
list of pointers more information..but now the question....we have
modify somtething...and, sbrrrraaaaa...i receive a file core...
and so the question....the memory allocated with malloc (used to
expand the list), when received a core file who release the memory in
particular the system call free() function before terminate the
application ?


First of all...drop the...habit of...sticking these elipses...all
through your me...ssage.

Secondly, how can we possibly tell you what's wrong with code you have
shown us? Create a complete, MINIMAL program that demonstrates the
problem. Then post it.

There are also platform specific debuggers that may help you analyze
your core dumps and determine the problem. Those are not topical here
though, you would need to find a different newsgroup.



Brian
 
W

Wendy E. McCaughrin

: Hi all...now i'm working in a little society and the first thing i've seen
: is a lot of file c and pc.
: But sometime happens....this application load in memory through a list of
: pointers more information..but now the question....we have modify
: somtething...and, sbrrrraaaaa...i receive a file core...
: and so the question....the memory allocated with malloc (used to expand
: the list), when received a core file who release the memory in particular
: the system call free() function before terminate the application ?

: Best regards all....Claudio

Hi, Claudio:

It sounds like you are running an application that is "dumping core",
which is to say, creating a "core file" for post mortem examination.

In cases where a C program terminates (normally or otherwise) before
all malloc'd memory has been free'd, the memory is automatically
recovered, sometimes by epilogue code generated by the C compiler
and otherwise, by the operating system.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,155
Messages
2,570,871
Members
47,401
Latest member
CliffGrime

Latest Threads

Top