Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=5131          
     
           Summary: Free of invalid pointer in _mesa_free
           Product: Mesa
           Version: CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Mesa core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I test Mesa from CVS on a nightly basis by building it and using it to run a VTK
dashboard.  Recently I upgraded the version of glibc on my test system to 2.3.5
and started getting crashes with this error:

*** glibc detected *** free(): invalid pointer: 0x420c7400 ***

Here is the interesting part of the stack trace:

#6  0x41dec309 in malloc_printerr () from /lib/libc.so.6
#7  0x41decda1 in free () from /lib/libc.so.6
#8  0x412953ac in _mesa_free ()
   from /home/kingb/Nightly/Mesa-build/lib/libMesaGL.so.1
#9  0x41309309 in _tnl_free_vertices ()
   from /home/kingb/Nightly/Mesa-build/lib/libMesaGL.so.1
#10 0x41393d3d in _swsetup_DestroyContext ()
   from /home/kingb/Nightly/Mesa-build/lib/libMesaGL.so.1
#11 0x413d84fd in XMesaDestroyContext ()
   from /home/kingb/Nightly/Mesa-build/lib/libMesaGL.so.1
#12 0x413d4661 in Fake_glXDestroyContext ()
   from /home/kingb/Nightly/Mesa-build/lib/libMesaGL.so.1
#13 0x413d0279 in glXDestroyContext ()
   from /home/kingb/Nightly/Mesa-build/lib/libMesaGL.so.1
#14 0x402166f1 in vtkXOpenGLRenderWindow::Finalize (this=0x8077758)

I performed a binary search back through time in CVS and found that the problem
was introduced on October 18, 2005 when mm.h, mm.c, and execmem.c were added. 
If I do

cvs diff -D "Oct 17 17:00:00 EST 2005" -D "Oct 18 17:00:00 EST 2005"

the full set of changes are shown.  With sources from the 17th the error does
not occur, and with sources on the 18th the problem occurs.  The problem is
exposed by some new debugging check that was added in glibc 2.3.5, so it did not
appear when I was using an older glibc.  FYI, it looks like the changes were put
on the Mesa 6.4 release branch, so it probably contains the bug also.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to