From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91982] [radeonsi] fs leak in get_radeon_bo() Date: Fri, 11 Sep 2015 19:03:48 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0463351170==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 1BEF56E3CF for ; Fri, 11 Sep 2015 12:03:48 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0463351170== Content-Type: multipart/alternative; boundary="1441998227.17dEFc0.6133"; charset="UTF-8" --1441998227.17dEFc0.6133 Date: Fri, 11 Sep 2015 19:03:47 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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. --1441998227.17dEFc0.6133 Date: Fri, 11 Sep 2015 19:03:47 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
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.
--1441998227.17dEFc0.6133-- --===============0463351170== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0463351170==--