Re: Segmentation fault

From: Mike Breuer (mbreuer@new.rr.com)
Date: 09/14/01


From: "Mysidia" <jmhess@I-55.COM>
> Note that some C libraries will check for and throw away NULL fcloses
> silently, others will not check and memory corruption results;
> fclose as found in MSVC++ does a direct assert() on the condition.

I am running my MUD on a default RedHat 7.1 install (which is what I'm
guessing is what was meant by Linux 7.1).  When I put in ASCII player files,
I forgot to take out the fclose(player_fl); from comm.c, and received a
segmentation fault on shutdown.  player_fl was being defined as NULL and
never used, so doing an fclose(NULL) on that platform definitely will cause
a crash.

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST