9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] snap(4) problems
@ 2002-06-11 15:50 andrey mirtchovski
  0 siblings, 0 replies; 2+ messages in thread
From: andrey mirtchovski @ 2002-06-11 15:50 UTC (permalink / raw)
  To: 9fans

the program in question is very simple:

	#include <u.h>
	#include <libc.h>

	void
	main()
	{
		for(;;) {
			print("test\n");
			 sleep (10000);
		}
	}

this program is compiled and ran in a terminal, then the following
instructions are executed in another:

% echo stop > /proc/$pid/ctl
% snap $pid > /tmp/$pid.snap
%

unfortunately snap(4) crashes even though it seems to work fine with
other programs...

any ideas or a quick fix?




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] snap(4) problems
@ 2002-06-11 22:27 Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2002-06-11 22:27 UTC (permalink / raw)
  To: 9fans

fixed on sources.  the problem was that
the Bss for this program had zero length,
which i didn't realize could happen.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-11 22:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-11 15:50 [9fans] snap(4) problems andrey mirtchovski
2002-06-11 22:27 Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).