[comp.lang.c++] sun task library

dhj@aegir.dmt.oz (Dennis Jarvis) (10/26/87)

Has anyone made the task library for a sun successfully? If so, I would
like to hear from them ... I have installed
	- c++ (v 1.2)(minus the task library) successfully on a gould
	- c++ (v 1.2)(minus the task library) successfully (i think) on a 
	  sun-3/50 running release 3.3
However, when I install the task library on the sun and try to run
the example in appendix c of "a set of c++ classes for coroutine style
programming" (part 3 of the release notes), the program dumps core. Output 
is as follows:
	main
	new pc(a,144100,144272)
	Segmentation fault (core dumped)
adb gives the following trace:
	__task_restore
	__sched_schedule
	__task_sleep
	__qhead_get
	__pc_ctor
	_main
I have tried another noddy program, and it results in the same behaviour.
The only modification I made to the example was remove the void declaration
from the constructor (otherwise it wouldn't compile).
________________________________________________________________________
Dennis Jarvis,		CSIRO Division of Manufacturing Technology,
			PO Box 4, Woodville, South Australia 5011, Australia.

PHONE: +61 8 268 0156	ARPA  : dhj%aegir.dmt.oz@uunet.uu.net
FAX  : +61 8 268 6757	CSNET : dhj@aegir.dmt.oz
TELEX: AA88863		UUCP  : {uunet,ukc,mcvax}!munnari!aegir.dmt.oz!dhj
			ACSNET: dhj@aegir.dmt.oz