LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   gcc core dump (https://www.linuxquestions.org/questions/programming-9/gcc-core-dump-458112/)

divukman 06-25-2006 07:25 AM

gcc core dump
 
Hi all,

I have gcc version 4:4.0.3-4. The thing is that I don't get a core dump.
If I compile with "gcc -Wall -g source.c -o source" (and I have buffer overflow) I only get "Segmentation fault", but no core dumping.

What's the problem here?

slzckboy 06-25-2006 07:28 AM

do

ulimit -c unlimited

from the cmd line 1st.

then re- run your code.

divukman 06-25-2006 07:35 AM

Quote:

Originally Posted by slzckboy
do

ulimit -c unlimited

from the cmd line 1st.

then re- run your code.

Code:

$ ./vuln
Segmentation fault (core dumped)

THANKS !
:D:D:D


All times are GMT -5. The time now is 11:35 PM.