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; 4+ 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] 4+ messages in thread
* [Bug libc/9890] clntraw_create and svcraw_create do not communicate 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 ` 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 2 siblings, 0 replies; 4+ messages in thread From: yair dot lenga at citi dot com @ 2009-02-24 12:37 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From yair dot lenga at citi dot com 2009-02-24 12:37 ------- Created an attachment (id=3760) --> (http://sourceware.org/bugzilla/attachment.cgi?id=3760&action=view) Test Case for clntraw_create/svcraw_create Test program picked from the Internet, with few modification to make the code compile with model c99 compiler. To build Solaris 8: c99 t5.c -lnsl Linux (RH4): c99 t5.c Run as: a.out 50 Output: 51 -- 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] 4+ messages in thread
* [Bug libc/9890] clntraw_create and svcraw_create do not communicate 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 2 siblings, 0 replies; 4+ messages in thread From: drepper at redhat dot com @ 2009-02-24 19:35 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From drepper at redhat dot com 2009-02-24 19:35 ------- Use the TI-RPC library instead. The code in glibc is too old and it cannot be updated because this breaks the ABI. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX 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] 4+ messages in thread
* [Bug libc/9890] clntraw_create and svcraw_create do not communicate 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 2 siblings, 0 replies; 4+ messages in thread From: yair dot lenga at citi dot com @ 2009-02-24 19:59 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From yair dot lenga at citi dot com 2009-02-24 19:59 ------- Hi, Can you post the location of TIRPC (SRPM or source tree ) for RedHat 4/5 ? Thanks for the prompt resopnse. -- 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] 4+ messages in thread
end of thread, other threads:[~2009-02-24 19:59 UTC | newest] Thread overview: 4+ 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
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).