[cmake-developers] [CMake 0013017]: PackageMaker generator sometimes fails when virus scanner active

Mantis Bug Tracker mantis at public.kitware.com
Mon Mar 5 19:18:05 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13017 
====================================================================== 
Reported By:                Torsten Rohlfing
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13017
Category:                   CPack
Reproducibility:            sometimes
Severity:                   major
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2012-03-05 19:18 EST
Last Modified:              2012-03-05 19:18 EST
====================================================================== 
Summary:                    PackageMaker generator sometimes fails when virus
scanner active
Description: 
CPack using the PackageManager generator sometimes (most of the time, really)
fails on MacOS when a virus scanner is installed.

IMPORTANT - This is not so much a CPack bug report as a hint that others may
potentially find useful when they encounter the same situation (right now Google
is useless for this issue). That said, it might be possible for CPack to
implement a workaround, e.g., repeating hdiutil one or two times if this
condition is encountered.

The exact problem is that when the package file is created, the virus scanner
(mine is Symantec) tries to scan the mounted temporary volume. If the scan is
still running when "hdiutil" tries to unmount the volume, then unmounting will
fail and as a result, package generation will too.

Workaround - re-run the "hdiutil" command a couple of times. Eventually the
virus scan will complete within the three unmount retries the hdiutil performs,
and then package creation succeeds.

Steps to Reproduce: 
Run

cpack -G PackageMaker


Sometimes (> 50%) the following results:

Pack Error: Problem running hdiutil command: "/usr/bin/hdiutil" create -ov
-format UDZO -srcfolder
"/Users/torsten/cmtk/release/OSX-10.6/_CPack_Packages/Darwin/PackageMaker/CMTK-2.1.3-MacOSX-10.6-x86_64.mpkg"
"/Users/torsten/cmtk/release/OSX-10.6/_CPack_Packages/Darwin/PackageMaker/CMTK-2.1.3-MacOSX-10.6-x86_64.dmg"
Please check
/Users/torsten/cmtk/release/OSX-10.6/_CPack_Packages/Darwin/PackageMaker/hdiutilOutput.log
for errors
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: CMTK


The error log file contains the following:

detachTempimageFile: synchronous unmount /dev/disk2s1 returned 49153
retrying unmount (http://public.kitware.com/Bug/view.php?id=1)...
detachTempImageFile: synchronous retry
(http://public.kitware.com/Bug/view.php?id=1) unmount
/Volumes/CMTK-2.1.3-MacOSX-10.6-x86_64 (/dev/disk2s1) returned 49153
retrying unmount (http://public.kitware.com/Bug/view.php?id=2)...
detachTempImageFile: synchronous retry
(http://public.kitware.com/Bug/view.php?id=1) unmount
/Volumes/CMTK-2.1.3-MacOSX-10.6-x86_64 (/dev/disk2s1) returned 49153
retrying unmount (http://public.kitware.com/Bug/view.php?id=3)...
detachTempImageFile: synchronous retry
(http://public.kitware.com/Bug/view.php?id=1) unmount
/Volumes/CMTK-2.1.3-MacOSX-10.6-x86_64 (/dev/disk2s1) returned 49153
hdiutil: create failed - Resource busy

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-05 19:18 Torsten RohlfingNew Issue                                    
======================================================================




More information about the cmake-developers mailing list