title: iOS App crash and exited abnormally with signal 11: Segmentation fault: 11
body: <p>I am developing Titanium iOS Module for Trim the Video in certain range and also completed that, Its working fine,
  But the app is getting crashed some times while click on Trim Button,</p>
  
  <p>I am just doing the below process at the time of Trim button click,</p>
  
  <ol>
  <li>Deleting the existing .mov file in the NSTempDirectory,</li>
  <li><p>Exporting an AVAsset into the same path using AVAssetExportSession </p>
  
  <p>self.exportSession = [[AVAssetExportSession alloc]
                                initWithAsset:anAsset presetName:AVAssetExportPresetPassthrough];</p></li>
  </ol>
  
  <p>It works few times, But not working often, 
  <em>Application gets crash with the below log in iOS Simulator,</em></p>
  
  <pre><code>[DEBUG] :  [ioslib] [ios-sim]
  [DEBUG] Session did end with error (null)
  [DEBUG] :  [ioslib] [ios-sim] 
  [DEBUG] Removing named pipe at `/var/folders/0k/yjm3h6ts0z1bdbr8hvn_h1h00000gq/T//ios-sim-stderr-&gt;pipe-1460036674'
  [DEBUG] :  [ioslib] [ios-sim] 
  [DEBUG] Removing named pipe at `/var/folders/0k/yjm3h6ts0z1bdbr8hvn_h1h00000gq/T//ios-sim-stdout-pipe-1460036674'
  [DEBUG] :  [ioslib] [ios-sim] Exited with code: 0
  </code></pre>
  
  <ul>
  <li><p>Below crash log is while run in iOS device 5S</p>
  
  <p>Apr  5 16:47:22 s-iPhone-4-1 ReportCrash[360] : ReportCrash acting against PID 357
  Apr  5 16:47:23 s-iPhone-4-1 ReportCrash[360] : Formulating crash report for process AppName[357]
  Apr  5 16:47:23 s-iPhone-4-1 com.apple.launchd[1] (UIKitApplication:com.xxx.xxxx[0xae94][357]) : (UIKitApplication:com.xxxx.xxx[0xae94]) Job appears to have crashed: Segmentation fault: 11
  Apr  5 16:47:23 s-iPhone-4-1 backboardd[28] : Application 'UIKitApplication:com.xxx.xxx[0xae94]' exited abnormally with signal 11: Segmentation fault: 11</p></li>
  </ul>
  
  <p>Can anyone suggest me the solution, Also let me know if you need anything else.</p>
  
  <p>Thanks in advance</p>