Segfault when trying to open some rar archives
The issue was original reported on https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/2063397
Using file-roller 44.1, download and try to open https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/2063397/+attachment/5770668/+files/archive.rar
file-roller segfaults
Thread 1 "file-roller" received signal SIGSEGV, Segmentation fault.
(gdb) bt
#0 __strcmp_avx2 () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:287
#1 0x00007ffff7eb28fd in msort_with_tmp (p=p@entry=0x7fffffffd760, b=b@entry=0x555555f265e8, n=n@entry=2)
at ../../../glib/gqsort.c:113
#2 0x00007ffff7eb2858 in msort_with_tmp (p=p@entry=0x7fffffffd760, b=b@entry=0x555555f265e8, n=n@entry=4)
at ../../../glib/gqsort.c:87
#3 0x00007ffff7eb2866 in msort_with_tmp (p=p@entry=0x7fffffffd760, b=b@entry=0x555555f265d0, n=n@entry=7)
at ../../../glib/gqsort.c:88
#4 0x00007ffff7eb2858 in msort_with_tmp (p=p@entry=0x7fffffffd760, b=b@entry=0x555555f265d0, n=n@entry=15)
at ../../../glib/gqsort.c:87
#5 0x00007ffff7eb2866 in msort_with_tmp (p=p@entry=0x7fffffffd760, b=b@entry=0x555555f26560, n=n@entry=29)
at ../../../glib/gqsort.c:88
#6 0x00007ffff7eb2866 in msort_with_tmp (p=p@entry=0x7fffffffd760, b=b@entry=0x555555f26480, n=n@entry=57)
at ../../../glib/gqsort.c:88
#7 0x00007ffff7eb2866 in msort_with_tmp (p=p@entry=0x7fffffffd760, b=b@entry=0x555555f262c0, n=n@entry=113)
at ../../../glib/gqsort.c:88
#8 0x00007ffff7eb6880 in msort_r
(b=<optimized out>, n=<optimized out>, s=8, cmp=0x55555558dbc0 <fr_file_data_compare_by_path>, arg=0x0)
at ../../../glib/gqsort.c:279
#9 0x0000555555578ff3 in fr_archive_operation_finish
(archive=0x555555fa8ec0 [FrCommandRar], result=0x555555fb5f50, error=<optimized out>) at ../src/fr-archive.c:891
#10 0x00005555555a21d0 in archive_list_ready_cb (source_object=<optimized out>, result=<optimized out>, user_data=0x5555558487a0)
at ../src/fr-window.c:5109
#11 0x00007ffff70cfb6b in g_simple_async_result_complete (simple=0x555555fb5f50 [GSimpleAsyncResult])
at ../../../gio/gsimpleasyncresult.c:802
#12 g_simple_async_result_complete (simple=0x555555fb5f50 [GSimpleAsyncResult]) at ../../../gio/gsimpleasyncresult.c:780
#13 0x00007ffff70cfbed in complete_in_idle_cb (data=<optimized out>) at ../../../gio/gsimpleasyncresult.c:814
#14 0x00007ffff7ea448e in g_main_dispatch (context=0x5555556cb1c0) at ../../../glib/gmain.c:3344
#15 0x00007ffff7f03717 in g_main_context_dispatch_unlocked (context=0x5555556cb1c0) at ../../../glib/gmain.c:4152
#16 g_main_context_iterate_unlocked.isra.0