On further testing of the patch and sent it to the list I got memory
corruption problems similar to what you described how did you get glib
to detect the double free ?
If you can get a gdb trace that would be fantastic I'm trying to run
valgrind now but its painful. For now I'm going to assume that the
patch is correct and see if I can find the double free. Anyway trudge
trudge trudge :)
Mike
On 11/16/05, Attilio Fiandrotti <[EMAIL PROTECTED]> wrote:
> Mike Emmel wrote:
> > I have this crash in GTK FB because the primary_region is still NULL
> > at this point
> >
> > here is a patch
> >
> > diff -u -r1.27 default.c
> > --- default.c 29 Oct 2005 00:41:01 -0000 1.27
> > +++ default.c 16 Nov 2005 03:47:24 -0000
> > @@ -1196,12 +1196,13 @@
> > if (!dfb_unsafe_region_intersect( &area, 0, 0, stack->width - 1,
> > stack->height - 1 ))
> > return DFB_OK;
> >
> > - if (force_complete)
> > + if( window->primary_region ) {
> > + if (force_complete)
> > repaint_stack( stack, data, window->primary_region, &area, flags
> > );
> > - else
> > + else
> > repaint_stack_for_window( stack, data, window->primary_region,
> > &area, flags, get_index( data, window
> > ) );
> > -
> > + }
> > return DFB_OK;
> > }
> >
> > Now I don't know if it is a bug or not that it is null I looked at
> > some of the code and it can go to null the window was inputonly and
> > not disposed so ????
> >
>
> i've tried this patch against a fresh DirectFB CVS checkout (patch
> applied to wm/default/default.c with success) and the compiling process
> was smooth.
> Note that i've recompiled only DirectFB, not GTKDFB 2.8.3 too: should i
> have recompiled GTKDFB using the freshly patched DirectFB set of libs?
> Sadly, the bug that shows up when doing VT switch bug seems not to go
> away with this patch, output from cdebconf's run is attached below.
>
> ciao
>
> Attilio
>
> attilaptop:/home/attilio/cdebconf/cdebconf/src/gtk_test# export
> LD_LIBRARY_PATH=/home/attilio/zino_clean/d-i_build/lib/
> attilaptop:/home/attilio/cdebconf/cdebconf/src/gtk_test# ../debconf
> test.config
> (*) DirectFB/Config: Parsing config file '/etc/directfbrc'.
>
> ---------------------- DirectFB v0.9.25 ---------------------
> (c) 2000-2002 convergence integrated media GmbH
> (c) 2002-2004 convergence GmbH
> -----------------------------------------------------------
>
> (*) DirectFB/Core: Single Application Core. (2005-11-16 09:46)
> (*) Direct/Memcpy: Using SSE optimized memcpy()
> (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 14331)...
> (*) Direct/Thread: Running 'PS/2 Input' (INPUT, 14336)...
> (!!!) *** UNIMPLEMENTED [fusion_reactor_set_lock] *** [reactor.c:837]
> (*) DirectFB/Input: IMPS/2 Mouse 1.0 (Convergence GmbH)
> (*) Direct/Thread: Running 'Linux Input' (INPUT, 14337)...
> (*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (convergence
> integrated media GmbH)
> (*) Direct/Thread: Running 'Linux Input' (INPUT, 14338)...
> (*) DirectFB/Input: SynPS/2 Synaptics TouchPad (2) 0.1 (convergence
> integrated media GmbH)
> (*) Direct/Thread: Running 'Linux Input' (INPUT, 14339)...
> (*) DirectFB/Input: Logitech USB-PS/2 Optical Mouse (3) 0.1 (convergence
> integrated media GmbH)
> (*) Direct/Thread: Running 'Keyboard Input' (INPUT, 14340)...
> (*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
> (*) DirectFB/Genefx: MMX detected and enabled
> (*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (convergence
> integrated media GmbH)
> (*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
> (!) DirectFB/FBDev: Panning display failed!
> --> Invalid argument
> (*) Direct/Thread: Running 'EventBufferFeed' (MESSAGING, 14341)...
>
> (debconf:14326): Gdk-DirectFB-WARNING **:
> gdk_screen_broadcast_client_message not supported
>
>
> (debconf:14326): Gdk-DirectFB-WARNING **: gdk_window_set_keep_above()
> not implemented.
>
>
> (debconf:14326): Gdk-DirectFB-WARNING **: gdk_window_set_keep_below()
> not implemented.
>
> ANS: 0
> ANS: 0 question will be asked
>
> (debconf:14326): Gdk-DirectFB-WARNING **:
> gdk_display_request_selection_notification Unimplemented function
>
> ANS: 0 ok
> RET CODE: 0
> CHOICE : progressbar
> ANS: 0 OK
> ANS: 0 OK
> ANS: 0 OK
> ANS: 0 OK
> (!!!) *** WARNING [Application exited without deinitialization of
> DirectFB!] *** [core.c:727 in dfb_core_deinit_check()]
> *** glibc detected *** double free or corruption (!prev): 0x080778d8 ***
> (!) [14326: 0.000] --> Caught signal 6 (unknown origin) <--
> Killed
>
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev