Bug 168548 - Tiff file loads in 1.6.3 (suse), not in 1.6.3 (kubuntu) but crashes svn trunk
Summary: Tiff file loads in 1.6.3 (suse), not in 1.6.3 (kubuntu) but crashes svn trunk
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: git master (please specify the git hash!)
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 155852 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-06 20:56 UTC by Halla Rempt
Modified: 2009-03-08 21:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Halla Rempt 2008-08-06 20:56:42 UTC
The attached file causes a crash in Krita trunk. The reporter tells me that it
doesn't load in Krita 1.6.3 on Kubuntu, despite being created by Krita, but it
does load in 1.6.3 on OpenSUSE.

Backtrace from trunk:

Application: Krita (krita), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[New Thread 0x7fb524d83700 (LWP 11191)]
[KCrash handler]
#5  0x00007fb517f03edc in memcpy () from /lib64/libc.so.6
#6  0x00007fb50d632724 in KisTIFFConverter::readTIFFDirectory (
    this=0x7fff2cddc180, image=0xa76690)
    at
/home/boud/src/koffice/koffice/filters/krita/tiff/kis_tiff_converter.cc:262
#7  0x00007fb50d63472f in KisTIFFConverter::decode (this=0x7fff2cddc180, 
    uri=@0x7fff2cddc130)
    at
/home/boud/src/koffice/koffice/filters/krita/tiff/kis_tiff_converter.cc:177
#8  0x00007fb50d6347f5 in KisTIFFConverter::buildImage (this=0x7fff2cddc180, 
    uri=@0x7fff2cddc1e0)
    at
/home/boud/src/koffice/koffice/filters/krita/tiff/kis_tiff_converter.cc:618
#9  0x00007fb50d639547 in KisTIFFImport::convert (this=<value optimized out>, 
    to=<value optimized out>)
    at /home/boud/src/koffice/koffice/filters/krita/tiff/kis_tiff_import.cc:79
#10 0x00007fb5232a409f in KoFilterChain::ChainLink::invokeFilter (
    this=0x91ef80, parentChainLink=0x0)
    at /home/boud/src/koffice/koffice/libs/main/KoFilterChain.cpp:66
#11 0x00007fb5232a422c in KoFilterChain::invokeChain (this=0xa811b0)
    at /home/boud/src/koffice/koffice/libs/main/KoFilterChain.cpp:176
#12 0x00007fb52328d72c in KoFilterManager::importDocument (this=0xa67800, 
    url=@0x7fff2cddc830, status=@0x7fff2cddc9fc)
    at /home/boud/src/koffice/koffice/libs/main/KoFilterManager.cpp:244
#13 0x00007fb523277569 in KoDocument::openFile (this=0x8619a0)
    at /home/boud/src/koffice/koffice/libs/main/KoDocument.cpp:1539
#14 0x00007fb522aded98 in KParts::ReadOnlyPart::openUrl ()
   from /usr/lib64/libkparts.so.4
#15 0x00007fb5232787f0 in KoDocument::openUrl (this=0x8619a0, 
    _url=@0x7fff2cddcfc0)
    at /home/boud/src/koffice/koffice/libs/main/KoDocument.cpp:1462
#16 0x00007fb52329546c in KoMainWindow::openDocumentInternal (this=0x8cbba0, 
    url=@0x7fff2cddcfc0, newdoc=0x8619a0)
    at /home/boud/src/koffice/koffice/libs/main/KoMainWindow.cpp:731
#17 0x00007fb523293412 in KoMainWindow::openDocument (this=0x8cbba0, 
    newdoc=0x8619a0, url=@0x7fff2cddcfc0)
    at /home/boud/src/koffice/koffice/libs/main/KoMainWindow.cpp:713
#18 0x00007fb52329cac5 in KoApplication::start (this=<value optimized out>)
    at /home/boud/src/koffice/koffice/libs/main/KoApplication.cpp:220
#19 0x00007fb5249bf312 in kdemain (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /home/boud/src/koffice/koffice/krita/main.cc:53
#20 0x00007fb517ea1436 in __libc_start_main () from /lib64/libc.so.6
#21 0x0000000000400ab9 in _start ()
#0  0x00007fb517f25230 in nanosleep () from /lib64/libc.so.6
Comment 1 Halla Rempt 2008-08-06 21:01:43 UTC
Ok, the attachment is too big. Get it at http://www.valdyas.org/~boud/8-5-1.tiff.
Comment 2 Cyrille Berger 2008-08-06 21:16:20 UTC
It works for me in 1.6 and 2.x. I will need details about architecture and libtiff version.
Comment 3 Halla Rempt 2008-08-06 21:23:03 UTC
For me, 64bits OpenSUSE 11 with libtiff 3.8.2, svn as of today.
Comment 4 Sven Langkamp 2008-08-06 21:34:30 UTC
Works here with 1.6.3 and 2.0 from trunk, Kubuntu 7.10, libtiff 3.8.2
Comment 5 Sven Langkamp 2008-08-06 21:36:04 UTC
I forgot: 32-Bit x86
Comment 6 doug 2008-08-06 22:35:03 UTC
Original reporter here-
kubuntu 64 hardy x86 
libtiff4
strange problem is that krita can open tiffs made by other programs, and other programs can open tiffs made by krita, but it cannot open it's own tiffs.
Comment 7 Cyrille Berger 2008-08-06 22:56:57 UTC
btw, the 1.6 crash is a duplicate of 155852, and should be reported to ubuntu, there is nothing we can do about it. At 155852 time I did extensive testing of 1.6.3 tiff filter on different linuxes, different architecture, and the only crashing combinaison was ubuntu + 64bits (ubuntu 32bits isn't affected).
Comment 8 Cyrille Berger 2008-08-06 22:59:36 UTC
As far as I know, only 16bits images are triggering the crash, so it's hardly a surprise that Krita correctly open tiffs made by other programs, since there isn't that many other free software tools that do produce 16bits tiff files ;)
Comment 9 Halla Rempt 2008-08-07 09:37:29 UTC
Memcheck output:

==13218== Conditional jump or move depends on uninitialised value(s)
==13218==    at 0x4C261DA: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)     
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618) 
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                          
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                          
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                         
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                   
==13218==                                                                                                                        
==13218== Conditional jump or move depends on uninitialised value(s)                                                             
==13218==    at 0x4C261F8: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                     
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                               
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                    
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                 
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)        
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                  
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                          
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                         
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Conditional jump or move depends on uninitialised value(s)                                                                          
==13218==    at 0x4C2625A: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                                  
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                               
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)             
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                                       
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                                      
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                             
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Use of uninitialised value of size 8                                                                                                
==13218==    at 0x4C26260: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                                  
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                               
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)             
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                                       
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                                      
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                             
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Use of uninitialised value of size 8                                                                                                
==13218==    at 0x4C26264: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                                  
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                               
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)             
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                                       
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                                      
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                             
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Conditional jump or move depends on uninitialised value(s)                                                                          
==13218==    at 0x4C26292: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                                  
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                               
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)             
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                                       
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                                      
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                             
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Use of uninitialised value of size 8                                                                                                
==13218==    at 0x4C26268: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                                  
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                               
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)             
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                                       
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                                      
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                             
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Use of uninitialised value of size 8                                                                                                
==13218==    at 0x4C2626D: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                                  
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                               
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)             
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                                       
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                                      
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                             
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Use of uninitialised value of size 8                                                                                                
==13218==    at 0x4C262C0: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                                  
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                               
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)             
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                                       
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                                      
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                             
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Use of uninitialised value of size 8                                                                                                
==13218==    at 0x4C262C4: memcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                                  
==13218==    by 0x1E1B3723: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:262)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)                                                               
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)             
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)                                                                       
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)                                      
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)                                                             
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)                                
==13218==                                                                                                                                     
==13218== Conditional jump or move depends on uninitialised value(s)                                                                          
==13218==    at 0xBB1F19B: _cmsComputePrelinearizationTablesFromXFORM (in /usr/lib64/liblcms.so.1.0.16)                                       
==13218==    by 0xBB35E06: _cmsPrecalculateDeviceLink (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB33B55: cmsCreateProofingTransform (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB3429A: cmsCreateTransform (in /usr/lib64/liblcms.so.1.0.16)                                                               
==13218==    by 0x21A7B7DB: KoLcmsColorSpace<KoColorSpaceTrait<unsigned char, 1, -1> >::init() (KoLcmsColorSpace.h:165)                       
==13218==    by 0x21A787AE: KisGrayColorSpace::KisGrayColorSpace(KoColorProfile*) (kis_gray_colorspace.cc:38)                                 
==13218==    by 0x2186E4F5: GrayPlugin::GrayPlugin(QObject*, QStringList const&) (gray_plugin.cc:51)                                          
==13218==    by 0x2186F503: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, QStringList const&, KDEPrivate::Type2Type<QObject>) (kgenericfactory.tcc:173)                                                                                                      
==13218==    by 0x2186F668: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, char const*, QStringList const&) (kgenericfactory.tcc:136)                                                                                                                         
==13218==    by 0x2186F6AA: KGenericFactory<GrayPlugin, QObject>::createObject(QObject*, char const*, QStringList const&) (kgenericfactory.h:164)                                                                                                                                           
==13218==    by 0x91BDEC6: KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) (in /usr/lib64/libkdecore.so.5.1.0)                                                                                                                              
==13218==    by 0x6533DA0: QObject* KPluginFactory::create<QObject>(QObject*, QList<QVariant> const&) (kpluginfactory.h:491)                  
==13218==                                                                                                                                     
==13218== Conditional jump or move depends on uninitialised value(s)                                                                          
==13218==    at 0xBB1F1C5: _cmsComputePrelinearizationTablesFromXFORM (in /usr/lib64/liblcms.so.1.0.16)                                       
==13218==    by 0xBB35E06: _cmsPrecalculateDeviceLink (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB33B55: cmsCreateProofingTransform (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB3429A: cmsCreateTransform (in /usr/lib64/liblcms.so.1.0.16)                                                               
==13218==    by 0x21A7B7DB: KoLcmsColorSpace<KoColorSpaceTrait<unsigned char, 1, -1> >::init() (KoLcmsColorSpace.h:165)                       
==13218==    by 0x21A787AE: KisGrayColorSpace::KisGrayColorSpace(KoColorProfile*) (kis_gray_colorspace.cc:38)                                 
==13218==    by 0x2186E4F5: GrayPlugin::GrayPlugin(QObject*, QStringList const&) (gray_plugin.cc:51)                                          
==13218==    by 0x2186F503: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, QStringList const&, KDEPrivate::Type2Type<QObject>) (kgenericfactory.tcc:173)                                                                                                      
==13218==    by 0x2186F668: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, char const*, QStringList const&) (kgenericfactory.tcc:136)                                                                                                                         
==13218==    by 0x2186F6AA: KGenericFactory<GrayPlugin, QObject>::createObject(QObject*, char const*, QStringList const&) (kgenericfactory.h:164)                                                                                                                                           
==13218==    by 0x91BDEC6: KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) (in /usr/lib64/libkdecore.so.5.1.0)                                                                                                                              
==13218==    by 0x6533DA0: QObject* KPluginFactory::create<QObject>(QObject*, QList<QVariant> const&) (kpluginfactory.h:491)                  
==13218==                                                                                                                                     
==13218== Conditional jump or move depends on uninitialised value(s)                                                                          
==13218==    at 0xBB1F1DA: _cmsComputePrelinearizationTablesFromXFORM (in /usr/lib64/liblcms.so.1.0.16)                                       
==13218==    by 0xBB35E06: _cmsPrecalculateDeviceLink (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB33B55: cmsCreateProofingTransform (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB3429A: cmsCreateTransform (in /usr/lib64/liblcms.so.1.0.16)                                                               
==13218==    by 0x21A7B7DB: KoLcmsColorSpace<KoColorSpaceTrait<unsigned char, 1, -1> >::init() (KoLcmsColorSpace.h:165)                       
==13218==    by 0x21A787AE: KisGrayColorSpace::KisGrayColorSpace(KoColorProfile*) (kis_gray_colorspace.cc:38)                                 
==13218==    by 0x2186E4F5: GrayPlugin::GrayPlugin(QObject*, QStringList const&) (gray_plugin.cc:51)                                          
==13218==    by 0x2186F503: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, QStringList const&, KDEPrivate::Type2Type<QObject>) (kgenericfactory.tcc:173)                                                                                                      
==13218==    by 0x2186F668: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, char const*, QStringList const&) (kgenericfactory.tcc:136)                                                                                                                         
==13218==    by 0x2186F6AA: KGenericFactory<GrayPlugin, QObject>::createObject(QObject*, char const*, QStringList const&) (kgenericfactory.h:164)                                                                                                                                           
==13218==    by 0x91BDEC6: KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) (in /usr/lib64/libkdecore.so.5.1.0)                                                                                                                              
==13218==    by 0x6533DA0: QObject* KPluginFactory::create<QObject>(QObject*, QList<QVariant> const&) (kpluginfactory.h:491)                  
==13218==                                                                                                                                     
==13218== Conditional jump or move depends on uninitialised value(s)                                                                          
==13218==    at 0xBB1F1EF: _cmsComputePrelinearizationTablesFromXFORM (in /usr/lib64/liblcms.so.1.0.16)                                       
==13218==    by 0xBB35E06: _cmsPrecalculateDeviceLink (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB33B55: cmsCreateProofingTransform (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB3429A: cmsCreateTransform (in /usr/lib64/liblcms.so.1.0.16)                                                               
==13218==    by 0x21A7B7DB: KoLcmsColorSpace<KoColorSpaceTrait<unsigned char, 1, -1> >::init() (KoLcmsColorSpace.h:165)                       
==13218==    by 0x21A787AE: KisGrayColorSpace::KisGrayColorSpace(KoColorProfile*) (kis_gray_colorspace.cc:38)                                 
==13218==    by 0x2186E4F5: GrayPlugin::GrayPlugin(QObject*, QStringList const&) (gray_plugin.cc:51)                                          
==13218==    by 0x2186F503: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, QStringList const&, KDEPrivate::Type2Type<QObject>) (kgenericfactory.tcc:173)                                                                                                      
==13218==    by 0x2186F668: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, char const*, QStringList const&) (kgenericfactory.tcc:136)                                                                                                                         
==13218==    by 0x2186F6AA: KGenericFactory<GrayPlugin, QObject>::createObject(QObject*, char const*, QStringList const&) (kgenericfactory.h:164)                                                                                                                                           
==13218==    by 0x91BDEC6: KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) (in /usr/lib64/libkdecore.so.5.1.0)                                                                                                                              
==13218==    by 0x6533DA0: QObject* KPluginFactory::create<QObject>(QObject*, QList<QVariant> const&) (kpluginfactory.h:491)                  
==13218==                                                                                                                                     
==13218== Conditional jump or move depends on uninitialised value(s)                                                                          
==13218==    at 0xBB1F228: _cmsComputePrelinearizationTablesFromXFORM (in /usr/lib64/liblcms.so.1.0.16)                                       
==13218==    by 0xBB35E06: _cmsPrecalculateDeviceLink (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB33B55: cmsCreateProofingTransform (in /usr/lib64/liblcms.so.1.0.16)                                                       
==13218==    by 0xBB3429A: cmsCreateTransform (in /usr/lib64/liblcms.so.1.0.16)                                                               
==13218==    by 0x21A7B7DB: KoLcmsColorSpace<KoColorSpaceTrait<unsigned char, 1, -1> >::init() (KoLcmsColorSpace.h:165)                       
==13218==    by 0x21A787AE: KisGrayColorSpace::KisGrayColorSpace(KoColorProfile*) (kis_gray_colorspace.cc:38)                                 
==13218==    by 0x2186E4F5: GrayPlugin::GrayPlugin(QObject*, QStringList const&) (gray_plugin.cc:51)                                          
==13218==    by 0x2186F503: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, QStringList const&, KDEPrivate::Type2Type<QObject>) (kgenericfactory.tcc:173)                                                                                                      
==13218==    by 0x2186F668: KDEPrivate::ConcreteFactory<GrayPlugin, QObject>::create(QWidget*, QObject*, char const*, QStringList const&) (kgenericfactory.tcc:136)                                                                                                                         
==13218==    by 0x2186F6AA: KGenericFactory<GrayPlugin, QObject>::createObject(QObject*, char const*, QStringList const&) (kgenericfactory.h:164)                                                                                                                                           
==13218==    by 0x91BDEC6: KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) (in /usr/lib64/libkdecore.so.5.1.0)                                                                                                                              
==13218==    by 0x6533DA0: QObject* KPluginFactory::create<QObject>(QObject*, QList<QVariant> const&) (kpluginfactory.h:491)                  
==13218==                                                                                                                                     
==13218== Mismatched free() / delete / delete []                                                                                              
==13218==    at 0x4C23E0D: operator delete(void*) (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)                                  
==13218==    by 0x1E1B53B9: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:582)                                            
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)                                                 
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)                                             
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)                              
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)                     
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)
==13218==  Address 0x14ba5238 is 0 bytes inside a block of size 4 alloc'd
==13218==    at 0x4C2488C: operator new[](unsigned long) (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==13218==    by 0x1E1B4214: KisTIFFConverter::readTIFFDirectory(tiff*) (kis_tiff_converter.cc:426)
==13218==    by 0x1E1B572E: KisTIFFConverter::decode(KUrl const&) (kis_tiff_converter.cc:177)
==13218==    by 0x1E1B57F4: KisTIFFConverter::buildImage(KUrl const&) (kis_tiff_converter.cc:618)
==13218==    by 0x1E1BA546: KisTIFFImport::convert(QByteArray const&, QByteArray const&) (kis_tiff_import.cc:79)
==13218==    by 0x655409E: KoFilterChain::ChainLink::invokeFilter(KoFilterChain::ChainLink const*) (KoFilterChain.cpp:66)
==13218==    by 0x655422B: KoFilterChain::invokeChain() (KoFilterChain.cpp:176)
==13218==    by 0x653D72B: KoFilterManager::importDocument(QString const&, KoFilter::ConversionStatus&) (KoFilterManager.cpp:244)
==13218==    by 0x6527568: KoDocument::openFile() (KoDocument.cpp:1539)
==13218==    by 0x6D0AD97: KParts::ReadOnlyPart::openUrl(KUrl const&) (in /usr/lib64/libkparts.so.4.1.0)
==13218==    by 0x65287EF: KoDocument::openUrl(KUrl const&) (KoDocument.cpp:1462)
==13218==    by 0x654546B: KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*) (KoMainWindow.cpp:731)
krita(13218)/kdeui (KAction) KActionCollection::setComponentData: this does not work on a KActionCollection containing actions!
lcms: Error #12288; Read from memory error. Got 0 bytes, block should be of 128 bytes
lcms: Error #12288; Corrupted memory profile
lcms: Error #12288; Read from memory error. Got 0 bytes, block should be of 128 bytes
lcms: Error #12288; Corrupted memory profile
Enchant dict for "en_US" 0x15be5800
Enchant dict for "en_US" 0x15be5800
Enchant dict for "en_US" 0x15be5800
Enchant dict for "en_US" 0x15be5800
Enchant dict for "en_US" 0x15be5800
==13218==
==13218== Conditional jump or move depends on uninitialised value(s)
==13218==    at 0xE1F3474: XcursorImageHash (in /usr/lib64/libXcursor.so.1.0.2)
==13218==    by 0xE1F39AF: XcursorNoticePutBitmap (in /usr/lib64/libXcursor.so.1.0.2)
==13218==    by 0xBD88E57: XPutImage (in /usr/lib64/libX11.so.6.2.0)
==13218==    by 0xBD70176: XCreateBitmapFromData (in /usr/lib64/libX11.so.6.2.0)
==13218==    by 0xD803D05: (within /usr/lib64/libQtGui.so.4.4.0)
==13218==    by 0xD806C5E: (within /usr/lib64/libQtGui.so.4.4.0)
==13218==    by 0xD802F59: (within /usr/lib64/libQtGui.so.4.4.0)
==13218==    by 0xD7FAE4F: QPixmap::copy(QRect const&) const (in /usr/lib64/libQtGui.so.4.4.0)
==13218==    by 0xD7FCA57: QPixmap::QPixmap(QPixmap const&) (in /usr/lib64/libQtGui.so.4.4.0)
==13218==    by 0xD7BB137: (within /usr/lib64/libQtGui.so.4.4.0)
==13218==    by 0xD7648CC: QCursor::QCursor(QBitmap const&, QBitmap const&, int, int) (in /usr/lib64/libQtGui.so.4.4.0)
==13218==    by 0x5108837: KisCursor::load(QString const&, int, int) (kis_cursor.cc:371)
^C^X==13218==
==13218== ERROR SUMMARY: 29734 errors from 17 contexts (suppressed: 1379 from 5)
==13218== malloc/free: in use at exit: 92,923,103 bytes in 542,164 blocks.
==13218== malloc/free: 2,562,915 allocs, 2,020,751 frees, 358,396,081 bytes allocated.
==13218== For counts of detected errors, rerun with: -v
^C^C==13218== searching for pointers to 542,164 not-freed blocks.
==13218== checked 101,603,248 bytes.
==13218==
==13218== LEAK SUMMARY:
==13218==    definitely lost: 390,099 bytes in 2,133 blocks.
==13218==      possibly lost: 12,420,468 bytes in 30,092 blocks.
==13218==    still reachable: 80,112,536 bytes in 509,939 blocks.
==13218==         suppressed: 0 bytes in 0 blocks.
==13218== Rerun with --leak-check=full to see details of leaked memory.
Comment 10 Halla Rempt 2008-08-07 10:16:51 UTC
SVN commit 843416 by rempt:

Backport fix for bug 168548
CCBUG: 168548


 M  +1 -1      kis_tiff_converter.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=843416
Comment 11 Halla Rempt 2008-08-07 10:17:39 UTC
SVN commit 843417 by rempt:

Fix bug 168548
BUG: 168548


 M  +1 -1      kis_tiff_converter.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=843417
Comment 12 Cyrille Berger 2008-08-07 10:25:33 UTC
*** Bug 155852 has been marked as a duplicate of this bug. ***
Comment 13 Rex Dieter 2009-03-07 20:40:52 UTC
Due to backport commit in comment #10, I'm can't build kofice-1.6 branch using gcc-4.4,

kis_tiff_converter.cc: In member function 'KisImageBuilder_Result KisTIFFConverter::readTIFFDirectory(TIFF*)':
kis_tiff_converter.cc:245: error: 'quint32' was not declared in this scope
kis_tiff_converter.cc:245: error: expected ';' before 'EmbedLen'
kis_tiff_converter.cc:248: error: 'EmbedLen' was not declared in this scope

Pardon my ignorance, but I can't find quint32 anywhere outside of qt4.
Comment 14 Cyrille Berger 2009-03-08 21:13:16 UTC
1.6-branch isn't supported (that's why it wasn't released), it might contains some fixes, but it also contains some regression, I suggest to stick with the released 1.6.3.