Package: python2.4
Version: 2.4.3-8
When I add the feed for www.bildblog.de to rss2email, i.e.
<http://feeds.feedburner.com/Bildblog> r2e run does not terminate
anymore bug consumes loads of memory.
This seems to be problem of the python2.4 package since r2e uses
python-feedparser which uses xml.sax.make_parser. Reverting to
version 2.4.3-7 of python2.4 fixes the problem.
This is what it looks like:
19398 silly 20 0 8900 8900 2468 R 0 94.8 1.1 3:54 python
/usr/share/rss2email/rss2email.py feeds.dat run
^^^^
These are the running r2e processes:
silly 19221 0.2 0.0 1592 632 tty1 S+ 17:37 0:01 strace -f r2e
run
silly 19222 0.9 1.1 13024 8900 tty1 S+ 17:37 0:01 python
/usr/share/rss2email/rss2email.py feeds.dat run
silly 19397 0.0 1.1 13024 8900 tty1 S+ 17:37 0:00 python
/usr/share/rss2email/rss2email.py feeds.dat run
silly 19398 81.8 1.1 13024 8900 tty1 R+ 17:37 2:26 python
/usr/share/rss2email/rss2email.py feeds.dat run
Pid 19397 is emitting system calls, while 19398 is not.
Except from the strace output
(...)
[pid 19397] getppid() = 19222
[pid 19397] poll([{fd=3, events=POLLIN}], 1, 2000) = 0
[pid 19397] getppid() = 19222
[pid 19397] poll([{fd=3, events=POLLIN}], 1, 2000) = 0
(...)
Directly in r2e the problem is in the execution of the
parse method:
rss2email.py:
try:
r = timelimit(FEED_TIMEOUT,
parse)(f.url, f.etag, f.modified)
except TimeoutError:
print >>warn, 'W: feed "%s" timed out'
% f.url
continue
which executes:
return feedparser.parse(url, etag, modified)
Looking at feedparser.py, the proble occurs in parser(source):
[..]
saxparser = xml.sax.make_parser(PREFERRED_XML_PARSERS)
[..]
try:
saxparser.parse(source)
except Exception, e:
[..]
Hope this helps to track down the real problem.
Regards,
Joey
--
GNU GPL: "The source will be with you... always."
Please always Cc to me when replying to me on the lists.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]