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

           Summary: empty glBegin/glEnd clauses crash
           Product: Mesa
           Version: unspecified
          Platform: Other
               URL: https://bugs.launchpad.net/bugs/346072
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: bugzi07.fdo.tor...@xoxy.net


Created an attachment (id=28886)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=28886)
test case

If for instance,
       glBegin(GL_LINES);
       glEnd();
is repeated (64 times here) mesa will crash with

Program received signal SIGFPE, Arithmetic exception.
0x0109d5a0 in vbo_exec_vtx_flush (exec=0x809fc98, unmap=0 '\0')

because exec->vtx.vertex_size = 0 and we get a division by zero. Not that this
is a useful construct, but it happens in some programs and did not crash
before.
http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/begin.html
says "Lines, triangles,      quadrilaterals, and polygons that       are
incompletely specified are not drawn."

The attached test program demonstrates the crash (it is based on the example in
http://glprogramming.com/red/chapter01.html :) )


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to