Bug 218778

Summary: shmmodule, write() fails on 64 bit systems
Product: [Fedora] Fedora Reporter: Wolfgang Ocker <weo>
Component: pythonAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-06 21:33:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix write() method on 64 bit systems none

Description Wolfgang Ocker 2006-12-07 14:48:09 UTC
Description of problem:

On a 64 bit system the write() method of a shared memory object fails or writes
to a wrong memory location. In PyShmMemory_write(), PyArg_ParseTuple() is called
with an incorrect argument ("s#" requires a pointer to an int, not a pointer to
a long for the string's length).

Small patch attached ...

Comment 1 Wolfgang Ocker 2006-12-07 14:48:09 UTC
Created attachment 143057 [details]
fix write() method on 64 bit systems

Comment 2 Jeremy Katz 2007-01-06 21:33:41 UTC
The shmmodule isn't included in python as of python 2.5.  I've committed the fix
to CVS so that if we do an update for FC6, it'll go out there.