Bug 131609

Summary: Crash on import net/py-xmlrpc in python 2.5
Product: Ports & Packages Reporter: Andriy Pylypenko <bamby>
Component: Individual Port(s)Assignee: Hye-Shik Chang <perky>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Andriy Pylypenko 2009-02-12 15:00:15 UTC
There is a bug in the py-xmlrpc module which leads to crash of the interpreter. In the module the PyObject_NEW()/PyMem_DEL() are used while the PyObject_NEW()/PyObject_DEL() pair must be used. This bug is well known actually and very old. But the project looks to be abandoned so the fix has not been incorporated into the source code yet. Here is this bug report and fix at the project's tracker.

http://sourceforge.net/tracker/index.php?func=detail&aid=1734819&group_id=23992&atid=380301

Fix: PyMem_DEL() calls must be replaced with PyObject_DEL() calls.

Patch attached with submission follows:
How-To-Repeat: Install the module under Python 2.5 or higher and try to import it.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-02-13 13:10:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perky

Over to maintainer.
Comment 2 dfilter service freebsd_committer freebsd_triage 2009-02-27 01:35:40 UTC
sobomax     2009-02-27 01:35:30 UTC

  FreeBSD ports repository

  Modified files:
    net/py-xmlrpc        Makefile 
  Added files:
    net/py-xmlrpc/files  patch-src_rpcBase64.c 
                         patch-src_rpcBoolean.c 
                         patch-src_rpcClient.c patch-src_rpcDate.c 
                         patch-src_rpcDispatch.c 
                         patch-src_rpcSource.c 
  Log:
  Fix python interpreter crash caused by the incorrect use of PyMem_DEL()
  instead of PyObject_DEL().
  
  PR:             ports/131609
  Submitted by:   Andriy Pylypenko <bamby@sippysoft.com>
  Approved by:    MAINTAINER's timeout
  
  Revision  Changes    Path
  1.15      +1 -0      ports/net/py-xmlrpc/Makefile
  1.1       +14 -0     ports/net/py-xmlrpc/files/patch-src_rpcBase64.c (new)
  1.1       +14 -0     ports/net/py-xmlrpc/files/patch-src_rpcBoolean.c (new)
  1.1       +14 -0     ports/net/py-xmlrpc/files/patch-src_rpcClient.c (new)
  1.1       +14 -0     ports/net/py-xmlrpc/files/patch-src_rpcDate.c (new)
  1.1       +14 -0     ports/net/py-xmlrpc/files/patch-src_rpcDispatch.c (new)
  1.1       +14 -0     ports/net/py-xmlrpc/files/patch-src_rpcSource.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2009-03-18 06:25:04 UTC
State Changed
From-To: open->closed

committed 2009-02-27.