Bug 177422 - Crash after trying to overwrite image
Summary: Crash after trying to overwrite image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-PNG (show other bugs)
Version: 0.10.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 21:57 UTC by Nikita Bige
Modified: 2022-01-18 16:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Bige 2008-12-10 21:57:36 UTC
Version:           0.10.0-beta7 (rev.: 895440) (using 4.1.80 (KDE 4.1.80 (KDE 4.2 Beta1)), 4.1.80-5.fc10 Fedora)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.7-134.fc10.i686

open image
edit image
save image 
answer YES in dialog 
"About to overwrite file "xxx.png" 
Are you sure?
-> crash
Comment 1 Nikita Bige 2008-12-10 22:00:02 UTC
Application: digiKam (digikam), signal SIGSEGV                                                                                                        
[Current thread is 1 (Thread 0xb80b0770 (LWP 25114))]                                                                                                 
                                                                                                                                                      
Thread 9 (Thread 0xb6a5cb90 (LWP 25116)):                                                                                                             
#0  0x00110416 in __kernel_vsyscall ()                                                                                                                
#1  0x00c71105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0                                                                         
#2  0x06f8c7a2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4                                                                                
#3  0x08260139 in Digikam::ScanController::run (this=0x8bbb438) at /usr/src/debug/digikam-0.10.0-beta7_895440/digikam/scancontroller.cpp:346          
#4  0x06f8b75e in ?? () from /usr/lib/libQtCore.so.4                                                                                                  
#5  0x00c6d51f in start_thread () from /lib/libpthread.so.0                                                                                           
#6  0x00ba301e in clone () from /lib/libc.so.6                                                                                                        
                                                                                                                                                      
Thread 8 (Thread 0xb5f61b90 (LWP 25117)):                                                                                                             
#0  0x00110416 in __kernel_vsyscall ()                                                                                                                
#1  0x00c71105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0                                                                         
#2  0x06f8c7a2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4                                                                                
#3  0x00258112 in Digikam::LoadSaveThread::run (this=0x8d54d80) at /usr/src/debug/digikam-0.10.0-beta7_895440/libs/threadimageio/loadsavethread.cpp:129                                                                                                                                                     
#4  0x06f8b75e in ?? () from /usr/lib/libQtCore.so.4                                                                                                  
#5  0x00c6d51f in start_thread () from /lib/libpthread.so.0                                                                                           
#6  0x00ba301e in clone () from /lib/libc.so.6                                                                                                        
                                                                                                                                                      
Thread 7 (Thread 0xb5560b90 (LWP 25118)):                                                                                                             
#0  0x00110416 in __kernel_vsyscall ()                                                                                                                
#1  0x00c71105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0                                                                         
#2  0x06f8c7a2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4                                                                                
#3  0x00258112 in Digikam::LoadSaveThread::run (this=0x8d270c8) at /usr/src/debug/digikam-0.10.0-beta7_895440/libs/threadimageio/loadsavethread.cpp:129                                                                                                                                                     
#4  0x06f8b75e in ?? () from /usr/lib/libQtCore.so.4                                                                                                  
#5  0x00c6d51f in start_thread () from /lib/libpthread.so.0                                                                                           
#6  0x00ba301e in clone () from /lib/libc.so.6                                                                                                        
                                                                                                                                                      
Thread 6 (Thread 0xb2709b90 (LWP 25119)):                                                                                                             
#0  0x00110416 in __kernel_vsyscall ()                                                                                                                
#1  0x00c71432 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0                                                                    
#2  0x0117dc01 in ?? () from /usr/lib/libxine.so.1                                                                                                    
#3  0x00c6d51f in start_thread () from /lib/libpthread.so.0                                                                                           
#4  0x00ba301e in clone () from /lib/libc.so.6                                                                                                        
                                                                                                                                                      
Thread 5 (Thread 0xb18fdb90 (LWP 25120)):                                                                                                             
#0  0x00110416 in __kernel_vsyscall ()                                                                                                                
#1  0x00b9b3a1 in select () from /lib/libc.so.6                                                                                                       
#2  0x011a8c7a in xine_usec_sleep () from /usr/lib/libxine.so.1                                                                                       
#3  0x0118c395 in ?? () from /usr/lib/libxine.so.1                                                                                                    
#4  0x00c6d51f in start_thread () from /lib/libpthread.so.0                                                                                           
#5  0x00ba301e in clone () from /lib/libc.so.6                                                                                                        
                                                                                                                                                      
Thread 4 (Thread 0xb0efcb90 (LWP 25121)):                                                                                                             
#0  0x00110416 in __kernel_vsyscall ()                                                                                                                
#1  0x00b98747 in poll () from /lib/libc.so.6                                                                                                         
#2  0x00f7f772 in ?? () from /lib/libglib-2.0.so.0                                                                                                    
#3  0x00f7faa1 in g_main_context_iteration () from /lib/libglib-2.0.so.0                                                                              
#4  0x070a6817 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4                                                                 
#5  0x0707a88a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4                                                                           
#6  0x0707aa4a in QEventLoop::exec () from /usr/lib/libQtCore.so.4                                                                                    
#7  0x06f884d9 in QThread::exec () from /usr/lib/libQtCore.so.4                                                                                       
#8  0x076b3572 in Phonon::MediaSource::type () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so                                               
#9  0x06f8b75e in ?? () from /usr/lib/libQtCore.so.4                                                                                                  
#10 0x00c6d51f in start_thread () from /lib/libpthread.so.0                                                                                           
#11 0x00ba301e in clone () from /lib/libc.so.6                                                                                                        
                                                                                                                                                      
Thread 3 (Thread 0xb04fbb90 (LWP 25127)):                                                                                                             
#0  0x00110416 in __kernel_vsyscall ()                                                                                                                
#1  0x00c71105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0                                                                         
#2  0x0118fe34 in ?? () from /usr/lib/libxine.so.1                                                                                                    
#3  0x00c6d51f in start_thread () from /lib/libpthread.so.0                                                                                           
#4  0x00ba301e in clone () from /lib/libc.so.6                                                                                                        
                                                                                                                                                      
Thread 2 (Thread 0xaf3b7b90 (LWP 25139)):                                                                                                             
[KCrash Handler]                                                                                                                                      
#6  0x00ceda3d in ?? () from /usr/lib/libpng12.so.0                                                                                                   
#7  0x00cedfd7 in png_set_text () from /usr/lib/libpng12.so.0                                                                                         
#8  0x001d13dc in Digikam::PNGLoader::save (this=0xaf3b71f4, filePath=@0x9eacd78, observer=0x9eacd70) at /usr/src/debug/digikam-0.10.0-beta7_895440/libs/dimg/loaders/pngloader.cpp:663                                                                                                                     
#9  0x001c0755 in Digikam::DImg::save (this=0x9eacd74, filePath=@0x9eacd78, format=@0x9eacd7c, observer=0x9eacd70) at /usr/src/debug/digikam-0.10.0-beta7_895440/libs/dimg/dimg.cpp:481                                                                                                                     
#10 0x00266e9c in Digikam::SavingTask::execute (this=0x9eacd68) at /usr/src/debug/digikam-0.10.0-beta7_895440/libs/threadimageio/loadsavetask.cpp:335 
#11 0x00258120 in Digikam::LoadSaveThread::run (this=0x99f0b60) at /usr/src/debug/digikam-0.10.0-beta7_895440/libs/threadimageio/loadsavethread.cpp:132                                                                                                                                                     
#12 0x06f8b75e in ?? () from /usr/lib/libQtCore.so.4                                                                                                  
#13 0x00c6d51f in start_thread () from /lib/libpthread.so.0                                                                                           
#14 0x00ba301e in clone () from /lib/libc.so.6                                                                                                        
                                                                                                                                                      
Thread 1 (Thread 0xb80b0770 (LWP 25114)):                                                                                                             
#0  0x00110416 in __kernel_vsyscall ()                                                                                                                
#1  0x00c71432 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0                                                                    
#2  0x06f8b169 in ?? () from /usr/lib/libQtCore.so.4                                                                                                  
#3  0x06f8b29b in QThread::msleep () from /usr/lib/libQtCore.so.4                                                                                     
#4  0x076d8464 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so                                                                      
#5  0x02590122 in ?? () from /usr/lib/libphonon.so.4                                                                                                  
#6  0x0258d8a5 in ?? () from /usr/lib/libphonon.so.4                                                                                                  
#7  0x0258ac1b in ?? () from /usr/lib/libphonon.so.4                                                                                                  
#8  0x00aed939 in exit () from /lib/libc.so.6                                                                                                         
#9  0x04580a9b in ?? () from /usr/lib/libQtGui.so.4                                                                                                   
#10 0x02e6b63a in KApplication::xioErrhandler () from /usr/lib/libkdeui.so.5                                                                          
#11 0x02e6b676 in ?? () from /usr/lib/libkdeui.so.5                                                                                                   
#12 0x06cc8c02 in _XIOError () from /usr/lib/libX11.so.6                                                                                              
#13 0x06cd12c0 in _XSend () from /usr/lib/libX11.so.6                                                                                                 
#14 0x06cd1452 in _XFlush () from /usr/lib/libX11.so.6                                                                                                
#15 0x06ca8b41 in XFlush () from /usr/lib/libX11.so.6                                                                                                 
#16 0x045abad3 in QWidgetPrivate::setCursor_sys () from /usr/lib/libQtGui.so.4                                                                        
#17 0x04573f0a in QWidget::setCursor () from /usr/lib/libQtGui.so.4                                                                                   
#18 0x00354136 in Digikam::EditorWindow::slotSavingStarted (this=0x9674290) at /usr/src/debug/digikam-0.10.0-beta7_895440/utilities/imageeditor/editor/editorwindow.cpp:1299                                                                                                                                
#19 0x00362e05 in Digikam::EditorWindow::qt_metacall (this=0x9674290, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbfaea42c)                        
    at /usr/src/debug/digikam-0.10.0-beta7_895440/i386-redhat-linux-gnu/digikam/editorwindow.moc:174                                                  
#20 0x0808ef1f in Digikam::ImageWindow::qt_metacall (this=0x9674290, _c=QMetaObject::InvokeMetaMethod, _id=65, _a=0xbfaea42c)                         
    at /usr/src/debug/digikam-0.10.0-beta7_895440/i386-redhat-linux-gnu/digikam/imagewindow.moc:117                                                   
#21 0x07090df0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4                                                                               
#22 0x07091b72 in QMetaObject::activate () from /usr/lib/libQtCore.so.4                                                                               
#23 0x00339a83 in Digikam::Canvas::signalSavingStarted (this=0x9b74ab0, _t1=@0xbfaea4a8) at /usr/src/debug/digikam-0.10.0-beta7_895440/i386-redhat-linux-gnu/digikam/canvas.moc:273
#24 0x00339ae7 in Digikam::Canvas::saveAs (this=0x9b74ab0, filename=@0xbfaea4a8, IOFileSettings=0x9971bd8, setExifOrientationTag=<value optimized out>, mimeType=@0xbfaea4a4)
    at /usr/src/debug/digikam-0.10.0-beta7_895440/utilities/imageeditor/canvas/canvas.cpp:299
#25 0x0035ce49 in Digikam::EditorWindow::startingSave (this=0x9674290, url=@0x9673af0) at /usr/src/debug/digikam-0.10.0-beta7_895440/utilities/imageeditor/editor/editorwindow.cpp:1442
#26 0x0808e577 in Digikam::ImageWindow::save (this=0x9674290) at /usr/src/debug/digikam-0.10.0-beta7_895440/utilities/imageeditor/editor/imagewindow.cpp:999
#27 0x0035487b in Digikam::EditorWindow::slotSave (this=0x9674290) at /usr/src/debug/digikam-0.10.0-beta7_895440/utilities/imageeditor/editor/editorwindow.cpp:1294
#28 0x00362f78 in Digikam::EditorWindow::qt_metacall (this=0x9674290, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfaea68c)
    at /usr/src/debug/digikam-0.10.0-beta7_895440/i386-redhat-linux-gnu/digikam/editorwindow.moc:157
#29 0x0808ef1f in Digikam::ImageWindow::qt_metacall (this=0x9674290, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbfaea68c)
    at /usr/src/debug/digikam-0.10.0-beta7_895440/i386-redhat-linux-gnu/digikam/imagewindow.moc:117
#30 0x07090df0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#31 0x070911f0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#32 0x0451a331 in QAction::triggered () from /usr/lib/libQtGui.so.4
#33 0x0451ac9f in QAction::activate () from /usr/lib/libQtGui.so.4
#34 0x0493ebd2 in QToolButton::nextCheckState () from /usr/lib/libQtGui.so.4
#35 0x04862303 in ?? () from /usr/lib/libQtGui.so.4
#36 0x048625d6 in QAbstractButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#37 0x0493f0cc in QToolButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#38 0x04578692 in QWidget::event () from /usr/lib/libQtGui.so.4
#39 0x0486060e in QAbstractButton::event () from /usr/lib/libQtGui.so.4
#40 0x0493eb94 in QToolButton::event () from /usr/lib/libQtGui.so.4
#41 0x0452062c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#42 0x04528e21 in QApplication::notify () from /usr/lib/libQtGui.so.4
#43 0x02e6bc8d in KApplication::notify () from /usr/lib/libkdeui.so.5
#44 0x0707c1c1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#45 0x045280ae in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#46 0x045923c6 in ?? () from /usr/lib/libQtGui.so.4
#47 0x04591755 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#48 0x045b9d8a in ?? () from /usr/lib/libQtGui.so.4
#49 0x00f7c238 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#50 0x00f7f8e3 in ?? () from /lib/libglib-2.0.so.0
#51 0x00f7faa1 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#52 0x070a67f8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#53 0x045b9485 in ?? () from /usr/lib/libQtGui.so.4
#54 0x0707a88a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#55 0x0707aa4a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#56 0x0707d105 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#57 0x045204a7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#58 0x08251a54 in main (argc=5, argv=0xbfaeb904) at /usr/src/debug/digikam-0.10.0-beta7_895440/digikam/main.cpp:180
Comment 2 Marcel Wiesweg 2008-12-11 19:43:33 UTC
SVN commit 895777 by mwiesweg:

Ensure that the QByteArray that provides the char* data() still exists when
the pointer is passed to libpng.

CCBUG: 177422

 M  +6 -3      pngloader.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=895777
Comment 3 Marcel Wiesweg 2008-12-11 19:48:43 UTC
Nikita, I found a possible problem at the place your backtrace points to.
To verify if the problem is fixed you need to test this because I cannot reproduce the crash.
Comment 4 Nikita Bige 2008-12-11 21:42:20 UTC
I've compiled kdegraphics,digikam from r895781
Now, I can't reproduce this bug, I think it's resolved

Thank you!!!