Re: [Geeqie-devel] munmap_chunk(): invalid pointer - with backtrace

2009-02-07 Thread Michael Schwendt
On Sat, 7 Feb 2009 22:13:01 +0100, Vladimir wrote:

> I think that I have reproduced it. 
> It happens when Geeqie exits with unsaved metadata for exactly one file, in
> default configuration. 

Good description. In alpha3 that gives a segfault:

(gdb) bt
#0  0x00d94312 in free () from /lib/libc.so.6
#1  0x005118c6 in g_free () from /lib/libglib-2.0.so.0
#2  0x080db6fe in remote_close (rc=0x83cf760) at remote.c:353
#3  0x080b269d in exit_program_final () at main.c:580
#4  0x080b28f5 in exit_program () at main.c:661
#5  0x080a53a1 in layout_delete_cb (widget=0x81b4800, event=0x84424f0, 
data=0x81b4200) at layout.c:1945
[...]

> The order of callbacks after saving the metadata was 
> wrong and some pointers were freed twice.
> 
> Revision 1385 should fix it.

With that change applied, the segfault is gone.

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] munmap_chunk(): invalid pointer - with backtrace

2009-02-07 Thread Vladimir Nadvornik
On pá 6. února 2009, Vladimir Nadvornik wrote:
> >
> > If the crash is reproducible, it should be simple to "gdb geeqie" and
> > get a good backtrace in there.
>
> Output from valgrind would be even better, but the debuginfo must work
> first.
>

I think that I have reproduced it. 
It happens when Geeqie exits with unsaved metadata for exactly one file, in
default configuration. The order of callbacks after saving the metadata was 
wrong and some pointers were freed twice.

Revision 1385 should fix it.

Vladimir

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel