slee%saguaro.Berkeley.EDU@ucbvax.berkeley.edu (Seungjun Lee) (06/05/91)
I'm implementing a process-oriented simulator in C++ using lwp library, and I have a problem. I defined a task class using lwp primitives, and a custom scheduler. And I wrote small examples using those classes. They are compiled using g++1.37 and run fine on a sun3. But they end up with segmentation faults when I recompile them on a sparc station and run them. LWP library is supposed to work both on sun3 and sun4, and I can't figure out what I did wrong. Is that a problem of the compiler(g++), or the LWP library? Could anybody help me out? Thanks. Seungjun Lee University of California, Berkeley slee@saguaro.berkeley.edu
slee@saguaro.Berkeley.EDU (Seungjun Lee) (06/11/91)
I'm implementing a process-oriented simulator in C++ using lwp(lightweight process) library from SUN, and I have a problem. I defined a task class and a scheduler with lwp primitives, and wrote a couple of test programs using those. The test programs compile under g++(1.37.1) and run successfully on a sun3. (sunOS 4.1.1) But when I try the same programs on a sparc station, they end up with segmentation faults. Is it the problem of LWP library with g++, or am I doing anything wrong? Could anybody help me out? Thanks. Is there any restriction in linking lwp library with C++ code on a sparc station? Could anybody help me out? Thanks in advance. Seungjun Lee University of California, Berkeley slee@saguaro.berkeley.edu