From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from groucho.cs.psu.edu ([130.203.2.10]) by hawkwind.utcs.toronto.edu with SMTP id <2701>; Thu, 13 Aug 1992 03:29:15 -0400 Received: from localhost by groucho.cs.psu.edu with SMTP id <2686>; Thu, 13 Aug 1992 03:28:57 -0400 To: netapp!byron@netcom.com (Byron Rakitzis) cc: rc@hawkwind.utcs.toronto.edu Subject: Re: memory leaks In-reply-to: Your message of "Wed, 12 Aug 92 23:44:29 EDT." <9208130344.AA06713@netapp.netapp> Date: Thu, 13 Aug 1992 03:28:39 -0400 From: Scott Schwartz Message-Id: <92Aug13.032857edt.2686@groucho.cs.psu.edu> | Well, instead of being depressed about it you could send me some mail | with a full bug report. Sorry. I needed to play empire for a while first. :-) | I just looked at my rc-1.4 and I could not get it to leak on ^C. If you | gave described the problem in full (are you using readline, maybe a | prompt function doing something funny, etc.?) maybe somebody could do | something about it. I'm running vanilla 1.4 on a Sun sparc2 under 4.1.1, configured by typing ``cp config.h-dist config.h''. My prompt just prints status if error. Enclosed are some typescripts, one with an empty environment. My supposition is that rc is longjmping out of an activation record that has dynamically allocated some memory when it handles the sigint. Script started on Thu Aug 13 03:05:27 EDT 1992 ; exec ./rc-1.4-sun4 ; ps v$pid PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 26690 rf S 0:00 0 8 0 76 320 xx 0.0 2.2 rc ; ^C ; ps v$pid PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 26690 rf S 0:00 0 15 0 76 324 xx 0.0 2.2 rc ; ^C ; ps v$pid PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 26690 rf S 0:00 0 22 0 80 320 xx 0.0 2.2 rc ; ^C ; ps v$pid PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 26690 rf S 0:00 0 30 0 80 324 xx 0.0 2.2 rc ; ^C ; ps v$pid PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 26690 rf S 0:00 0 36 0 84 324 xx 0.0 2.2 rc ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ps v$pid PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 26690 rf S 0:00 0 51 0 108 348 xx 0.0 2.4 rc ; Script done on Thu Aug 13 03:07:02 EDT 1992 Script started on Thu Aug 13 03:09:45 EDT 1992 ; env - ./rc-1.4-sun4 ; ps v$pid PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 26717 p6 S 0:00 0 10 0 56 284 xx 0.0 1.9 rc ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ^C ; ps v$pid PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 26717 p6 S 0:00 0 22 0 80 308 xx 0.0 2.1 rc ; Script done on Thu Aug 13 03:10:23 EDT 1992 | (BTW, I hate to say this, but it peeves me a bit that you refer to the | leak in the plural. Sorry about that. I was speaking in generalities, "memory leaks" being a single concept of which I discovered an instance.