[Ilugc] segmentation faults

  • From: deepan.chakravarthy@xxxxxxxxx (Deepan Chakravarthy N)
  • Date: Thu Jan 26 19:33:20 2006

On 1/26/06, Sudharshan S <sudharsh@xxxxxxxxx> wrote:


hi,
wehn i get too many segmentation faults in apps that should hav worked
fine does it mean i need to check my ram..will memtest86 in debian based
distros solve the problem..not that i have this problem.....just
curious..:)



segmentations faults have got nothing to do with your ram.  MALLOC_CHECK_ is
the environment variable that decides how much  of memory violation your
operating system will tolerate. It also depends on the dynamic nature of
inputs that the program is subjected to. The version of GCC or CC or G++
that you used to compile your program will also affect how soon you would
get segmentation faults. Every new version of GCC discovers hidden errors in
old programs. when MALLOC_CHECK_ is set to 0 any detected heap corruption is
silently ignored.

you could try using valgrind or gdb to get more information about the bug.

regards
Sudharshan S

_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




--
--------------------------------------------------------------------------

Deepan Chakravarthy N,
College Student by Day, Programmer by nite.
Home Page: http://users.kaski-net.net/~deepan/


---------------------------------------------------------------------------

Deepan Chakravarthy N,
Final year, B.Tech(Biotech),
Center for Biotechnology,
Anna University, Chennai,
Tamil Nadu 600025.
Ph: 91-44-55127050

---------------------------------------------------------------------------

Other related posts: