sejerpz / vtg

Automatically exported from code.google.com/p/vtg
0 stars 0 forks source link

Outliner crash in the sort function #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Quite hard to reproduce:

(gdb) thread apply all bt

Thread 5 (Thread 0xb1be8b70 (LWP 15198)):
#0  vala_list_get (self=0xae553620, index=600) at list.c:130
#1  0xb2040828 in vala_array_list_iterator_real_get (base=0x896f180) at 
arraylist.c:535
#2  0xb2044b23 in vala_iterator_get (self=0x896f180) at iterator.c:85
#3  0xb20d4a34 in afrodite_symbol_lookup_child (self=0xae552e90, 
name=0xace19348 "void") at symbol.vala:164
#4  0xb20d91c5 in afrodite_symbol_resolver_resolve_type (self=<value optimized 
out>, symbol=<value optimized out>, type=0xae2c0ef0) at symbolresolver.vala:84
#5  0xb20d9c31 in afrodite_symbol_resolver_visit_symbol (self=<value optimized 
out>, symbol=<value optimized out>) at symbolresolver.vala:248
#6  0xb20da080 in afrodite_symbol_resolver_visit_symbols (self=<value optimized 
out>, symbols=<value optimized out>) at symbolresolver.vala:276
#7  0xb20da080 in afrodite_symbol_resolver_visit_symbols (self=<value optimized 
out>, symbols=<value optimized out>) at symbolresolver.vala:276
#8  0xb20da080 in afrodite_symbol_resolver_visit_symbols (self=<value optimized 
out>, symbols=<value optimized out>) at symbolresolver.vala:276
#9  0xb20e4630 in afrodite_completion_engine_parse_sources (self=0xa933178) at 
completionengine.vala:328
#10 _afrodite_completion_engine_parse_sources_gthread_func (self=0xa933178) at 
completionengine.c:783
#11 0xb788d6cf in g_thread_create_proxy (data=0xa9253d0) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gthread.c:1893
#12 0xb76b1955 in start_thread (arg=0xb1be8b70) at pthread_create.c:300
#13 0xb7630e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xb1042b70 (LWP 15194)):
#0  0xb7fe2424 in __kernel_vsyscall ()
#1  0xb76b8dbc in __lll_unlock_wake () at 
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:378
#2  0xb76b532b in _L_unlock_628 () from /lib/i686/cmov/libpthread.so.0
#3  0xb76b524a in __pthread_mutex_unlock_usercnt (mutex=0x8898b98, decr=<value 
optimized out>) at pthread_mutex_unlock.c:52
#4  0xb788deee in IA__g_static_rec_mutex_unlock (mutex=0x8898b94) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gthread.c:1486
#5  0xb213a056 in vtg_source_outliner_setup_idle (self=0x8898b70) at 
vtgsourceoutliner.c:483
#6  0xb79461b8 in IA__g_cclosure_marshal_VOID__OBJECT (closure=0xb591788, 
return_value=0x0, n_param_values=2, param_values=0x8ef7ac8, 
invocation_hint=0xb1042040, marshal_data=0xb213a130)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/gobject/gmarshal.c:636
#7  0xb793913a in IA__g_closure_invoke (closure=0xb591788, return_value=0x0, 
n_param_values=2, param_values=0x8ef7ac8, invocation_hint=0xb1042040)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/gobject/gclosure.c:767
#8  0xb794f61d in signal_emit_unlocked_R (node=<value optimized out>, 
detail=<value optimized out>, instance=0x88d4848, emission_return=0x0, 
instance_and_params=0x8ef7ac8)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/gobject/gsignal.c:3248
#9  0xb7950bfc in IA__g_signal_emit_valist (instance=0x88d4848, signal_id=478, 
detail=0, var_args=0xb104226c "") at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/gobject/gsignal.c:2981
#10 0xb7950ebd in IA__g_signal_emit_by_name (instance=0x88d4848, 
detailed_signal=0xb20ec9fa "end-parsing") at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/gobject/gsignal.c:3075
#11 0xb20e487b in afrodite_completion_engine_parse_sources (self=0x88d4848) at 
completionengine.vala:348
#12 _afrodite_completion_engine_parse_sources_gthread_func (self=0x88d4848) at 
completionengine.c:783
#13 0xb788d6cf in g_thread_create_proxy (data=0x8994770) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gthread.c:1893
#14 0xb76b1955 in start_thread (arg=0xb1042b70) at pthread_create.c:300
#15 0xb7630e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb2977b70 (LWP 15175)):
#0  0xb7fe2424 in __kernel_vsyscall ()
#1  0xb76b909b in read () at ../sysdeps/unix/syscall-template.S:82
#2  0xb786443d in child_watch_helper_thread (data=0x0) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:3822
#3  0xb788d6cf in g_thread_create_proxy (data=0x8594620) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gthread.c:1893
#4  0xb76b1955 in start_thread (arg=0xb2977b70) at pthread_create.c:300
#5  0xb7630e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7116750 (LWP 15173)):
#0  0xb7fe2424 in __kernel_vsyscall ()
#1  0xb758f751 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb7592b82 in abort () at abort.c:92
#3  0xb786dc0e in IA__g_logv (log_domain=0xb7e7eef7 "Gtk", 
log_level=G_LOG_LEVEL_CRITICAL, format=0xb78b2855 "%s: assertion `%s' failed", 
    args1=0xbfffeaac "\024\307\363\267\211\301\363\267\200c\377\267\002") at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmessages.c:549
#4  0xb786dc36 in IA__g_log (log_domain=0xb7e7eef7 "Gtk", 
log_level=G_LOG_LEVEL_CRITICAL, format=0xb78b2855 "%s: assertion `%s' failed")
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmessages.c:569
---Type <return> to continue, or q <return> to quit---
#5  0xb786de6b in IA__g_return_if_fail_warning (log_domain=0xb7e7eef7 "Gtk", 
pretty_function=0xb7f3c714 "gtk_tree_store_get_value", expression=0xb7f3c189 
"VALID_ITER (iter, tree_store)")
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmessages.c:584
#6  0xb7dc34fc in gtk_tree_store_get_value (tree_model=0x86d7198, iter=0x3b45, 
column=6, value=0xbfffebdc) at 
/build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreestore.c:
580
#7  0xb7db4e43 in IA__gtk_tree_model_get_value (tree_model=0x86d7198, 
iter=0xbfffecc0, column=2, value=0xbfffebdc) at 
/build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreemodel.c:
1147
#8  0xb7db5902 in IA__gtk_tree_model_get_valist (tree_model=0x86d7198, 
iter=0xbfffecc0, var_args=0xbfffec4c 
"h\354\377\277\377\377\377\377\310\313\022\b\002\200")
    at /build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreemodel.c:1444
#9  0xb7db5b4f in IA__gtk_tree_model_get (tree_model=0x86d7198, 
iter=0xbfffecc0) at 
/build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreemodel.c:
1408
#10 0xb21380e3 in vtg_source_outliner_view_sort_model (model=0x86d7198, 
a=0xbfffecd0, b=0xbfffecc0, self=0x8594e80) at vtgsourceoutlinerview.vala:371
#11 _vtg_source_outliner_view_sort_model_gtk_tree_iter_compare_func 
(model=0x86d7198, a=0xbfffecd0, b=0xbfffecc0, self=0x8594e80) at 
vtgsourceoutlinerview.c:889
#12 0xb7dbbf15 in gtk_tree_model_sort_compare_func (a=0x9d92fe8, b=0x9d92fd0, 
user_data=0xbfffeec0) at 
/build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreemodelsor
t.c:1508
#13 0xb7874427 in IA__g_qsort_with_data (pbase=0x9d92fd8, total_elems=4, 
size=8, compare_func=0xb7dbbe90 <gtk_tree_model_sort_compare_func>, 
user_data=0xbfffeec0)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gqsort.c:263
#14 0xb783c0af in IA__g_array_sort_with_data (farray=0x896f438, 
compare_func=0xb7dbbe90 <gtk_tree_model_sort_compare_func>, user_data=0x3b45)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/garray.c:654
#15 0xb7dbce20 in gtk_tree_model_sort_sort_level (tree_model_sort=<value 
optimized out>, level=0x8d7b6f0, recurse=0, emit_reordered=0)
    at /build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreemodelsort.c:1636
#16 0xb7dbd40a in gtk_tree_model_sort_build_level (tree_model_sort=0x8898990, 
parent_level=<value optimized out>, parent_elt_index=0)
    at /build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreemodelsort.c:2344
#17 0xb7dbe539 in gtk_tree_model_sort_iter_children (tree_model=0x8898990, 
iter=0xbffff0ac, parent=0xbffff0bc) at 
/build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreemodelsor
t.c:1074
#18 0xb7db4bfb in IA__gtk_tree_model_iter_children (tree_model=0x8898990, 
iter=0xbffff0ac, parent=0xbffff0bc) at 
/build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreemodel.c:
1205
#19 0xb7dc96f5 in gtk_tree_view_real_expand_row (tree_view=0x827d7e0, 
path=0xae333b10, tree=0x9cf06a0, node=0x9e55920, open_all=1, animate=0)
    at /build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreeview.c:12085
#20 0xb7dcf9b3 in IA__gtk_tree_view_expand_all (tree_view=0x827d7e0) at 
/build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtktreeview.c:1
1807
#21 0xb2139449 in vtg_source_outliner_view_update_view (self=0x8594e80, 
_result_=0xb4bbea8) at vtgsourceoutlinerview.vala:209
#22 0xb2139e2c in vtg_source_outliner_update_source_outliner_view 
(self=0x8898b70) at vtgsourceoutliner.vala:215
#23 0xb2139f8f in vtg_source_outliner_on_idle_update (self=0x8898b70) at 
vtgsourceoutliner.vala:189
#24 _vtg_source_outliner_on_idle_update_gsource_func (self=0x8898b70) at 
vtgsourceoutliner.c:455
#25 0xb7861381 in g_idle_dispatch (source=0x90bb508, callback=0, 
user_data=0x8898b70) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:4065
#26 0xb7863305 in g_main_dispatch (context=0x810e0f8) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:1960
#27 IA__g_main_context_dispatch (context=0x810e0f8) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2513
#28 0xb7866fe8 in g_main_context_iterate (context=0x810e0f8, block=<value 
optimized out>, dispatch=1, self=0x80e2008) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2591
#29 0xb7867527 in IA__g_main_loop_run (loop=0x88d70c8) at 
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2799
#30 0xb7cc4dc9 in IA__gtk_main () at 
/build/buildd-gtk+2.0_2.20.1-1+b1-i386-jmql5R/gtk+2.0-2.20.1/gtk/gtkmain.c:1219
#31 0x0806ad30 in main ()
(gdb) 
(gdb) 

Original issue reported on code.google.com by seje...@gmail.com on 19 Sep 2010 at 8:35

GoogleCodeExporter commented 9 years ago
It's not a multithreading issue, so I've updated the title

Original comment by seje...@gmail.com on 19 Sep 2010 at 1:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r781.

Original comment by seje...@gmail.com on 19 Sep 2010 at 2:03

GoogleCodeExporter commented 9 years ago

Original comment by seje...@gmail.com on 19 Sep 2010 at 3:11