Memory Fault

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aptripathi
    New Member
    • Apr 2008
    • 3

    Memory Fault

    Am getting an error Memory Fault(coreDump)
    --------------------------------------------------------------------------------

    Am getting the above mentioned error
    MemoryFault(Cor edump)while running an executable compiled with ProC

    what shud i do?
    and what can be the cause
  • arne
    Recognized Expert Contributor
    • Oct 2006
    • 315

    #2
    Originally posted by Aptripathi
    Am getting an error Memory Fault(coreDump)
    --------------------------------------------------------------------------------

    Am getting the above mentioned error
    MemoryFault(Cor edump)while running an executable compiled with ProC

    what shud i do?
    and what can be the cause
    When producing a segfault you're typically accessing a memory region that you should not access, e.g. dereferencing a NULL pointer.

    The core file that has been produced will give you a clue where the problem lies. (If you're using gcc use the '-g' option for producing debugging info; gdb -c <core file> <executable file> will then help you to identify the problem).

    HTH,
    arne

    Comment

    • gpraghuram
      Recognized Expert Top Contributor
      • Mar 2007
      • 1275

      #3
      Originally posted by arne
      When producing a segfault you're typically accessing a memory region that you should not access, e.g. dereferencing a NULL pointer.

      The core file that has been produced will give you a clue where the problem lies. (If you're using gcc use the '-g' option for producing debugging info; gdb -c <core file> <executable file> will then help you to identify the problem).

      HTH,
      arne
      As suggested by arne you can use gdb with core toidentify the problem.
      after u have started the program with gdb and core type "where" which will give you the place where the program has crashed

      Raghuram

      Comment

      Working...