Segfault when opening folder containing corrupt DNG

I hope i did this right. I’m sorry for this messy topic.

[code]For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
This binary was built by Equation Solution http://www.Equation.com
Reading symbols from rawtherapee.exe…done.
(gdb) run
Starting program: C:\Program Files\RawTherapee-4.2.699\rawtherapee.exe
[New Thread 13428.0x3478]
[New Thread 13428.0x347c]
[New Thread 13428.0x3480]
[New Thread 13428.0x3488]
[New Thread 13428.0x348c]
[New Thread 13428.0x3490]
[New Thread 13428.0x3494]
[New Thread 13428.0x3498]
[New Thread 13428.0x34d4]
[Thread 13428.0x3498 exited with code 0]
[Thread 13428.0x34d4 exited with code 0]
[New Thread 13428.0x34d8]
[New Thread 13428.0x34dc]
[New Thread 13428.0x34e0]
[Thread 13428.0x34e0 exited with code 0]
[New Thread 13428.0x34e4]
[Thread 13428.0x34dc exited with code 0]
[New Thread 13428.0x34ec]
[Thread 13428.0x34e4 exited with code 0]
[New Thread 13428.0x34f0]
[Thread 13428.0x34f0 exited with code 0]
[New Thread 13428.0x3500]
[New Thread 13428.0x3508]
[Thread 13428.0x3500 exited with code 0]
[New Thread 13428.0x350c]
[New Thread 13428.0x3510]
[New Thread 13428.0x3514]
[Thread 13428.0x350c exited with code 0]
[Thread 13428.0x34ec exited with code 0]
[Thread 13428.0x3514 exited with code 0]
[New Thread 13428.0x3550]

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory

(rawtherapee.exe:13428): Gtk-WARNING **: Failed to fetch network locations: Erro
r opening directory ‘C:\Program Files\RawTherapee-4.2.699\network:’: No such fil
e or directory
[Thread 13428.0x3550 exited with code 0]
[New Thread 13428.0x3558]
[New Thread 13428.0x355c]
[New Thread 13428.0x3560]
[New Thread 13428.0x3564]
[New Thread 13428.0x3568]
[New Thread 13428.0x356c]
[New Thread 13428.0x3570]
[New Thread 13428.0x3580]
[New Thread 13428.0x3584]
[Thread 13428.0x3580 exited with code 0]
[New Thread 13428.0x358c]
[New Thread 13428.0x3590]
[New Thread 13428.0x3594]
[New Thread 13428.0x3598]
[New Thread 13428.0x359c]
[New Thread 13428.0x35a0]
[New Thread 13428.0x35a4]
[New Thread 13428.0x35ac]
[New Thread 13428.0x35b0]
[New Thread 13428.0x35b8]
[New Thread 13428.0x35c0]
[New Thread 13428.0x35b4]
[New Thread 13428.0x35c4]
[New Thread 13428.0x35c8]
[New Thread 13428.0x35bc]
[New Thread 13428.0x35d0]
[New Thread 13428.0x35cc]
[New Thread 13428.0x35d4]
[New Thread 13428.0x35d8]
[New Thread 13428.0x35dc]
[New Thread 13428.0x35e0]
[New Thread 13428.0x35e4]
[New Thread 13428.0x35ec]
[New Thread 13428.0x35e8]
[New Thread 13428.0x35f0]
[New Thread 13428.0x35f4]
[New Thread 13428.0x35f8]
[New Thread 13428.0x35fc]
[New Thread 13428.0x3600]
[New Thread 13428.0x3604]
[New Thread 13428.0x3608]
[New Thread 13428.0x360c]
[New Thread 13428.0x3610]
[New Thread 13428.0x3614]
[New Thread 13428.0x3618]
[New Thread 13428.0x361c]
[New Thread 13428.0x3620]
[New Thread 13428.0x3624]
[New Thread 13428.0x3628]
[New Thread 13428.0x3630]
[New Thread 13428.0x362c]
[New Thread 13428.0x3634]
[New Thread 13428.0x3638]
[New Thread 13428.0x363c]
[New Thread 13428.0x3640]
[New Thread 13428.0x3644]
[New Thread 13428.0x3648]
[New Thread 13428.0x364c]
[New Thread 13428.0x3650]
[New Thread 13428.0x3654]
[New Thread 13428.0x3658]
[New Thread 13428.0x365c]
[New Thread 13428.0x3660]
[New Thread 13428.0x3664]
[New Thread 13428.0x3668]
[New Thread 13428.0x366c]
[New Thread 13428.0x3670]
[New Thread 13428.0x3674]
[New Thread 13428.0x3678]
[New Thread 13428.0x3684]
[New Thread 13428.0x3680]
[New Thread 13428.0x367c]
[New Thread 13428.0x3688]
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap
no mmap

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 13428.0x3564]
0x000007fefd6d11fd in msvcrt!memmove () from C:\Windows\system32\msvcrt.dll
(gdb) bt full
#0 0x000007fefd6d11fd in msvcrt!memmove ()
from C:\Windows\system32\msvcrt.dll
No symbol table info available.
#1 0x000000000099a77f in rtengine::Image8::setScanline (this=0x140c2bb0,
row=101, buffer=0x267415e0 “”, bps=8, minValue=0x0, maxValue=0x0)
at C:/Rawtherapee-sources/rtrepo-gtk3/rtengine/image8.cc:70
No locals.
#2 0x00000000009a5096 in rtengine::ImageIO::loadPPMFromMemory (
this=0x140c2c28,
buffer=0x266042a0 “'¯Ës\nL§óW!ã¹(\\020·6Ý\005¤«\024\071\006vPç)\033.i\021A¶
\004\030ë\020-±┼\031\032IWE”·Ñ3ÏTUzêÂázz¥u┼K[~\215~lYJêÐ\036f°tJØõló¼ÕFºË#%Z°*t Ù²ÅÚHx+\210©\032oO ê­j¸ädÈã\021x\026]Ç[î~<\230åÐ\r.\231ÇI\{.ÒïY¦>“E8 iØØ3:zÛ;
025W\177£ºgÖÊòIU½Ðt\001àyÐ\036ÃÉ%‘sÊÆÀê(¥*¶E¬\022U \215.³O¾>v¤æ’”…,
width=4288, height=2848, swap=true, bps=8)
at C:/Rawtherapee-sources/rtrepo-gtk3/rtengine/imageio.cc:881
row = 101
line_length = 12864
#3 0x000000000089a784 in rtengine::Thumbnail::loadQuickFromRaw (fname=…,
rml=…, w=@0x140b9c78: -1, h=@0x140b9c7c: 250, fixwh=1, rotate=true,
inspectorMode=false)
at C:/Rawtherapee-sources/rtrepo-gtk3/rtengine/rtthumbnail.cc:186
data = 0x266042a0 “'¯Ës\nL§óW!ã¹(\\020·6Ý\005¤«\024\071\006vPç)\033.i\0
21A¶\004\030ë\020-±┼\031\032IWE”·Ñ3ÏTUzêÂázz¥u┼K[~\215~lYJêÐ\036f°tJØõló¼ÕFºË#% Z°*tÙ²ÅÚHx+\210©\032oO ê­j¸ädÈã\021x\026]Ç[î~<\230åÐ\r.\231ÇI\{.ÒïY¦>“E8 i—T
ype to continue, or q to quit—return
ØØ3:zÛ;\025W\177£ºgÖÊòIU½Ðt\001àyÐ\036ÃÉ%‘sÊÆÀê(¥*¶E¬\022U \215.³O¾>v¤æ’”…
ri = 0x201b4510
r = 0
img = 0x140c2bb0
err = 1
tpp = 0x1
#4 0x00000000006596a7 in Thumbnail::generateThumbnailImage (this=0x140b9ae0)
at C:/Rawtherapee-sources/rtrepo-gtk3/rtgui/thumbnail.cc:135
quick = true
ri = {exifBase = 0, ciffBase = -1, ciffLength = 0}
ext = {static npos = 18446744073709551615, string
= {
static npos = ,
_M_dataplus = {<std::allocator> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x14dff7c0 “DNG”},
_M_string_length = 3, {
_M_local_buf = “DNG\000\000\000\000\000g{\000\000\000\000",
_M_allocated_capacity = 4673092}}}
#5 0x00000000006590b1 in Thumbnail::Thumbnail (this=0x140b9ae0,
cm=0xe4a980 CacheManager::getInstance()::instance, fname=…, md5=…)
at C:/Rawtherapee-sources/rtrepo-gtk3/rtgui/thumbnail.cc:73
No locals.
#6 0x00000000004a420d in CacheManager::getEntry (
this=0xe4a980 CacheManager::getInstance()::instance, fname=…)
at C:/Rawtherapee-sources/rtrepo-gtk3/rtgui/cachemanager.cc:114
—Type to continue, or q to quit—
thumbnail = {
_M_t = {<std::_Tuple_impl<0ull, Thumbnail
, std::default_delete >> = {<std::_Tuple_impl<1ull, std::default_delete >> = {<std::_H
ead_base<1ull, std::default_delete, true>> = {<std::default_delete> = {}, }, }, <std::_Hea
d_base<0ull, Thumbnail*, false>> = {
_M_head_impl = 0x0}, }, }}
md5 = {static npos = ,
_M_dataplus = {<std::allocator> = {<__gnu_cxx::new_allocator> = {}, },
_M_p = 0x13b3eef0 “37a737b3a0846241b555adeb925d58eb”},
_M_string_length = 32, {
_M_local_buf = " \000\000\000\000\000\000\000\001\000\000\000\000\00
0\000”, M_allocated_capacity = 32}}
cacheName = {static npos = 18446744073709551615, string
= {
static npos = ,
_M_dataplus = {<std::allocator> = {<__gnu_cxx::new_allocator> = {}, },
_M_p = 0x171b16a0 “C:\Users\Jceccarelli\AppData\Local\RawTher
apee\cache\data\_IGP5221.DNG.37a737b3a0846241b555adeb925d58eb.txt”},
M_string_length = 107, {
M_local_buf = “k\000\000\000\000\000\000\000\020\000\000\000\000
000\000”, M_allocated_capacity = 107}}}
#7 0x0000000000a537bc in PreviewLoader::Impl::processNextJob (this=0xf60af60)
—Type to continue, or q to quit—
at C:/Rawtherapee-sources/rtrepo-gtk3/rtgui/previewloader.cc:127
tmb = 0x0
j = {dir_id
= 2, dir_entry
= {static npos = 18446744073709551615,
string
= {static npos = ,
_M_dataplus = {<std::allocator> = {<__gnu_cxx::new_allocator
> = {}, },
_M_p = 0x137087a0 “C:\Users\Jceccarelli\Dropbox\Photos\Pent
ax\_IGP5221.DNG”}, _M_string_length = 55, {
_M_local_buf = “7\000\000\000\000\000\000\000\000ýß\024\000\000
000”, M_allocated_capacity = 55}}}, listener = 0xeb32098}
last = false
#8 0x0000000000b5ccb6 in sigc::bound_mem_functor0<void, PreviewLoader::Impl>::o
perator() (this=0x2016f9b8)
at C:/msys64/mingw64/include/sigc+±2.0/sigc++/functors/mem_fun.h:1787
No locals.
#9 0x0000000000b5830c in sigc::adaptor_functor<sigc::bound_mem_functor0<void, P
reviewLoader::Impl> >::operator() (this=0x2016f9b0)
at C:/msys64/mingw64/include/sigc+±2.0/sigc++/adaptors/adaptor_trait.h:256
No locals.
#10 0x0000000000a9ee94 in sigc::internal::slot_call0<sigc::bound_mem_functor0<vo
id, PreviewLoader::Impl>, void>::call_it (rep=0x2016f980)
at C:/msys64/mingw64/include/sigc+±2.0/sigc++/functors/slot.h:108
typed_rep = 0x2016f980
—Type to continue, or q to quit—
#11 0x00000000664dac94 in ?? ()
from C:\Program Files\RawTherapee-4.2.699\libglibmm-2.4-1.dll
No symbol table info available.
#12 0x0000000068618910 in ?? ()
from C:\Program Files\RawTherapee-4.2.699\libglib-2.0-0.dll
No symbol table info available.
#13 0x0000000068617fa9 in ?? ()
from C:\Program Files\RawTherapee-4.2.699\libglib-2.0-0.dll
No symbol table info available.
#14 0x0000000064944ac4 in ?? ()
from C:\Program Files\RawTherapee-4.2.699\libwinpthread-1.dll
No symbol table info available.
#15 0x000007fefd6d415f in srand () from C:\Windows\system32\msvcrt.dll
No symbol table info available.
#16 0x000007fefd6d6ebd in msvcrt!_ftime64_s ()
from C:\Windows\system32\msvcrt.dll
No symbol table info available.
#17 0x00000000770d59ed in KERNEL32!BaseThreadInitThunk ()
from C:\Windows\system32\kernel32.dll
No symbol table info available.
#18 0x000000007720b831 in ntdll!RtlUserThreadStart ()
from C:\Windows\SYSTEM32\ntdll.dll
No symbol table info available.
#19 0x0000000000000000 in ?? ()
—Type to continue, or q to quit—
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
(gdb)[/code]