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

           Summary: OpenGL application get SIGSEGV under Electric Fence
           Product: Mesa
           Version: 7.2
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: jele...@gmail.com


When OpenGL application linked with Electirc Fence library, it detects wrong
free call

packages installed:
mesa-libGLU-7.2-0.15.fc10.i386
mesa-libGL-7.2-0.15.fc10.i386
mesa-libGLU-devel-7.2-0.15.fc10.i386
mesa-dri-drivers-7.2-0.15.fc10.i386
mesa-debuginfo-7.2-0.15.fc10.i386
mesa-libGL-devel-7.2-0.15.fc10.i386

OS: Fedora 10
Kernel: 2.6.27.9-159.fc10.i686

Logs from valgrind:

ElectricFence Aborting: free(4d209e0): address not from malloc().
==9759==                                                         
==9759== Process terminating with default action of signal 4 (SIGILL)
==9759==    at 0x346776: kill (in /lib/libc-2.9.so)                  
==9759==    by 0x402E163: EF_Abort (in /usr/lib/libefence.so.0.0)    
==9759==    by 0x402D52B: free (in /usr/lib/libefence.so.0.0)        
==9759==    by 0x41FDEA5: _mesa_align_free (in /usr/lib/dri/libdricore.so)
==9759==    by 0x4235176: _mesa_vector4f_free (in /usr/lib/dri/libdricore.so)
==9759==    by 0x424C57D: (within /usr/lib/dri/libdricore.so)                
==9759==    by 0x4242F0C: _tnl_destroy_pipeline (in /usr/lib/dri/libdricore.so)
==9759==    by 0x4147E3E: r300CreateContext (in /usr/lib/dri/r300_dri.so)      
==9759==    by 0x4140CD9: (within /usr/lib/dri/r300_dri.so)                    
==9759==    by 0x413DC08: (within /usr/lib/dri/r300_dri.so)                    
==9759==    by 0x57E52C9: (within /usr/lib/libGL.so.1.2)                       
==9759==    by 0x57C71E7: (within /usr/lib/libGL.so.1.2)                       
==9759==                                                       

Output from GDB:
(gdb) bt full 
#0  0x00110416 in __kernel_vsyscall () 
No symbol table info available.
#1  0x00346776 in kill () from /lib/libc.so.6
No symbol table info available.
#2  0x00114e47 in ?? () from /usr/lib/libefence.so.0
No symbol table info available.
#3  0x00115164 in EF_Abort () from /usr/lib/libefence.so.0 
No symbol table info available.
#4  0x0011452c in free () from /usr/lib/libefence.so.0
No symbol table info available.
#5  0x00b6bea6 in _mesa_align_free (ptr=0x8063ea0) at main/imports.c:193        
No locals.
#6  0x00ba3177 in _mesa_vector4f_free (v=0xb24c6fa4) at math/m_vector.c:129
No locals.
#7  0x00bba57e in dtr (stage=0xb24c4220) at tnl/t_vb_vertex.c:245
        store = (struct vertex_stage_data *) 0xb24c6fa4
#8  0x00bb0f0d in _tnl_destroy_pipeline (ctx=0xb7f4f484) at tnl/t_pipeline.c:67
        tnl = (TNLcontext *) 0xb24c40cc
        i = 0
#9  0x00129e3f in r300CreateContext
(glVisual=0xb7de1f30,driContextPriv=0xb7f45fe8, sharedContextPrivate=0x0) at
r300_context.c:289
        functions = {GetString = 0x1245f7 <radeonGetString>, UpdateState =
0x133ad2 <r300InvalidateState>, GetBufferSize = 0,                              
  ResizeBuffers = 0xb493ca <_mesa_resize_framebuffer>, Error = 0, Finish =
0x124ab6 <radeonFinish>, Flush = 0x12cf7c <r300Flush>,                          
  Clear = 0x12aa7d <r300Clear>, Accum = 0xbe3ea9 <_swrast_Accum>, RasterPos =
0xbb1b04 <_tnl_RasterPos>, DrawPixels = 0xbeef86 <_swrast_DrawPixels>,       
  ReadPixels = 0xbf66c2 <_swrast_ReadPixels>, CopyPixels = 0xbeaaa7
<_swrast_CopyPixels>, Bitmap = 0xbe5524 <_swrast_Bitmap>,  ...


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

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to