core dump

This is a discussion on core dump within the Linux Programming forums, part of the Platform Specific Boards category; I have a program that is segfaulting - I want to look at the core dump, except that I am ...

  1. #1
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528

    core dump

    I have a program that is segfaulting - I want to look at the core dump, except that I am not getting one in my directory - do I need to specify something to gcc to make it leave the core dump file in my directory?

    gcc -Wall -ggdb -o progname progname.c

    ~/

    :: edit - ah, I found a solution -

    ulimit -c unlimited

    now I have a core dump
    Last edited by kermit; 08-03-2004 at 06:33 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Core Dump when closing the ifstream object- why?
    By Krsh in forum C++ Programming
    Replies: 11
    Last Post: 11-20-2008, 05:03 AM
  2. having a core dump
    By justins in forum C Programming
    Replies: 6
    Last Post: 05-21-2008, 12:00 PM
  3. STL vector core dump
    By creativeinspira in forum C++ Programming
    Replies: 9
    Last Post: 07-22-2007, 04:49 PM
  4. Core Dump in While()
    By KrepNatas in forum C Programming
    Replies: 5
    Last Post: 05-17-2005, 11:15 AM
  5. core dump
    By lonbgeach in forum C Programming
    Replies: 1
    Last Post: 04-07-2003, 03:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21