All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 75732] New: Memory leak with celestia
@ 2014-03-03 23:26 bugzilla-daemon
  2014-03-03 23:26 ` [Bug 75732] [r600g] Memory leak with celestia, RV790 bugzilla-daemon
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-03 23:26 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 2685 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

          Priority: medium
            Bug ID: 75732
          Assignee: dri-devel@lists.freedesktop.org
           Summary: Memory leak with celestia
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: rankincj@googlemail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Drivers/Gallium/r600
           Product: Mesa

This bug might be a duplicate of #74549. However, WoW + Wine + Valgrind is
currently proving to be an intractable problem, and so I've decided to Valgrind
celestia instead (since at least I've managed to get THAT to running again on
x86_64!!!!!!!)

For this test, git HEAD was set to:

commit 9bace99d77642f8fbd46b1f0be025ad758f83f5e
Author: Zack Rusin <zackr@vmware.com>
Date:   Tue Jan 28 16:34:18 2014 -0500

    gallivm: fix opcode and function nesting

I executed the following command:

$ valgrind --leak-check=full celestia

and amidst all of the other issues that Valgrind complained about, it also
happened to mention this:

==7446== 352 bytes in 1 blocks are possibly lost in loss record 8,803 of 9,718
==7446==    at 0x4C291D4: calloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7446==    by 0x4011C44: _dl_allocate_tls (dl-tls.c:296)
==7446==    by 0xBEE8862: pthread_create@@GLIBC_2.2.5 (allocatestack.c:580)
==7446==    by 0x22F18208: pipe_thread_create.constprop.7 (threads_posix.h:264)
==7446==    by 0x22F18B47: radeon_drm_winsys_create (radeon_drm_winsys.c:661)
==7446==    by 0x22BA18F5: create_screen (drm_target.c:38)
==7446==    by 0x22F13876: dri2_init_screen (dri2.c:1044)
==7446==    by 0x22BA295F: driCreateNewScreen2 (dri_util.c:158)
==7446==    by 0x52DC260: dri2CreateScreen (dri2_glx.c:1240)
==7446==    by 0x52B67E8: __glXInitialize (glxext.c:778)
==7446==    by 0x52B31AA: GetGLXPrivScreenConfig.part.2 (glxcmds.c:174)
==7446==    by 0x52B392F: glXChooseVisual (glxcmds.c:170)
==7446==
==7446== 360 bytes in 5 blocks are possibly lost in loss record 8,811 of 9,718
==7446==    at 0x4C291D4: calloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7446==    by 0xA24CEC6: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.3800.2)
==7446==    by 0x9FBC1D4: g_closure_new_simple (in
/usr/lib64/libgobject-2.0.so.0.3800.2)
==7446==    by 0x9FBD671: g_cclosure_new (in
/usr/lib64/libgobject-2.0.so.0.3800.2)
==7446==    by 0x781E83F: gtk_action_group_add_toggle_actions_full (in
/usr/lib64/libgtk-x11-2.0.so.0.2400.22)
==7446==    by 0x4623F5: main (in /usr/bin/celestia)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 4026 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
@ 2014-03-03 23:26 ` bugzilla-daemon
  2014-03-04  0:43 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-03 23:26 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 448 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

Chris Rankin <rankincj@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Memory leak with celestia   |[r600g] Memory leak with
                   |                            |celestia, RV790

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1090 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
  2014-03-03 23:26 ` [Bug 75732] [r600g] Memory leak with celestia, RV790 bugzilla-daemon
@ 2014-03-04  0:43 ` bugzilla-daemon
  2014-03-04  4:11 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-04  0:43 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 357 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

--- Comment #1 from Chris Rankin <rankincj@googlemail.com> ---
Having recompiled the current Mesa from git, it looks as if
radeon_winsys_destroy() in src/gallium/winsys/radeon/drm/radeon_drm_winsys.c is
not being called on exit.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1116 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
  2014-03-03 23:26 ` [Bug 75732] [r600g] Memory leak with celestia, RV790 bugzilla-daemon
  2014-03-04  0:43 ` bugzilla-daemon
@ 2014-03-04  4:11 ` bugzilla-daemon
  2014-03-04  8:53 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-04  4:11 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 576 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

--- Comment #2 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #1)
> Having recompiled the current Mesa from git, it looks as if
> radeon_winsys_destroy() in src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
> is not being called on exit.

That only explains 352 leaked bytes though, over the whole lifetime of the
celestia process.


Please describe the problem in more detail. Why do you think there is a leak?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1428 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
                   ` (2 preceding siblings ...)
  2014-03-04  4:11 ` bugzilla-daemon
@ 2014-03-04  8:53 ` bugzilla-daemon
  2014-03-04  8:57 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-04  8:53 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 428 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

--- Comment #3 from Chris Rankin <rankincj@googlemail.com> ---
(In reply to comment #2)
> Please describe the problem in more detail. Why do you think there is a leak?

I think there's a leak because "Valgrind says there's a leak" and "Valgrind is
a program that finds memory leaks". Simple, really.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1277 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
                   ` (3 preceding siblings ...)
  2014-03-04  8:53 ` bugzilla-daemon
@ 2014-03-04  8:57 ` bugzilla-daemon
  2014-03-05  2:47 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-04  8:57 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 629 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

--- Comment #4 from Chris Rankin <rankincj@googlemail.com> ---
(In reply to comment #2)
> Please describe the problem in more detail. Why do you think there is a leak?

(There's also an underlying hypothesis that WoW cannot possibly be the only
program in existence to be experiencing memory problems under Mesa. However,
since valgrinding 32 bit WoW on a 64 bit box is currently beyond me, I am
hunting for memory errors in other workloads instead, in the hope that they
might provide some insight.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1458 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
                   ` (4 preceding siblings ...)
  2014-03-04  8:57 ` bugzilla-daemon
@ 2014-03-05  2:47 ` bugzilla-daemon
  2014-03-05  8:48 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-05  2:47 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 629 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

--- Comment #5 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #4)
> [...] since valgrinding 32 bit WoW on a 64 bit box is currently beyond me,

As suggested in your WoW bug report, please try valgrind on replaying an
apitrace instead.


> I am hunting for memory errors in other workloads instead, in the hope that
> they might provide some insight.)

valgrind finds one 352 byte leak with celestia. That can't possibly explain the
issues you're having with WoW.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1509 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
                   ` (5 preceding siblings ...)
  2014-03-05  2:47 ` bugzilla-daemon
@ 2014-03-05  8:48 ` bugzilla-daemon
  2014-03-05 14:31 ` bugzilla-daemon
  2019-09-18 19:15 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-05  8:48 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 537 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

--- Comment #6 from Chris Rankin <rankincj@googlemail.com> ---
(In reply to comment #5)
> valgrind finds one 352 byte leak with celestia. That can't possibly explain
> the issues you're having with WoW.

I raised this as a separate issue for a reason... ;-). But I doubt that Mesa
contains functionality that is *specific* to WoW; other apps *must* be affected
by #74549 - although perhaps not as noticeably.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1369 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
                   ` (6 preceding siblings ...)
  2014-03-05  8:48 ` bugzilla-daemon
@ 2014-03-05 14:31 ` bugzilla-daemon
  2019-09-18 19:15 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2014-03-05 14:31 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 412 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

--- Comment #7 from Marek Olšák <maraeo@gmail.com> ---
Leaking a radeon_winsys allocation is hardly an issue. There is only one
instance of the winsys per process anyway. This is really harmless. I wouldn't
even bother trying to fix this leak (if there really is a leak).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1185 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 75732] [r600g] Memory leak with celestia, RV790
  2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
                   ` (7 preceding siblings ...)
  2014-03-05 14:31 ` bugzilla-daemon
@ 2019-09-18 19:15 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2019-09-18 19:15 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 840 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=75732

GitLab Migration User <gitlab-migration@fdo.invalid> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #8 from GitLab Migration User <gitlab-migration@fdo.invalid> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/499.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2411 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-09-18 19:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 23:26 [Bug 75732] New: Memory leak with celestia bugzilla-daemon
2014-03-03 23:26 ` [Bug 75732] [r600g] Memory leak with celestia, RV790 bugzilla-daemon
2014-03-04  0:43 ` bugzilla-daemon
2014-03-04  4:11 ` bugzilla-daemon
2014-03-04  8:53 ` bugzilla-daemon
2014-03-04  8:57 ` bugzilla-daemon
2014-03-05  2:47 ` bugzilla-daemon
2014-03-05  8:48 ` bugzilla-daemon
2014-03-05 14:31 ` bugzilla-daemon
2019-09-18 19:15 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.