public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/9890] New: clntraw_create and svcraw_create do not communicate
@ 2009-02-24 12:35 yair dot lenga at citi dot com
  2009-02-24 12:37 ` [Bug libc/9890] " yair dot lenga at citi dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: yair dot lenga at citi dot com @ 2009-02-24 12:35 UTC (permalink / raw)
  To: glibc-bugs

The clntraw_create and svcraw_create functions are part of the SUNRPC package.
They are being used to implement in-process RPC - where a program can send an
RPC to itself. I'm using this function to to provide XML/HTTP interface for old
legacy program.

See the attached small program. On Solaris (5.8), running a.out 50 will return
51. On Linux it crashes.

I digged through the source code. The original SunOS version (Solaris 5.8) was
using a global shared buffer (_rawcombuf). the clntraw_create will place the
request into this buffer, and svcraw_create will fetch the data from this
buffer, and use it for response.

In the current version of glibc, the buffers were separated, and made private
(and thread safe)- svc_raw.c, and clnt_raw.c. The change seems to be
"mechanical" - every global was made thread safe/static. May be someone just
converted the code - got it compiled - but did not have any test case for those
functions.

Since the buffers are separated - the interprocess code does not work!. Minimal
solution will be make _raw_buf - private for every thread.

I know that the those functions are not used very often. Unfortunately, they are
part of a large system that I'm porting to Linux, and I hope that I do not have
to re-implement the functions from scratch.

-- 
           Summary: clntraw_create and svcraw_create do not communicate
           Product: glibc
           Version: 2.3.4
            Status: NEW
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: yair dot lenga at citi dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9890

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-9890-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-07-01 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 12:35 [Bug libc/9890] New: clntraw_create and svcraw_create do not communicate yair dot lenga at citi dot com
2009-02-24 12:37 ` [Bug libc/9890] " yair dot lenga at citi dot com
2009-02-24 19:35 ` drepper at redhat dot com
2009-02-24 19:59 ` yair dot lenga at citi dot com
     [not found] <bug-9890-131@http.sourceware.org/bugzilla/>
2014-07-01 20:48 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).