On Sat, Nov 26, 2005 at 05:04:34PM +0000, James Gatt wrote:
> Ville Syrjälä wrote:
> 
> >On Fri, Nov 25, 2005 at 10:20:56PM +0000, James Gatt wrote:
> > 
> >
> >>Program received signal SIGSEGV, Segmentation fault.
> >>[Switching to Thread 46912546041184 (LWP 30604)]
> >>0x00002aaaaede2324 in maven_init () from 
> >>/usr/lib64/directfb-0.9.24/gfxdrivers/libdirectfb_matrox.so
> >>(gdb) bt
> >>#0  0x00002aaaaede2324 in maven_init () from 
> >>/usr/lib64/directfb-0.9.24/gfxdrivers/libdirectfb_matrox.so
> >>#1  0x00002aaaacf5d8f3 in dfb_layer_region_disable () from 
> >>/usr/lib64/libdirectfb-0.9.so.24
> >>   
> >>
> >
> >This trace isn't valid. Did you compile DirectFB with -O3? It usually 
> >makes back traces useless...
> > 
> >
> Good point. I have re-built DirectFB with -O0 and this gives a different 
> (hopefully more accurate) trace:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 46912546168160 (LWP 23206)]
> 0x00002aaaaee04060 in maven_init () from 
> /usr/lib64/directfb-0.9.24/gfxdrivers/libdirectfb_matrox.so
> (gdb) bt
> #0  0x00002aaaaee04060 in maven_init () from 
> /usr/lib64/directfb-0.9.24/gfxdrivers/libdirectfb_matrox.so
> #1  0x00002aaaacf72a8b in _dfb_layer_region_surface_listener () from 
> /usr/lib64/libdirectfb-0.9.so.24

It still looks really weird. maven_init() should be called via this 
chain:
 DirectFBCreate()
 dfb_core_create()
 dfb_core_arena_initialize()
 dfb_core_initialize()
 dfb_core_part_initialize()
 dfb_layers_initialize()
 crtc2InitLayer()
 maven_init()

> #7  0x00002aaaacf34a7d in IDirectFB_SetAppFocus () from 
> /usr/lib64/libdirectfb-0.9.so.24

And this function can never be called.

> Is there any debugging output I can enable from DirectFB (especially the 
> matrox driver) which will help?

You could compile with --enable-trace which should give a backtrace 
without gdb.

AFAICS the only place in maven_init() where it could segfault is 
direct_memcpy(). But I don't think it's actually segfaulting there 
because then the segfault should happen when calling DirectFBCreate().

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to