From: JONESD@kcgl1.eng.ohio-state.edu (David Jones)
Subject: Re: Multithreaded programs and RPCs
Date: 1995/09/04 [thread overview]
Message-ID: <42f657$oef@charm.magnus.acs.ohio-state.edu> (raw)
In-Reply-To: 4289kh$hv6@bcarh8ab.bnr.ca
In message <4289kh$hv6@bcarh8ab.bnr.ca>, smiller@bnr.ca (Scott Miller) writes:
>I wrote a simple program that spawns off a thread to act as an RPC server.
>It core dumps. However, if I spawn off a thread to do the 'main' loop, and
>use the main thread to act as the RPC server, it (seems to) work. Why is this?
>Can a non-first thread in a process act as an RPC server? Do I need to
>compile/link with some different switches?
>
>ONC RPC, OSF1 V3.2, using cc options '-threads -lc_r -lpthreads'. I've also
>thrown in '-lmach -lrpc -lrpcsvc'. Any clues?
Most likely the RPC server function overflows the stack in your created thread.
David L. Jones | Phone: (614) 292-6929
Ohio State Unviversity | Internet:
2070 Neil Ave. Rm. 122 | jonesd@kcgl1.eng.ohio-state.edu
Columbus, OH 43210 | vman+@osu.edu
Disclaimer: Dogs can't tell it's not bacon.
next prev parent reply other threads:[~1995-09-04 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-09-02 4:00 Multithreaded programs and RPCs Scott Miller
1995-09-04 4:00 ` David Jones [this message]
1995-09-05 4:00 ` Scott Miller
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox