[New-bugs-announce] [issue1327] Python 2.4+ spends too much time in PyEval_EvalFrame w/ xmlrpmclib

Eric Sammons report at bugs.python.org
Thu Oct 25 23:33:47 CEST 2007

New submission from Eric Sammons:

Created a small program using xmlrpclib.  When connecting to one url
where my list is < 300 items and the program finishes no problem. 
Connect to another url where my list is over 500 items and the program
times out after 40+ minutes with no results printed.  On my RHEL system
I used oprofile and determined that time spent was in ceval.c, symbol
PyEval_EvalFrame. This issue seems to be new to Python 2.4 as shipped
with RHEL.  I am currently in the process of building non-RHEL python to
 verify issue does or does not exist there as well.

#!/usr/bin/env python

import xmlrpclib

u = 'someuser'
p = 'password'

server_url = 'http://rhn.redhat.com/rpc/api'

server = xmlrpclib.Server(server_url)

session = server.auth.login(u,p)

l = server.channel.listSoftwareChannels(session)
for a in l:
    print a['channel_label']

components: Library (Lib), XML
files: ceval.c
messages: 56755
nosy: eanxgeek
severity: critical
status: open
title: Python 2.4+ spends too much time in PyEval_EvalFrame w/ xmlrpmclib
type: behavior
versions: Python 2.4, Python 2.5
Added file: http://bugs.python.org/file8611/ceval.c

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ceval.c
Type: text/x-csrc
Size: 176814 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071025/7b3d12df/attachment-0001.c 

More information about the New-bugs-announce mailing list