473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Fatal Error in C

Hi,

I am writing a program in C. The following error message appears:

************************************************** ************************
"XIO: fatal IO error 14 (Bad address) on X server ":0.0"after 0
requests (0 known processed) with 0 events remaining. Segmentation
fault."
************************************************** ************************

I am using linux - Gnome Desktop version 2.10.2 and run my program in
the terminal.

Do you know what is going on?

Many thanks,
Kenneth

May 22 '06 #1
6 7881
ke********@yahoo.com.hk wrote:
Hi,

I am writing a program in C. The following error message appears:

************************************************* *************************
"XIO: fatal IO error 14 (Bad address) on X server ":0.0"after 0
requests (0 known processed) with 0 events remaining. Segmentation
fault."
************************************************* *************************

I am using linux - Gnome Desktop version 2.10.2 and run my program in
the terminal.

Do you know what is going on?

Many thanks,
Kenneth


<OT>
Quick! Before the first reply comes. Ok, I have my soda, popcorn, and
a comfortable seat. Let the show begin! ;)
</OT>
May 22 '06 #2
ke********@yahoo.com.hk said:
Hi,

I am writing a program in C. The following error message appears:

************************************************** ************************
"XIO: fatal IO error 14 (Bad address) on X server ":0.0"after 0
requests (0 known processed) with 0 events remaining. Segmentation
fault."
************************************************** ************************

I am using linux - Gnome Desktop version 2.10.2 and run my program in
the terminal.

Do you know what is going on?


Yes.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
May 22 '06 #3
Actually it is a opengl program using C. and my program and the
animation are running properly. Suddenly it happens.

So, what is going on?

May 22 '06 #4
Ico
ke********@yahoo.com.hk wrote:
Hi,

I am writing a program in C. The following error message appears:

************************************************** ************************
"XIO: fatal IO error 14 (Bad address) on X server ":0.0"after 0
requests (0 known processed) with 0 events remaining. Segmentation
fault."
************************************************** ************************

I am using linux - Gnome Desktop version 2.10.2 and run my program in
the terminal.

Do you know what is going on?


[Offtopic] Don't mix threads and X. For more info, go to comp.windows.x.

--
:wq
^X^Cy^K^X^C^C^C^C
May 22 '06 #5

"Ico" <us****@zevv.nl> wrote in message
news:44**********************@dreader30.news.xs4al l.nl...
ke********@yahoo.com.hk wrote:
Hi,

I am writing a program in C. The following error message appears:

************************************************** ************************
"XIO: fatal IO error 14 (Bad address) on X server ":0.0"after 0
requests (0 known processed) with 0 events remaining. Segmentation
fault."
************************************************** ************************

I am using linux - Gnome Desktop version 2.10.2 and run my program in
the terminal.

Do you know what is going on?


[Offtopic] Don't mix threads and X. For more info, go to comp.windows.x.


Don't let these guys discourage you. As long as you use an OS written in C,
then I'll pretend to know what a segfault is. joe
May 22 '06 #6
ke********@yahoo.com.hk opined:
Actually it is a opengl program using C. and my program and the
animation are running properly. Suddenly it happens.

So, what is going on?


To Roberto Waltman: Crack open the soda. It begins... NOW!

To OP:

Quote context, even yourself. Read the link in my sig -- carefully.

So, what IS going on, then?

Well, my crystal ball (lovingly designed by DS9K, and delivered by a
bunch of flying pigs out of somebody else's UB ridden code) tells me
that you have a memory leak, and that the root cause is on the line
42. Apart from that, there's 17 other instances of Undefined
Behaviour, and 57 `printf()` statements not terminated by '\n'. The
latter are preventing you to see the problem clearly, as there's
actually no output (apart from the error message).

Now, if you want any help, please post a minimal compilable example of
your code, and make sure that the problem is not OS, processor or
compiler extension specific. If any of the previous do not hold, you
should go where the offending one(s) are topical. Here, we discuss
only Standard C, and it knows not of threads, X windows, Y windows, or
even MS Windows.

--
Insults are effective only where emotion is present.
-- Spock, "Who Mourns for Adonais?" stardate 3468.1

<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>

May 22 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: PeterF | last post by:
Hello, what is wrong here? the purpose is to create an array of objects and then interate over it, calling some method from all of them. I get just the following at the marked line ("// FATAL...
8
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
2
by: Itjalve | last post by:
This gives me a fatal error. I'm using .NET VC7.1 and made a win32 consol app, I have no problems with VC6. Debug build. I have removed nearly all my code this is whats left. From the beginning...
6
by: Steve Crawford | last post by:
I've started seeing the following in my logs: FATAL: invalid frontend message type 8 I searched back over a month and there are 5 instances of this error of which 4 are in the last 24 hours. ...
4
by: ARF | last post by:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm getting fatal compiler errors. I start with a default C++/CLR class library project and modify it by adding the following...
0
by: Rich | last post by:
I am trying to obtain more debugging information for an issue I reported (ref. Bug #37185 <http://bugs.php.net/bug.php?id=37185&edit=2>). Unfortunately, I do not have access to the now-ancient...
1
by: R | last post by:
Hi All, I'm using PHP 5, my code fully separates code from content, my code throws exceptions (LIZException) when error occurs. but every time I throw exception I get this fatal error: ...
3
by: Dhieraj | last post by:
While compiling a C++ code I am getting the following error : CC -c -I/opt/iona/artix/2.0/include -I/opt/iona/asp/6.0/include -I/opt/ar/api63/include -I//var/tmp/vidya/aotscommon/include ...
1
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a...
2
by: lwo3108 | last post by:
Hi I am using PHP 4.3.1 and i have written a little code for purpose of CAPTCHA Image. i am running this code locally on localhost using IIS 5.0. When i open the code page, i get an fatal...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.