Bug 651501 - rhn_check: memory alloc (200156 bytes) returned NULL
Summary: rhn_check: memory alloc (200156 bytes) returned NULL
Keywords:
Status: CLOSED DUPLICATE of bug 566746
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools
Version: 5.5
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2010-11-09 17:31 UTC by Petr Sklenar
Modified: 2011-01-21 10:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-21 10:58:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2010-11-09 17:31:31 UTC
Description of problem:
rhn_check cannot handle to pick up 100 erratas

Version-Release number of selected component (if applicable):
rhn-check-0.4.20-33.el5

How reproducible:
non deterministic 

Steps to Reproduce:
1. create custom channel and create 100 erratas there
2. schedule erratas to some client machine
3. rhn_check -vv on client machine
  
Actual results:
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at  1289322457.83  with expiration of  1289326057.83  seconds.
successfully retrieved authentication token from up2date server
D: logininfo: {'X-RHN-Server-Id': 1000010021, 'X-RHN-Auth-Server-Time': '1289322457.81', 'X-RHN-Auth': 'JOtftdhoc/0vQo5UHhODOw==', 'X-RHN-Auth-Channels': [['parent-ysqxw', '20101109103025', '1', '1'], ['child-of-parent-ysqxw', '20101109103041', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
D: handle_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>errata.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><int>338</int></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 261}
D: handle_action actionid = 261, version = 2
D: do_call errata.update ([338],)
D: Called update [['test-arch-ysqxw-43-InParent', '0.2', '2', '', 'i386']]
D: Dependencies Resolved
D: Downloading Packages:
D: Running Transaction Test
D: Finished Transaction Test
D: Transaction Test Succeeded
D: Running Transaction
Updating package profile
memory alloc (200156 bytes) returned NULL.


Expected results:
rhn_check frees resources time to time.
rhn_check can handle to pick up more then 100 actions

Additional info:
I tried that on machine with 8 AMD processors and 20Gig of mem.

1 action
rhn_check starts very fast 

50 action is picked up
it starts to be slower then before^. 

around 70 actions:
rhn_check consumes about 1Gb of memory and 100% cpu

around 110
memory alloc (200156 bytes) returned NULL.

Comment 2 Milan Zázrivec 2010-11-09 19:56:41 UTC
What's the rpm version of the affected system? (rpm -q rpm)

Is the selinux in enforcing, permissive or disabled?

Comment 3 Petr Sklenar 2010-11-10 08:57:32 UTC
it was rhel55 with no updates:

# rpm -q rpm
rpm-4.4.2.3-18.el5
# getenforce 
Enforcing

Comment 4 Milan Zázrivec 2010-11-10 09:33:29 UTC
Could you please try to reproduce the problem again with rpm-4.4.2.3-20.el5_5.1?

Comment 5 Jan Hutař 2010-11-10 10:11:40 UTC
(In reply to comment #4)
> Could you please try to reproduce the problem again with
> rpm-4.4.2.3-20.el5_5.1?

You mean something like:

rpm -Uvh package_from_errata1.rpm ... package_from_errata100.rpm

? Or maybe:

for p in package_from_errata1.rpm ... package_from_errata100.rpm; do
  rpm -Uvh $p
done

?

Comment 6 Milan Zázrivec 2010-11-10 10:18:05 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Could you please try to reproduce the problem again with
> > rpm-4.4.2.3-20.el5_5.1?
> 
> You mean something like:
> 
> rpm -Uvh package_from_errata1.rpm ... package_from_errata100.rpm
> 
> ? Or maybe:
> 
> for p in package_from_errata1.rpm ... package_from_errata100.rpm; do
>   rpm -Uvh $p
> done
> 
> ?

I meant:

1. Update rpm package to the version rpm-4.4.2.3-20.el5_5.1
2. Follow the exact steps from initial comment

Comment 7 Milan Zázrivec 2011-01-21 10:58:12 UTC

*** This bug has been marked as a duplicate of bug 566746 ***


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