Skip to content

Instantly share code, notes, and snippets.

@Nyoho
Created November 18, 2014 00:15
Show Gist options
  • Save Nyoho/037b98be1d0d390b65e7 to your computer and use it in GitHub Desktop.
Save Nyoho/037b98be1d0d390b65e7 to your computer and use it in GitHub Desktop.
segmentation fault
...
/Users/nyoho/Library/Saved Application State
0 swift 0x0000000103392a68 llvm::sys::PrintStackTrace(__sFILE*) + 40
1 swift 0x0000000103392f54 SignalHandler(int) + 452
2 libsystem_platform.dylib 0x00007fff905bc5aa _sigtramp + 26
3 libsystem_platform.dylib 0x0000000000000014 _sigtramp + 1873033860
4 CarbonCore 0x00007fff894d13bf CSBackupIsItemExcluded + 92
5 CarbonCore 0x00007fff894d1502 CSBackupIsItemExcluded + 415
6 CarbonCore 0x00007fff894d1502 CSBackupIsItemExcluded + 415
7 CarbonCore 0x00007fff894d1502 CSBackupIsItemExcluded + 415
8 CarbonCore 0x00007fff894d1502 CSBackupIsItemExcluded + 415
9 CarbonCore 0x00007fff894d1502 CSBackupIsItemExcluded + 415
10 CarbonCore 0x00007fff894d1502 CSBackupIsItemExcluded + 415
11 CarbonCore 0x00007fff894d1502 CSBackupIsItemExcluded + 415
12 CarbonCore 0x00007fff894d1502 CSBackupIsItemExcluded + 415
13 CoreServicesInternal 0x00007fff8c2aa1b2 pathURLPropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 1300
14 CoreServicesInternal 0x00007fff8c2a1fbb prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 227
15 CoreServicesInternal 0x00007fff8c2a33d6 _FSURLCacheResourcePropertiesForKeys + 133
16 CoreServicesInternal 0x00007fff8c2af795 _GetDirectoryURLs(_CFURLEnumerator*) + 829
17 CoreServicesInternal 0x00007fff8c2ae8dc _URLEnumeratorGetNextURL + 157
18 Foundation 0x00007fff8a5a30fd -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 303
19 Foundation 0x000000010756d8ef -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096933153
20 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
21 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
22 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
23 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
24 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
25 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
26 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
27 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
28 Foundation 0x000000010756e0b7 -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096935145
29 Foundation 0x000000010756d46d -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] + 2096931999
30 swift 0x0000000102a07a79 llvm::JIT::runFunction(llvm::Function*, std::__1::vector<llvm::GenericValue, std::__1::allocator<llvm::GenericValue> > const&) + 329
31 swift 0x0000000102cb3fb3 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, char const* const*) + 1523
32 swift 0x00000001028f051a swift::RunImmediately(swift::CompilerInstance&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, swift::IRGenOptions&, swift::SILOptions const&) + 1066
33 swift 0x00000001026d954b frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 5275
34 swift 0x00000001026d696d main + 1677
35 libdyld.dylib 0x00007fff905ae5fd start + 1
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -interpret ./printExcludedFromBackup.swift -target x86_64-apple-darwin13.4.0 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -color-diagnostics -module-name printExcludedFromBackup -- /Users/nyoho/Library
zsh: segmentation fault ./printExcludedFromBackup.swift ~/Library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment