* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
@ 2015-09-11 19:03 bugzilla-daemon
2015-09-11 19:04 ` bugzilla-daemon
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-09-11 19:03 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 2842 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
Bug ID: 91982
Summary: [radeonsi] fs leak in get_radeon_bo()
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel@lists.freedesktop.org
Reporter: shawn.starr@rogers.com
QA Contact: dri-devel@lists.freedesktop.org
While debugging something for Borderlands 2, I broke the DRI driver, tripped a
file descriptor leak
Mesa git master (Sept 10th build), kernel 4.3.0-0.rc0.git9.2.fc24.x86_64m
libdrm-2.4.64 aug 18th
Steps to reproduce fd leak
==========================
Take my trace for Borderlands 2 from here:
https://drive.google.com/open?id=0Bze7CJKD12nORWQ4RTdIbk4zT1k
1) apitrace trim --frames=0-2469 --exact -o bl2469.trace
Borderlands2-menu.trace
2) apitrace replay --loop -b bl2469.trace
Wait... it will crash... see attachment
Kernel:
[129925.490377] VFS: file-max limit 100000 reached
[129925.651137] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (135168, 2, 4096, -23)
[129925.651717] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (135168, 2, 4096, -23)
[129925.652239] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (135168, 2, 4096, -23)
[129925.652754] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (135168, 2, 4096, -23)
[129925.653278] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (1216512, 2, 4096, -23)
[129925.653813] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (1216512, 2, 4096, -23)
[129925.764233] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (8847360, 6, 16384, -23)
[129925.764829] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (8847360, 6, 16384, -23)
[131671.087659] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (4096, 6, 4096, -23)
[131671.207257] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (4096, 6, 4096, -23)
[131671.241259] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (4096, 6, 4096, -23)
[131671.311307] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (4096, 2, 4096, -23)
[131671.312227] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (4096, 2, 4096, -23)
[131671.331355] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to
allocate GEM object (3244032, 2, 4096, -23)
See attachment for stack dump from DRI
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 4207 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] 9+ messages in thread
* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
@ 2015-09-11 19:04 ` bugzilla-daemon
2015-09-13 15:42 ` bugzilla-daemon
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-09-11 19:04 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 323 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
--- Comment #1 from Shawn Starr <shawn.starr@rogers.com> ---
Created attachment 118218
--> https://bugs.freedesktop.org/attachment.cgi?id=118218&action=edit
Crash of apitrace due to fd leakage
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1229 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] 9+ messages in thread
* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
2015-09-11 19:04 ` bugzilla-daemon
@ 2015-09-13 15:42 ` bugzilla-daemon
2015-09-14 1:40 ` bugzilla-daemon
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-09-13 15:42 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 347 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
--- Comment #2 from Michel Dänzer <michel@daenzer.net> ---
This could also be a bug in apitrace, couldn't it?
Can you try running it in valgrind --leak-check=full to see if that shows
anything interesting?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1109 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] 9+ messages in thread
* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
2015-09-11 19:04 ` bugzilla-daemon
2015-09-13 15:42 ` bugzilla-daemon
@ 2015-09-14 1:40 ` bugzilla-daemon
2015-09-14 3:12 ` bugzilla-daemon
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-09-14 1:40 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
--- Comment #3 from Shawn Starr <shawn.starr@rogers.com> ---
Created attachment 118251
--> https://bugs.freedesktop.org/attachment.cgi?id=118251&action=edit
Valgrind output
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1169 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] 9+ messages in thread
* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
` (2 preceding siblings ...)
2015-09-14 1:40 ` bugzilla-daemon
@ 2015-09-14 3:12 ` bugzilla-daemon
2015-09-14 7:39 ` bugzilla-daemon
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-09-14 3:12 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 316 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
--- Comment #4 from Shawn Starr <shawn.starr@rogers.com> ---
Created attachment 118252
--> https://bugs.freedesktop.org/attachment.cgi?id=118252&action=edit
More detailed valgrind trace
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1208 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] 9+ messages in thread
* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
` (3 preceding siblings ...)
2015-09-14 3:12 ` bugzilla-daemon
@ 2015-09-14 7:39 ` bugzilla-daemon
2015-09-14 18:35 ` bugzilla-daemon
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-09-14 7:39 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1110 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
iive <ikalvachev@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ikalvachev@gmail.com
--- Comment #5 from iive <ikalvachev@gmail.com> ---
Created attachment 118258
--> https://bugs.freedesktop.org/attachment.cgi?id=118258&action=edit
Valgrind trace of memory leaks in Mesa3D when compiling same shader over and
over. R600 Redwood variant.
You need to run valgrind with `--trace-children` to check something else than
apitrace itself. :)
I'm attaching log created with the following command:
`valgrind --log-file=mesa.memleak.r600.valgrind.txt --trace-children=yes
--leak-check=full --undef-value-errors=no --partial-loads-ok=yes
--freelist-vol=200000000 apitrace replay --loop -b bl2469.trace`
I didn't let it die from memory exhaustion, I pressed ESC and exited normally,
so the leaks in this log are definitely lost.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2659 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] 9+ messages in thread
* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
` (4 preceding siblings ...)
2015-09-14 7:39 ` bugzilla-daemon
@ 2015-09-14 18:35 ` bugzilla-daemon
2015-09-14 21:44 ` bugzilla-daemon
2016-08-31 3:51 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-09-14 18:35 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 367 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
--- Comment #6 from Shawn Starr <shawn.starr@rogers.com> ---
Created attachment 118270
--> https://bugs.freedesktop.org/attachment.cgi?id=118270&action=edit
Valgrind output with ulimit capped at 1GB (Virtual)
This is stdout output only
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1305 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] 9+ messages in thread
* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
` (5 preceding siblings ...)
2015-09-14 18:35 ` bugzilla-daemon
@ 2015-09-14 21:44 ` bugzilla-daemon
2016-08-31 3:51 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-09-14 21:44 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 289 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
--- Comment #7 from Dave Airlie <airlied@freedesktop.org> ---
does it happen with the original untrimmed trace?
this seems like an apitrace bug not a mesa bug.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1033 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] 9+ messages in thread
* [Bug 91982] [radeonsi] fs leak in get_radeon_bo()
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
` (6 preceding siblings ...)
2015-09-14 21:44 ` bugzilla-daemon
@ 2016-08-31 3:51 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-08-31 3:51 UTC (permalink / raw
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 603 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=91982
Shawn Starr <shawn.starr@rogers.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #8 from Shawn Starr <shawn.starr@rogers.com> ---
I defer to Dave on this one, there's been so much changes recently this bug is
probably obsolete anyway.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2073 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-08-31 3:51 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-11 19:03 [Bug 91982] [radeonsi] fs leak in get_radeon_bo() bugzilla-daemon
2015-09-11 19:04 ` bugzilla-daemon
2015-09-13 15:42 ` bugzilla-daemon
2015-09-14 1:40 ` bugzilla-daemon
2015-09-14 3:12 ` bugzilla-daemon
2015-09-14 7:39 ` bugzilla-daemon
2015-09-14 18:35 ` bugzilla-daemon
2015-09-14 21:44 ` bugzilla-daemon
2016-08-31 3:51 ` 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.