I have a simple C program which I can compile with the
simple command:

 gcc cluster.c -lm

and it compiles fine on both Solaris and RH 5.0.

However, it only runs on Solaris. On RH 5.0, it
runs part way and then crashes with:

Segmentation violation

as the error. I have tried this with the stock gcc from RH5.0
and the egcs  in the contrib directory. Anybody know what is up
here? I suspect it is the glibc but I am not knowledgable enough
on C to track down the problem. So I am looking for suggestions
as to what the problem could be and/or how to track it down, that
is, do I use gdb or something like that to find out what's causing
the Seg. fault?

Thanks,

-- 
 +--------------+   Brian Kirkland          phone: (512) 425-5235
 | _____  _____ |                           fax  : (512) 425-5201
 |_|   |  |   |_|   Senior Design Engineer  email: [EMAIL PROTECTED]
 ____  |  | _    _  CYPRESS SEMICONDUCTOR  
 /__\  |  | |\  /|  Austin Design Center
/    \ |  | | \/ |        
    ___|  |___      CLASS OF '92            Red Hat Linux 5.0 User
    |________|      GIG'EM AGS!


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to