Path: utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: slee%saguaro.Berkeley.EDU@ucbvax.berkeley.edu (Seungjun Lee) Newsgroups: comp.sys.sun Subject: LWP library and g++ Keywords: No Digest Subjects in Unmoderated Mode Message-ID: <3729@brchh104.bnr.ca> Date: 5 Jun 91 14:17:00 GMT Sender: news@brchh104.bnr.ca Organization: Sunspots, Pseudo-Unmoderated Lines: 15 Approved: sun-spots@rice.edu X-Original-Date: 4 Jun 91 22:28:16 GMT 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