Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-03-2003, 04:41 AM   #1
LQ Newbie
Registered: Oct 2003
Distribution: Debian 'Woody"
Posts: 24

Rep: Reputation: 15
interpreting gdb......


I am new to prgramming in c and I came across the mmap function and decide to see how it works by writing a smal piece of code.
void *ptr=0;
int size,stat;
ptr=mmap(0,2,PROT_WRITE,MAP_SHARED,213,size) ;
as expected(?), i get a seg fault.
I run gdb and it says:
program recieved SIGSEGV...blah blah,
0x40068f73 in vfprintf() from /lib/ <-------(what does this mean)

how do I interpret such messages.I tried 'info gdb' and found it more cryptic than the debug messages themselves.
soory for the long message,
help anyone?
Old 12-03-2003, 07:20 AM   #2
jim mcnamara
Registered: May 2002
Posts: 964

Rep: Reputation: 36
gdb programfilename core

At the prompt type


this will show you a stack dump

0x40068f73 in vfprintf() from /lib/

means the error occurred in module vrpintf() which was dynamically linked in from the shared library libc

If you want to learn gdb -

try man gdb to see how to start it up
Then when running gdb, type
there is extensive help, good enough to let you learn how to you use the program effectively.

Last edited by jim mcnamara; 12-03-2003 at 07:21 AM.
Old 12-03-2003, 11:12 PM   #3
LQ Newbie
Registered: Oct 2003
Distribution: Debian 'Woody"
Posts: 24

Original Poster
Rep: Reputation: 15
thanks alot o god's gift to earth.mind if i nominate you for the nobel in 2100;-)


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
normal gdb and spec gdb for kgdb Igor007 Programming 1 09-23-2005 05:15 PM
normal gdb and spec gdb for kgdb Igor007 Linux - Newbie 1 09-23-2005 02:41 PM
gdb .. looking for 32 bit gdb.. for ia64 suse.. nkshirsagar SUSE / openSUSE 0 12-09-2004 04:02 AM
interpreting system messages corbis_demon Linux - Newbie 1 10-29-2004 01:54 PM
interpreting a cron nitaish Linux - General 1 10-15-2004 01:18 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:18 AM.

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