Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!math.ohio-state.edu!uwm.edu!ogicse!netnews.nwnet.net!ns1.nodak.edu!plains.NoDak.edu!tinguely From: tinguely@plains.NoDak.edu (Mark Tinguely) Newsgroups: comp.os.386bsd.bugs Subject: Re: ioctls and core dumps Message-ID: <C920ot.BH3@ns1.nodak.edu> Date: 23 Jun 93 03:07:41 GMT Article-I.D.: ns1.C920ot.BH3 References: <1993Jun22.173715.6498@fac.com> <C91nEG.LnL@ns1.nodak.edu> <1993Jun22.224941.10272@uvm.edu> Sender: usenet@ns1.nodak.edu (Usenet login) Organization: North Dakota State University Lines: 21 Nntp-Posting-Host: plains.nodak.edu In article <1993Jun22.224941.10272@uvm.edu> wollman@trantor.emba.uvm.edu (Garrett Wollman) writes: >In article <C91nEG.LnL@ns1.nodak.edu> tinguely@plains.NoDak.edu (Mark Tinguely) writes: >> I found this a while ago in a small program using kvm. I used a global >> variable "free". > >You're not allowed to do that. Anything that happens to you as a >result of running such a program (including, but not limited to, your >computer turning into a frog) is entirely within the bounds of the C >Standard. I can see the core dump, but I was trying to point out the executable binary gets modified in the filesystem causing immediately failure on subsequental runs (which is wrong). >(However, as a quality-of-implementation issue, it would be nice if >you got something like "_free: multiply defined" from the linker. this is something that I wished it would do, but never took the time to bother with the linker. --mark.