Fatal Error in C

K

kennethlou

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
 
R

Roberto Waltman

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>
 
R

Richard Heathfield

(e-mail address removed) 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.
 
K

kennethlou

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?
 
I

Ico

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.
 
J

Joe Smith

Ico 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?

[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
 
V

Vladimir Oka

(e-mail address removed) 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,517
Latest member
Andres38A1

Latest Threads

Top