Bug 2355 - Segmentation fault splitting large TIFFs with tiffsplit
: Segmentation fault splitting large TIFFs with tiffsplit
Status: RESOLVED LATER
: libtiff
default
: unspecified
: PC Linux
: P2 enhancement
: ---
Assigned To:
:
:
: migrated_to_gitlab
:
:
  Show dependency treegraph
 
Reported: 2012-01-03 08:41 by
Modified: 2019-10-01 14:19 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2012-01-03 08:41:26
Tiffsplit fails with a large multipage tiff file:

root@moose:/home_moose/rose/Test_tiffsplit(2)# tiffsplit
090520_60x_149_rfp_dish3stim_t0003.tif 
TIFFReadDirectory: Warning, Unknown field with tag 317 (0x13d) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 34361 (0x8639) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 34362 (0x863a) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 34363 (0x863b) encountered.
TIFFReadDirectory: Incorrect count for "ColorMap"; tag ignored.
Segmentation fault

root@moose:/home_moose/rose/Test_tiffsplit(10)# du -s *
873796    090520_60x_149_rfp_dish3stim_t0003.tif
4    xaaa.tif


If I try to split the image with convert (from ImageMagick), I get a LoadAvg of
8, the computer starts to swap (8GB RAM), I have difficulties to handle my
desktop but after some minutes I have almost 1700 small tiff files:

root@moose:/home_moose/rose/Test_tiffsplit(11)# time convert
090520_60x_149_rfp_dish3stim_t0003.tif %d.tif

...
real    3m5.945s
user    0m8.328s
sys    0m6.198s

root@moose:/home_moose/rose/Test_tiffsplit(12)# du -s *.tif* | wc
   1701    3402   21034


The large file is available at
http://141.89.194.24/~rose/090520_60x_149_rfp_dish3stim_t0003.tif .
------- Comment #1 From 2012-01-03 08:43:47 -------
The error was also reported as a gentoo bug at
https://bugs.gentoo.org/show_bug.cgi?id=344917.
------- Comment #2 From 2019-10-01 14:19:36 -------
Bugzilla is no longer used for tracking libtiff issues. Remaining open tickets,
such as this one, have been migrated to the libtiff GitLab instance at
https://gitlab.com/libtiff/libtiff/issues .

The migrated tickets have their summary prefixed with [BZ#XXXX] where XXXX is
the initial Bugzilla issue number.