Bug 172091
| Summary: | Memory leak in the vesa driver | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Bastien Nocera <bnocera> | ||||
| Component: | xorg-x11 | Assignee: | Søren Sandmann Pedersen <sandmann> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.0 | CC: | kem, tao, zcerza | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2007-01-08 20:04:15 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: | |||||||
| Attachments: |
|
||||||
|
Description
Bastien Nocera
2005-10-31 10:49:54 UTC
Created attachment 120558 [details]
VESACloseScreen.patch
Using the test case provided above, I am unable to produce a strong leak with the stock U3 vesa driver, however a very slight increase in memory usage was observed over about 5 minutes of about 8Kb. This is under a full GNOME desktop with no apps running other than firefox with a single bugzilla page open and gnome-term, and the 2 test case lines above running. I modified the test case to change the first line's delay to 1s and the second line to 2s to speed up the effect, and have left it running for quite some time now and haven't observed any further increase in memory usage. In other words, it appears that I am not seeing the memory leak occur using the U3 xorg-x11 vesa driver on a Radeon 9800Pro. The 8Kb I mentioned above I writeoff as something running in the background using, as it went for about 15 minutes now with no further increase in size. I'll leave it running all day and see what I observe. Right now I get 28420/23800 for SIZE/RSS. I've tested the new driver as well, and see no regression in brief testing, however this neither confirms nor denies wether it fixes the leak, as I am not observing any leak in either case on this particular RHEL4 x86 system. As mentioned in the RHEL3 report: 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. Issue confirmed resolved with: xorg-x11-6.8.2-vesa-driver-memory-leak-bug172091.patch Devel ACK.. Patch present in rpm since: * Tue Apr 25 2006 Mike A. Harris <mharris> 6.8.2-1.EL.13.29 - Added xorg-x11-6.8.2-vesa-driver-memory-leak-bug172091.patch to fix a memory leak in the "vesa" driver. (#172091) Setting state to MODIFIED pending QA testing. There is a lot of confusion going on here. As far as I can tell from reading the
various issue trackers,
- There was a memory leak in the VESA driver which we fixed in 4.4 by applying
the patch that is mentioned several times:
+ if (pVesa->pVbe) {
+ vbeFree(pVesa->pVbe);
+ pVesa->pVbe = NULL;
+ }
- Fuchi Hideshi was not convinced this was a full fix, since vesaCloseScreen()
is not called every time a client exists. I don't believe we have seen any
indication that a memory leak exists after this patch was applied, and I
don't believe vesaCloseScreen() is expected to be called every time a client
exists.
- A different memory leak was observed with one of TI's applications. This was,
according to comments in issue 83772, resolved after upgrading to a later
version of that application, which would indicate some resource leak in the
application, rather than the X server.
So, as best I can tell, there is nothing here that needs fixing in X.
I could be wrong though, and if anyone disagrees, feel free to post information
about what specifically the problem is.
Otherwise, I am going to close this bug.
Closing this bug since both IT's associated with it are closed and it's not clear what needs to be fixed. |