Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!killer!convex!iex!ntvax!yang1 From: yang1@ntvax.UUCP (cqyang class) Newsgroups: comp.lang.c++ Subject: Bug in AT&T C++ compilier ? Keywords: C++, tasking, bugs Message-ID: <416@ntvax.UUCP> Date: 29 Mar 89 19:07:13 GMT Organization: University of North Texas Lines: 56 Is this a bug or what? I am having a problem with the AT&T C++ compilier using its tasking facility. I am writting a program that implements various algorithms of the n-queens problem, and am using the tasking facility to create a number 'taks'. There seems to be a problem that when the tasks complete, there is still somethinf left over on the stack. The following is a program that may help figure out what the compilier's (or my) problem is. This program should loop forever, but abends after some 48,800 times. It says there has been a stack overflow and dumps some 6.2 megabytes of core. Am I doing something wrong ? #include #include #define QUEENS 8 #define QUEENS_M_1 (QUEENS - 1) class Player : task { private : static int ply_taks; public : Player(int Row, int Col); char players_piece; t_inc() { return(++ply_taks); } }; Player::Player(int Row, int Col) { register int i, j; if(Col) Col++; resultis(0); } main() { Player *Aplayer; int i, j; printf("\nmain: start the players running\n"); for(i=0;;i++) { printf("%d\n", i); Aplayer = new Player(i,i); j = Aplayer->Player::result(); } exit(0); } *************************************************************************** * Jim Stinson yang1@dept.csci.unt.edu * * University of * * North Texas * ***************************************************************************