LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-25-2006, 08:25 AM   #1
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Blog Entries: 8

Rep: Reputation: 15
Question 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?
 
Old 06-25-2006, 08:28 AM   #2
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
do

ulimit -c unlimited

from the cmd line 1st.

then re- run your code.
 
Old 06-25-2006, 08:35 AM   #3
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140

Original Poster
Blog Entries: 8

Rep: Reputation: 15
Talking

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 !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Core Dump MrPotatoHead AIX 3 01-14-2004 10:42 AM
no core dump with gcc -g -D_GNU_SOURCE cicisbeo Programming 2 11-27-2003 03:38 PM
Forcing gcc to dump the core tim_l Linux - Software 2 10-13-2003 10:42 PM
core dump tomservo Linux - General 4 09-23-2002 06:35 PM
core dump lacrimae Linux - General 3 02-19-2002 02:43 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration