[net.lang.c++] core dump when using stream I/O

doon@sdcrdcf.UUCP (Harry W. Reed) (05/14/86)

Hi, I am attempting to get C++ up and running on a VAX-780 running 4.2bsd.
The problem I am having is that whenever I attempt to use the stream output
mechanism of C++ I get a bus error. Has anybody else experienced this? I assume
it is a problem either in libC.a or in stream.h etc. Any help would
be most appreciated.

	Thanks,
	Harry Reed

rbm@sfsup.UUCP (R.B.Murray) (05/15/86)

> Hi, I am attempting to get C++ up and running on a VAX-780 running 4.2bsd.
> The problem I am having is that whenever I attempt to use the stream output
> mechanism of C++ I get a bus error. Has anybody else experienced this? I assume
> it is a problem either in libC.a or in stream.h etc. Any help would
> be most appreciated.
> 
> 	Thanks,
> 	Harry Reed

Make sure your static constructors are working.
The streams package uses static constructors to initialize things; if
for some reason your static constructors aren't being called, you 
will get a core dump the first time you try to do any stream I/O.

Rob Murray
AT&T
Summit, NJ