Bug 481388 - svc_req ABI incompatibility between glibc and libtirpc
Summary: svc_req ABI incompatibility between glibc and libtirpc
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libtirpc
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-23 22:44 UTC by Chuck Lever
Modified: 2009-02-05 02:16 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-02-05 02:16:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to correct ordering of fields in libtirpc's svc_req structure (3.43 KB, patch)
2009-01-23 22:44 UTC, Chuck Lever
no flags Details | Diff

Description Chuck Lever 2009-01-23 22:44:32 UTC
Created attachment 329888 [details]
Patch to correct ordering of fields in libtirpc's svc_req structure

Description of problem:
The svc_req struct is returned from a number of public RPC functions.  The field order in the libtirpc version is slightly different than the field order in the legacy glibc version.  This causes compatibility problems in large RPC-related software products that may be transitioning from legacy to tirpc.

Version-Release number of selected component (if applicable):
All versions of libtirpc to date.

How reproducible:
Always

Steps to Reproduce:
1. compare the position of the rq_xprt field in /usr/include/rpc/svc.h's svc_req to /usr/include/tirpc/rpc/svc.h's svc_req
2.
3.
  
Actual results:
TI-RPC's svc_req contains the extra fields rq_clntname and rq_svcname which makes the offset to rq_xprt incorrect.

Expected results:
The offset of the rq_xprt field should be the same in both definitions to guarantee ABI compatibility

Additional info:

This is a problem when an RPC application is built using libtirpc for client operations, but the server components still call and link with glibc's RPC functions.

Comment 1 Steve Dickson 2009-01-28 15:30:48 UTC
Fixed in libtirpc-0.1.10-3.fc11
Fixed in libtirpc-0.1.10-2.fc10

Comment 2 Fedora Update System 2009-01-29 23:09:26 UTC
libtirpc-0.1.10-2.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libtirpc'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-1171

Comment 3 Fedora Update System 2009-02-05 02:16:29 UTC
libtirpc-0.1.10-2.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.