Skip to content

Replace _thunar_assert() with _thunar_return_if_fail() to prevent crash then build with debug.

Rozhuk Ivan requested to merge RIM/thunar:crash_fix into master

On FreeBSD with thunar 1.8.15 build with debug some times crash:

[Current thread is 1 (LWP 100834)]
#0  0x00000008014b1c0a in thr_kill () at /lib/libc.so.7
#1  0x00000008014afe24 in raise () at /lib/libc.so.7
#2  0x0000000801429aec in abort () at /lib/libc.so.7
#3  0x00000008012d37f5 in  () at /usr/local/lib/libglib-2.0.so.0
#4  0x00000008012d385e in g_assertion_message_expr () at /usr/local/lib/libglib-2.0.so.0
#5  0x00000000002d002f in thunar_list_model_get_value (model=0x8102cb270, iter=0x7fffffffcfa0, column=10, value=0x7fffffffd0b0) at thunar-list-model.c:708
#6  0x0000000800d56c07 in gtk_tree_model_get_value () at /usr/local/lib/libgtk-3.so.0
#7  0x0000000800d5c10f in  () at /usr/local/lib/libgtk-3.so.0
#8  0x0000000800d56c07 in gtk_tree_model_get_value () at /usr/local/lib/libgtk-3.so.0
#9  0x0000000800ad4ad9 in  () at /usr/local/lib/libgtk-3.so.0
#10 0x0000000801296d42 in g_hash_table_foreach () at /usr/local/lib/libglib-2.0.so.0
#11 0x0000000800ad43be in  () at /usr/local/lib/libgtk-3.so.0
#12 0x0000000800ad6eb5 in  () at /usr/local/lib/libgtk-3.so.0
#13 0x0000000800e05f37 in  () at /usr/local/lib/libgtk-3.so.0
#14 0x00000008011ae161 in  () at /usr/local/lib/libgobject-2.0.so.0
#15 0x00000008011c5164 in g_signal_emit_valist () at /usr/local/lib/libgobject-2.0.so.0
#16 0x00000008011c5b06 in g_signal_emit () at /usr/local/lib/libgobject-2.0.so.0
#17 0x0000000800ad0ef1 in gtk_cell_area_apply_attributes () at /usr/local/lib/libgtk-3.so.0
#18 0x0000000800d8619c in  () at /usr/local/lib/libgtk-3.so.0
#19 0x0000000800d71ecd in  () at /usr/local/lib/libgtk-3.so.0
#20 0x0000000800d72570 in  () at /usr/local/lib/libgtk-3.so.0
#21 0x000000080048cbd2 in  () at /usr/local/lib/libgdk-3.so.0
#22 0x00000008012a92ca in g_main_context_dispatch () at /usr/local/lib/libglib-2.0.so.0
#23 0x00000008012a967a in  () at /usr/local/lib/libglib-2.0.so.0
#24 0x00000008012a9744 in g_main_context_iteration () at /usr/local/lib/libglib-2.0.so.0
#25 0x00000008010f10fd in g_application_run () at /usr/local/lib/libgio-2.0.so.0
#26 0x000000000027610a in main (argc=2, argv=0x7fffffffd970) at main.c:161

Merge request reports