Article View: gnu.gcc.help
Article #41472Re: "Beginner in C needs help, thanks"
From: Marcel v.d. Berg
Date: Wed, 20 Mar 1996 00:00
Date: Wed, 20 Mar 1996 00:00
36 lines
2258 bytes
2258 bytes
David Baratte (BARATTE_D@uhbing.uhb.fr) wrote: : Sorry for my horrible english, : but when i run then a.out file, as a : result i have this message: : Segmentation default (core dumped) : certainly, it is very easy to solve this problem but i do not understand what this error's message means . : : Thank you (merci...) This means there is probably an error in your program. Probably something like addressing a string outside its bounaries. If this is the case you could end up overwriting a pointer or address. So next time the program needs the pointer or address, it will end up somewere in memory it is not allowed. The operating system will not allow this and will generate the segmentation fault, implying you addressed a memory segment wich belonged to another task. The corefile can be used with some debuggers to find out what went wrong. Normally you can remove this file. To prevent this you will have to be more carefull in writing your programs. The compiler can normally help to make extra runtime checks. To do this you will have to enable something like boundary checks. If your using gcc you could try the option -pedantic for strict ansi checks. There are also quality programs like QAC to check your software for errors. Bottom line is you need to program more carefully. success! -- -- ============================================================================== = Marcel van den Berg Dept:DSA-PIM Org:Hollandse Signaalapparaten B.V. = = Adress : P.O.box 42 7550 GD Hengelo, The Netherlands = = Phone :+31-74-2483994 FAX:+31-74-2484009 email:m_vd_berg@signaal.nl = =============================================================== Unclassified =
Technical Details
Message-ID:
<1996Mar20.095300.28368@hgl.signaal.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4i90op$9lf@news.univ-rennes1.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,cda7f25475ca71ad X-Google-Attributes: gid11318c,public From: m_vd_berg@hgl.signaal.nl (Marcel v.d. Berg) Subject: Re: "Beginner in C needs help, thanks" Date: 1996/03/20 Message-ID: <1996Mar20.095300.28368@hgl.signaal.nl> X-Deja-AN: 143356830 sender: usenet@hgl.signaal.nl (USENET News System) references: <4i90op$9lf@news.univ-rennes1.fr> organization: Hollandse Signaal apparaten BV newsgroups: gnu.gcc.help