Bug 31439 - Crash in glBufferSubData() with size == 0
Summary: Crash in glBufferSubData() with size == 0
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 7.9
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-07 03:34 UTC by Cyp
Modified: 2010-11-09 11:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch to no-op glBufferSubData for size==0 (372 bytes, patch)
2010-11-07 08:40 UTC, Brian Paul
Details | Splinter Review

Description Cyp 2010-11-07 03:34:27 UTC
glBufferSubData(GL_ARRAY_BUFFER, 0, 0, 0x7f28e803d850) is crashing, and I think that's supposed to be a valid (although useless) call.

(Using gentoo.)
media-libs/mesa = 7.9
x11-base/xorg-x11 = 7.4-r1
x11-drivers/xf86-video-ati = 6.13.1

#3  <signal handler called>
No symbol table info available.
#4  0x00007f30b9021522 in radeon_bo_is_referenced_by_cs (bo=0x0, cs=0x2529cb0) at radeon_bo.c:121
No locals.
#5  0x00007f30b94976b0 in ?? () from /usr/lib64/dri/r600_dri.so
No symbol table info available.
#6  0x000000000059898a in updateSectorGeometry () at ../../src/terrain.c:631

OpenGL Vendor : Advanced Micro Devices, Inc.
OpenGL Renderer : Mesa DRI R600 (RV710 954F) 20090101  TCL DRI2
OpenGL Version : 2.1 Mesa 7.9
Video Mode 1024 x 768 (32 bpp) (window)
OpenGL GLSL Version : 1.20

Please let me know if there's any relevant information missing.
Comment 1 Brian Paul 2010-11-07 08:40:34 UTC
Created attachment 40089 [details] [review]
patch to no-op glBufferSubData for size==0

Can you try this trivial patch?
Comment 2 Cyp 2010-11-07 10:42:57 UTC
(In reply to comment #1)
> Created an attachment (id=40089) [details]
> patch to no-op glBufferSubData for size==0
> 
> Can you try this trivial patch?

Doesn't crash anymore, with that patch. Thanks.
Comment 3 Brian Paul 2010-11-09 11:25:32 UTC
I've committed this change (6e2e136428b97d2424ebe626a30d7237015f7ea3)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.