If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > segmentation fault

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-06, 23:50
kumarangopi kumarangopi is offline
Registered User
 
Join Date: Nov 2006
Posts: 2
segmentation fault

two.c:
#include<stdio.h>
main()
{
printf("hello C is working");
}

#gcc -0 two two.c
#./two
segmetnation fault
#gdb two two.core
This GDB was configured as "i386-marcel-freebsd"..(no debugging symbols found)..
Core was generated by 'two'
Program terminated with signal 11,segmentation fault
Reading symbols from /lib/lib.so.6..(no debugging symbols found)..done
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)..done

Loaded symbols for /libexec/ld-elf.so.1
#0 0x08048455 in _start()

#backtrace
#0 0x08048455 in _start()
#1 0x00000001 in ?? ()


----these are the errors,what to do now.please help.iam stucked.actually i have nothing to do with two.c.When i ./configure in SDL folder iam getting cannot run c compiled programs.Thats y iam into gdb after running gcc
Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 11-28-06, 02:42
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
And how is this related to Unix shell script?
Maybe you’ll have better luck posting at one of these:
gnu.gcc
comp.unix.bsd.freebsd.misc
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On