Bug #494

Crash on Linux when saving metadata

Added by Alex about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:03.08.2015
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:2.4.6
Version:Nomacs 2.4.4 Operating System:Linux 64bit

Description

I have been experiencing this crash a lot lately and have had one image corrupted so far! (rewritten as zero bytes). If you want better stacktraces let me know and I will build w/ debug.

alhirzel@MOHAWK:~/20150731thru0802 Sailing between Charlevoix and Petoskey% libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
TIFFReadDirectory: Warning, Unknown field with tag 36867 (0x9003) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 37398 (0x9216) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 36867 (0x9003) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 37398 (0x9216) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 36867 (0x9003) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 37398 (0x9216) encountered.
*** Error in `/usr/bin/nomacs': double free or corruption (out): 0x00007f686007e1e0 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x71bad)[0x7f688dd35bad]
/usr/lib/libc.so.6(+0x770fe)[0x7f688dd3b0fe]
/usr/lib/libc.so.6(+0x778db)[0x7f688dd3b8db]
/usr/lib/libexiv2.so.13(_ZN5Exiv25ImageD1Ev+0x22e)[0x7f688fd8620e]
/usr/lib/libexiv2.so.13(_ZN5Exiv25ImageD0Ev+0x9)[0x7f688fd863b9]
/usr/bin/nomacs(_ZN3nmc11DkMetaDataT12saveMetaDataER14QSharedPointerI10QByteArrayEb+0x2bb)[0x53aecb]
/usr/bin/nomacs(_ZN3nmc13DkBasicLoader12saveMetaDataERK9QFileInfoR14QSharedPointerI10QByteArrayE+0x50)[0x534f50]
/usr/bin/nomacs(_ZN3nmc13DkBasicLoader12saveMetaDataERK9QFileInfo+0x2f)[0x53520f]
/usr/bin/nomacs(_ZN3nmc13DkBasicLoader7releaseEb+0x28)[0x5352d8]
/usr/bin/nomacs(_ZN3nmc16DkImageContainer5clearEv+0x14)[0x54a5a4]
/usr/bin/nomacs(_ZN3nmc13DkImageLoader15setCurrentImageE14QSharedPointerINS_17DkImageContainerTEE+0x2ba)[0x59761a]
/usr/bin/nomacs(_ZN3nmc10DkViewPort12loadFileFastEi+0x1a1)[0x584ae1]
/usr/bin/nomacs[0x5ed9c7]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x4d0)[0x7f6890319630]
/usr/lib/libQtGui.so.4(_ZN7QAction9triggeredEb+0x42)[0x7f6890bc1402]
/usr/lib/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0x83)[0x7f6890bc2763]
/usr/lib/libQtGui.so.4(_ZN7QAction5eventEP6QEvent+0xbc)[0x7f6890bc2cbc]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x8c)[0x7f6890bc739c]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x2b6)[0x7f6890bce1f6]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8d)[0x7f689030555d]
/usr/lib/libQtGui.so.4(+0x239218)[0x7f6890bfe218]
/usr/lib/libQtGui.so.4(+0x239407)[0x7f6890bfe407]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x168e)[0x7f6890bcf5ce]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8d)[0x7f689030555d]
/usr/lib/libQtGui.so.4(+0x2a8453)[0x7f6890c6d453]
/usr/lib/libQtGui.so.4(+0x2a8962)[0x7f6890c6d962]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x976)[0x7f6890c476e6]
/usr/lib/libQtGui.so.4(+0x2ab2e2)[0x7f6890c702e2]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x24d)[0x7f688d9ff9fd]
/usr/lib/libglib-2.0.so.0(+0x49ce0)[0x7f688d9ffce0]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f688d9ffd8c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x64)[0x7f6890335854]
/usr/lib/libQtGui.so.4(+0x2ab3b6)[0x7f6890c703b6]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x41)[0x7f6890303dd1]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x1b5)[0x7f6890304145]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x99)[0x7f6890309af9]
/usr/bin/nomacs(main+0x5b6)[0x4a8326]
/usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7f688dce4790]
/usr/bin/nomacs(_start+0x29)[0x4a9a89]

History

#1 Updated by Markus about 4 years ago

  • Priority changed from Urgent to Normal

hi,

thanks for reporting... can you tell me which exiv2 version you are using? - I am experiencing the same issue on windows with the current developer built (exiv2-0.25)

regards,
markus

#2 Updated by Markus about 4 years ago

  • Status changed from New to Accepted

#3 Updated by Alex about 4 years ago

exiv2 0.24-1 on Arch Linux. I also see this bug sometimes on Windows 7 64.

#4 Updated by Markus about 4 years ago

  • Target version set to 2.4.6
  • % Done changed from 0 to 100

#5 Updated by Markus about 4 years ago

  • Status changed from Accepted to Closed

Also available in: Atom PDF