Ristretto crash when using AFP network file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ristretto (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
Lunar |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Ristretto crashes when opening certain directories with files that have unknown (non-standard) extensions.
[Test Case]
Create a directory and create a file.azerty file in it.
Use the ristretto viewer to open the directory and observe if the application crashes.
[Regression Potential]
This only adds a null check so there should be no regression potential. If anything would go wrong though, it would be in directory viewing - could potentially show no images there.
[Original Description]
Hello,
When i use file from AFP network (apple), the viewer crash. No crash copied from the network directory to the desktop.
Tried with multiple folders.
dbg backtrace give this :
Starting program: /usr/bin/ristretto
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
[New Thread 0x7ffff51c2700 (LWP 19324)]
[New Thread 0x7ffff499f700 (LWP 19325)]
[New Thread 0x7fffed2fe700 (LWP 19341)]
[New Thread 0x7fffecaa9700 (LWP 19342)]
[New Thread 0x7fffe3fff700 (LWP 19343)]
[New Thread 0x7fffe37fe700 (LWP 19344)]
[New Thread 0x7fffe2ffd700 (LWP 19353)]
[New Thread 0x7fffe27fc700 (LWP 19362)]
[New Thread 0x7fffe1ffb700 (LWP 19368)]
[New Thread 0x7fffe17fa700 (LWP 19370)]
[New Thread 0x7fffe0ff9700 (LWP 19371)]
[Thread 0x7fffe0ff9700 (LWP 19371) exited]
[Thread 0x7fffe17fa700 (LWP 19370) exited]
[Thread 0x7fffe1ffb700 (LWP 19368) exited]
[Thread 0x7fffe27fc700 (LWP 19362) exited]
[Thread 0x7fffe2ffd700 (LWP 19353) exited]
[Thread 0x7fffecaa9700 (LWP 19342) exited]
[Thread 0x7fffed2fe700 (LWP 19341) exited]
Thread 1 "ristretto" received signal SIGSEGV, Segmentation fault.
0x000055555556aed7 in ?? ()
(gdb) backtrace
#0 0x000055555556aed7 in ()
#1 0x00007ffff7715f4d in () at /lib/x86_
#2 0x00007ffff721f04e in g_main_
#3 0x00007ffff721f400 in () at /lib/x86_
#4 0x00007ffff721f6f3 in g_main_loop_run () at /lib/x86_
#5 0x00007ffff7a3812d in gtk_main () at /lib/x86_
#6 0x000055555556978c in ()
#7 0x00007ffff6cb8083 in __libc_start_main (main=0x5555555
#8 0x00005555555698ae in ()
(gdb) bt full
#0 0x000055555556aed7 in ()
#1 0x00007ffff7715f4d in () at /lib/x86_
#2 0x00007ffff721f04e in g_main_
#3 0x00007ffff721f400 in () at /lib/x86_
#4 0x00007ffff721f6f3 in g_main_loop_run () at /lib/x86_
#5 0x00007ffff7a3812d in gtk_main () at /lib/x86_
#6 0x000055555556978c in ()
#7 0x00007ffff6cb8083 in __libc_start_main (main=0x5555555
result = <optimised out>
unwind_buf =
#8 0x00005555555698ae in ()
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ristretto 0.10.0-1
ProcVersionSign
Uname: Linux 5.4.0-107-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Sat Apr 2 17:35:47 2022
InstallationDate: Installed on 2021-06-20 (286 days ago)
InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: ristretto
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Łukasz Zemczak (community): Needs Fixing
- git-ubuntu import: Pending requested
-
Diff: 51 lines (+33/-0) (has conflicts)1 file modifiedsrc/image_list.c (+33/-0)
Changed in ristretto (Ubuntu): | |
status: | New → Confirmed |
description: | updated |
Also crash with SMB protocol.
Try to access network file using "/run/user/ 1000/gvfs/ " and no crash.