Hi, all
I've found a consistent segfault that seems to be related to menu-destruction
code. To reproduce:
1) Open a panview
2) Switch to calendar mode
3) Click on a day with images
4) Right-click an image
5) Select "View in New Window"
6) Right-click on the image in the new window
7) Select "Go to directory view"
8) Bam!
I've tracked this down to line 807 of img-view.c,
gtk_widget_destroy(vw->window);
At that point, the top of the call stack looks like:
#0 view_window_close (vw=0x288ceb0) at img-view.c:808
#1 0x00000000004778ef in view_set_layout_path_cb (widget=0x20f13a0,
data=0x288ceb0)
at img-view.c:1236
#2 0x00007f6f5a60111d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#3 0x00007f6f5a614bc8 in ?? () from /usr/lib/libgobject-2.0.so.0
#4 0x00007f6f5a616032 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#5 0x00007f6f5a616503 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#6 0x00007f6f5c3ae2db in gtk_widget_activate () from
/usr/lib/libgtk-x11-2.0.so.0
#7 0x00007f6f5c2ae98d in gtk_menu_shell_activate_item () from
/usr/lib/libgtk-x11-2.0.so.0
Before that line, vw looks like;
(gdb) p *vw
$18 = {window = 0x1bf93d0, imd = 0x1223b80, fs = 0x0, ss = 0x0, list = 0x0,
list_pointer = 0x0, editmenu_fd_list = 0x7fd26c5b2f20}
And immediately afterward:
(gdb) p *vw
$19 = {window = 0x198f6e0, imd = 0x1a13ee0, fs = 0x0, ss = 0x0, list = 0x0,
list_pointer = 0x0, editmenu_fd_list = 0x40}
Something later on chokes on editmenu_fd_list being 0x40. I imagine that
there's a callback somewhere that's doing this, but since I can't step into
gtk_widget_destroy, gdb is no help in finding where those callbacks might be.
Help? (Alternately, fix on your own? :o)
--xsdg
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Geeqie-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-devel