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
1 5368
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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
|
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);
|
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...
|
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>
| |
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |