This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Core dump Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Core dump" Watch "Core dump" New topic
Author

Core dump

vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello all,

Iam creating a application for client/server interaction purpose in unix,
iam in intial stage still created menu but when i run the program the server will terminate abnormally by doing coredump (it display the message).

My question is what is coredump why it occurs how can we reduce that.

Thanks in advance.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10929
    
  12

a coredump is basically a dump of everthing in your program space's memory block - the values of all the variables, everything on the stack and on the heap, etc. they're very cryptic and hard to read, although they used to be the ONLY way to debug stuff.

coredumps usually occure when you use memory you shouldn't - i.e. writting too much to your character array in a C-style string, de-referencing a pointer that isn't set right...

They can be very hard to track down. If it happens often, or you can figure out how to trigger it, you can throw a bunch of logging in your program and run it. See what the last statement logged is, and that will help you narrow down where the problem is.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884
    
  10

Note that Java programs should never crash with a core dump. If the JVM crashes like that, then there is probably a bug in the JVM, or in native code that was called from the JVM.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Core dump
 
Similar Threads
weblogic 5.0
JSP problem
EJB3 Dependency Injection: How to write ApplicationClient injecting @EJB correctly ?
error
creating user accounts