http://bugs.freedesktop.org/show_bug.cgi?id=19835

           Summary: buffer object deletion in _mesa_PopClientAttrib
           Product: Mesa
           Version: 7.2
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=22387)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=22387)
GLUT-based demo source to reproduce the bug

Mesa seems to delete a buffer object which is created inbetween
glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT) and glPopClientAttrib(). I've
attached a small GLUT-based demo which reproduces the bug. The output is:

| Mesa 7.3 implementation error: referencing deleted buffer object
| Please report at bugzilla.freedesktop.org

valgrind says:

==26887== Invalid read of size 4
==26887==    at 0x40928FC: _mesa_reference_buffer_object (bufferobj.c:226)
==26887==    by 0x4093101: bind_buffer_object (bufferobj.c:500)
==26887==    by 0x80487D9: main (test.c:20)
==26887==  Address 0x4acd058 is 0 bytes inside a block of size 32 free'd
==26887==    at 0x401C9AA: free (vg_replace_malloc.c:323)
==26887==    by 0x40CBD8C: _mesa_free (imports.c:85)
==26887==    by 0x4092A0D: _mesa_delete_buffer_object (bufferobj.c:174)
==26887==    by 0x40928F1: _mesa_reference_buffer_object (bufferobj.c:216)
==26887==    by 0x4093101: bind_buffer_object (bufferobj.c:500)
==26887==    by 0x41A2FC1: _mesa_PopClientAttrib (attrib.c:1432)
==26887==    by 0x80487C6: main (in /home/mh/tests/mesa-buffer-crash/a.out)

Note: In the bugzilla webform, there is currently no option for Mesa version
7.3, so i've chosen 7.2 (which also shows that behavior).


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to