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

           Summary: progs/perf/genmipmap segfaults in glGenerateMipmap()
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: will.dy...@gmail.com


Mesa is git master at bf611cef29d664c2c2b56d2175c3a966c720e8b8. Using the r600
driver and 2.6.32+drm-radeon-testing with KMS enabled, but this happens even
when I set LIBGL_SOFTWARE_RENDERING=true.

progs/perf/genmipmaps segfaults on the very first call to glGenerateMipmap().

Here is the backtrace:

#0  0x0000000000000000 in ?? ()
#1  0x000000000042b9df in GenMipmap (count=2) at genmipmap.c:84
#2  0x000000000042bc07 in PerfMeasureRate (f=0x42b970 <GenMipmap>) at
common.c:76
#3  0x000000000042b910 in PerfDraw () at genmipmap.c:128
#4  0x000000000042be69 in Draw () at glmain.c:186
#5  0x00007ffff7bbc79d in fghRedrawWindow (window=0x660310, 
    enumerator=0x7fffffffdf40) at freeglut_main.c:212
#6  fghcbDisplayWindow (window=0x660310, enumerator=0x7fffffffdf40)
    at freeglut_main.c:229
#7  0x00007ffff7bbfb79 in fgEnumWindows (
    enumCallback=0x7ffff7bbc6f0 <fghcbDisplayWindow>,
enumerator=0x7fffffffdf40)
    at freeglut_structure.c:388
#8  0x00007ffff7bbcc51 in fghDisplayAll () at freeglut_main.c:251
#9  glutMainLoopEvent () at freeglut_main.c:998
#10 0x00007ffff7bbd4a0 in glutMainLoop () at freeglut_main.c:1046
#11 0x000000000042be42 in main (argc=1, argv=0x7fffffffe1b8) at glmain.c:266


Interestingly, when I replace the call to glGenerateMipmap() with
glGenerateMipmapEXT(), the segfault does not happen and the program seems to
work.


-- 
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 the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to