Bug 172090 (IT_81559)
| Summary: | Memory leak in the vesa driver | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 3 | Reporter: | Bastien Nocera <bnocera> | ||||
| Component: | XFree86 | Assignee: | X/OpenGL Maintenance List <xgl-maint> | ||||
| Status: | CLOSED ERRATA | QA Contact: | David Lawrence <dkl> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.0 | CC: | tao | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | RHBA-2006-0410 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2006-07-20 15:24:19 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 181405 | ||||||
| Attachments: |
|
||||||
|
Description
Bastien Nocera
2005-10-31 10:46:43 UTC
U8 review ... see bug #172091 which is identical issue for RHEL4 for status. Withholding devel ACK for time being. Patch applied to build 4.3.0-102.EL. Will update when packages are built. XFree86-4.3.0-102.EL is now available for download via ftp at the following URL: ftp://people.redhat.com/mharris/testing/3.0E After upgrading all of the packages, please test them to see if the problem reported has now been resolved and not any changes (good/bad). Are you sure this isn't an FC-5 system? mkfontdir/mkfontscale are located
in /usr/bin only on FC-5 with modular X. I have reviewed the RHEL-3 packages
I've provided at the above URL (the 103.EL packages), and they invoke
the proper command:
[mharris@people i386]$ rpm -qp --scripts
XFree86-ISO8859-14-100dpi-fonts-4.3.0-103.EL.i386.rpm
postinstall scriptlet (through /bin/sh):
{
umask 133;/usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/100dpi
# umask 133;which fc-cache &> /dev/null && fc-cache
/usr/X11R6/lib/X11/fonts/100dpi
/usr/sbin/chkfontpath -q -a /usr/X11R6/lib/X11/fonts/100dpi:unscaled
} &> /dev/null || :
[mharris@people i386]$ rpm -qp --scripts XFree86-syriac-fonts-4.3.0-103.EL.i386.rpm
postinstall scriptlet (through /bin/sh):
{
FONTDIR=/usr/X11R6/lib/X11/fonts/OTF
umask 133;/usr/X11R6/bin/mkfontscale $FONTDIR
umask 133;/usr/X11R6/bin/mkfontdir $FONTDIR
umask 133;which fc-cache &> /dev/null && fc-cache $FONTDIR
/usr/sbin/chkfontpath -q -a $FONTDIR
} &> /dev/null || :
postuninstall scriptlet (through /bin/sh):
{
FONTDIR=/usr/X11R6/lib/X11/fonts/OTF
if [ "$1" = "0" ]; then
umask 133;/usr/X11R6/bin/mkfontscale $FONTDIR
umask 133;/usr/X11R6/bin/mkfontdir $FONTDIR
umask 133;which fc-cache &> /dev/null && fc-cache $FONTDIR
fi
} &> /dev/null || :
etc.
If this really is a RHEL-3 system, has it perhaps had FC-5 packages
installed on it? I have reviewed the XFree86.spec file in detail
for the 103.EL build also, and all instances of mkfontdir/mkfontscale
appear to be correct.
I did a quick check of the 102.EL build as well and it appears to be fine
also. Please provide the output from this failed system for the following
commands:
rpm -q redhat-release
rpm -qa |sort > rpm.log
I'm unable to reproduce this problem, and can't see how it could happen.
I was able to reproduce the leak now with the vesa driver as reported, using an X server started without any clients, and performing the test indicated in the first comment via remote shell. A second attempt on a different machine has shown a rather dramatic memory leak from this. With the patch applied however, the memory leak has completely gone, and the server uses consistent memory usage with the provided test case. [root@localhost ~]# while : ; do ps aux | grep "X :0" | grep -v grep ; sleep 1 ;done root 4980 28.0 1.3 14596 7200 ? R 07:33 0:13 X :0 root 4980 28.0 1.3 14596 7200 ? S 07:33 0:14 X :0 root 4980 27.5 2.1 14596 11040 ? S 07:33 0:14 X :0 root 4980 28.5 1.3 14596 7200 ? S 07:33 0:14 X :0 root 4980 27.9 1.3 14596 7200 ? S 07:33 0:14 X :0 root 4980 27.5 2.1 14596 11040 ? S 07:33 0:14 X :0 root 4980 28.4 1.3 14596 7200 ? S 07:33 0:15 X :0 root 4980 27.9 1.3 14596 7200 ? S 07:33 0:15 X :0 root 4980 27.5 2.1 14596 11040 ? S 07:33 0:15 X :0 root 4980 28.3 1.3 14596 7200 ? S 07:33 0:16 X :0 root 4980 27.4 1.3 14596 7200 ? S 07:33 0:16 X :0 root 4980 27.0 2.1 14596 11044 ? S 07:33 0:16 X :0 root 4980 27.8 1.3 14596 7204 ? S 07:33 0:17 X :0 root 4980 27.4 1.3 14596 7204 ? S 07:33 0:17 X :0 root 4980 27.0 2.1 14596 11044 ? S 07:33 0:17 X :0 root 4980 27.8 1.3 14596 7204 ? S 07:33 0:18 X :0 root 4980 27.3 1.3 14596 7204 ? S 07:33 0:18 X :0 root 4980 27.0 2.1 14596 11044 ? S 07:33 0:18 X :0 root 4980 27.7 1.3 14596 7204 ? S 07:33 0:18 X :0 root 4980 27.3 1.3 14596 7204 ? S 07:33 0:18 X :0 root 4980 27.0 2.1 14596 11044 ? S 07:33 0:18 X :0 root 4980 27.7 1.3 14596 7204 ? S 07:33 0:19 X :0 root 4980 27.3 1.3 14596 7204 ? S 07:33 0:19 X :0 root 4980 27.0 2.1 14596 11048 ? S 07:33 0:19 X :0 root 4980 27.7 1.3 14596 7208 ? S 07:33 0:20 X :0 root 4980 27.3 1.3 14596 7208 ? S 07:33 0:20 X :0 root 4980 27.0 2.1 14596 11048 ? S 07:33 0:20 X :0 root 4980 27.7 1.3 14596 7208 ? S 07:33 0:21 X :0 root 4980 27.3 1.3 14596 7208 ? S 07:33 0:21 X :0 root 4980 27.0 2.1 14596 11048 ? S 07:33 0:21 X :0 root 4980 27.6 1.3 14596 7208 ? S 07:33 0:22 X :0 root 4980 27.3 1.3 14596 7208 ? S 07:33 0:22 X :0 root 4980 28.0 1.3 14596 7212 ? S 07:33 0:22 X :0 root 4980 27.3 1.3 14596 7212 ? S 07:33 0:22 X :0 root 4980 27.0 2.1 14596 11056 ? S 07:33 0:23 X :0 root 4980 27.6 1.3 14596 7216 ? S 07:33 0:23 X :0 root 4980 27.3 1.3 14596 7216 ? S 07:33 0:23 X :0 root 4980 27.0 2.1 14596 11056 ? S 07:33 0:23 X :0 root 4980 27.6 1.3 14596 7216 ? S 07:33 0:24 X :0 root 4980 27.3 1.3 14596 7216 ? S 07:33 0:24 X :0 root 4980 27.0 2.1 14596 11056 ? S 07:33 0:24 X :0 root 4980 27.6 1.3 14596 7216 ? S 07:33 0:25 X :0 root 4980 27.3 1.3 14596 7216 ? S 07:33 0:25 X :0 root 4980 27.0 2.1 14596 11056 ? S 07:33 0:25 X :0 root 4980 27.6 1.3 14596 7216 ? S 07:33 0:26 X :0 root 4980 27.3 1.3 14596 7216 ? S 07:33 0:26 X :0 root 4980 27.0 2.1 14596 11060 ? S 07:33 0:26 X :0 root 4980 27.5 1.3 14596 7220 ? S 07:33 0:27 X :0 root 4980 27.3 1.3 14596 7220 ? S 07:33 0:27 X :0 root 4980 27.0 2.1 14596 11060 ? S 07:33 0:27 X :0 root 4980 27.5 1.3 14596 7220 ? S 07:33 0:27 X :0 root 4980 27.2 1.3 14596 7220 ? S 07:33 0:27 X :0 I consider the leak to be resolved now. Setting state back to MODIFIED. Resolved in the 103 build. (In reply to comment #12) > Are you sure this isn't an FC-5 system? mkfontdir/mkfontscale are located > in /usr/bin only on FC-5 with modular X. I have reviewed the RHEL-3 packages > I've provided at the above URL (the 103.EL packages), and they invoke > the proper command: > > [mharris@people i386]$ rpm -qp --scripts > XFree86-ISO8859-14-100dpi-fonts-4.3.0-103.EL.i386.rpm > postinstall scriptlet (through /bin/sh): > { > umask 133;/usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/100dpi > # umask 133;which fc-cache &> /dev/null && fc-cache > /usr/X11R6/lib/X11/fonts/100dpi > /usr/sbin/chkfontpath -q -a /usr/X11R6/lib/X11/fonts/100dpi:unscaled > } &> /dev/null || : > > > [mharris@people i386]$ rpm -qp --scripts XFree86-syriac-fonts-4.3.0-103.EL.i386.rpm > postinstall scriptlet (through /bin/sh): > { > FONTDIR=/usr/X11R6/lib/X11/fonts/OTF > umask 133;/usr/X11R6/bin/mkfontscale $FONTDIR > umask 133;/usr/X11R6/bin/mkfontdir $FONTDIR > umask 133;which fc-cache &> /dev/null && fc-cache $FONTDIR > /usr/sbin/chkfontpath -q -a $FONTDIR > } &> /dev/null || : > postuninstall scriptlet (through /bin/sh): > { > FONTDIR=/usr/X11R6/lib/X11/fonts/OTF > if [ "$1" = "0" ]; then > umask 133;/usr/X11R6/bin/mkfontscale $FONTDIR > umask 133;/usr/X11R6/bin/mkfontdir $FONTDIR > umask 133;which fc-cache &> /dev/null && fc-cache $FONTDIR > fi > } &> /dev/null || : > > > etc. > > If this really is a RHEL-3 system, has it perhaps had FC-5 packages > installed on it? I have reviewed the XFree86.spec file in detail > for the 103.EL build also, and all instances of mkfontdir/mkfontscale > appear to be correct. > > I did a quick check of the 102.EL build as well and it appears to be fine > also. Please provide the output from this failed system for the following > commands: > > rpm -q redhat-release > rpm -qa |sort > rpm.log > > I'm unable to reproduce this problem, and can't see how it could happen. After a second report of the issue, I re-investigated the problem again. In my initial check, I confirmed mkfontdir/mkfontscale usage, and confirmed mkfontdir dependencies but seem to have missed mkfontscale dependency problem. The issue was due to using _bindir in the mkfontscale dep, which has been corrected in the 104.EL build. Apologies for any confusion. XFree86-4.3.0-104.EL is now available for download via ftp at the following URL: ftp://people.redhat.com/mharris/testing/3.0E An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0410.html |