473,626 Members | 3,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

segmentation fault(core dumped)

3 New Member
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.actuall y 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
Nov 28 '06 #1
1 5368
smithan
16 New Member
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.actuall y 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
hello,

im not sure, but i believe ur compilation string must be gcc -o two two.c
instead of -O, the alphabet "o" mus be in small....

Thanks
Smitha
Nov 28 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
22162
by: N.S. du Toit | last post by:
Just having a bit of trouble programming with C under FreeBSD 5.1 using the gcc compiler. I'm a bit new to C so my apologies if the answer to my question appear obvious :) Basically I've written a function that will check whether a string is an ip address (see the function isIP below). During my attempt at debugging this problem I inserted a printf statement before the return command from the statement, and also a printf statement...
0
3135
by: dboileau | last post by:
Can anyone help me out with this error, I am trying to compile mysql with gcc 3.4.6 (Compiled from source) using CC=gcc CFLAGS="-O3 -mcpu=v8 -Wa,-xarch=v8plusa" \ CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti -mcpu=v8 -Wa,-xarch=v8plusa" \ ../configure --prefix=/opt/build/mysql --with-low-memory \ --enable-assembler make
29
3595
by: DanielJohnson | last post by:
I wrote this small program to reverse each word in the string. For example: "I love You" should print as "I evoL uoY". I get Segmentation Fault (core dumped) error upon running the program. It compiles fine. // Program to reverse each word in the string #include<stdio.h> int main() { void reverse_string(char *, int, int);
2
4748
by: Verdana | last post by:
We're using Python 2.5 on our production and testing servers, which both run SunOS 5.8 and Oracle 10g. The script we're working on is supposed to process wddx packets, enter some info in the database and move the packet for further processing. On the testing server everything works fine. However, on production server, every time the script runs once python is finished with it and its own cleanup procedures we get the "Segmentation Fault (core...
4
3919
by: Willy Wijaya | last post by:
I have wrote this code.. But when i try to compile it using gcc in PCLinuxOS 2007, i got this message "Help me about segmentation fault (core dump)" when I run the client script.. //CLIENT #include <stdio.h> #include <sys/types.h> #include <sys/sem.h> #include <sys/ipc.h> #include <string.h>
0
8266
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8199
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8638
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.