• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Core dump

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic