chh0107   9달 전

swift로 문제를 푸는데 동일한 소스코드임에도 다음과 같은 컴파일오류가 발생하는 경우가 종종 있습니다. 다음은 에러 메시지 전문입니다.

swift: /home/buildnode/jenkins/workspace/oss-swift-5.1-package-linux-ubuntu-16_04/llvm/lib/Support/raw_ostream.cpp:726: void llvm::raw_fd_ostream::close(): Assertion `ShouldClose' failed.
Stack dump:
0.    Program arguments: swift-5.1/usr/bin/swift -frontend -c -primary-file Main.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -O -module-name Main -o /tmp/Main-e9f35b.o 
1.    While reading from 'Swift'
swift-5.1/usr/bin/swift[0x4932904]
swift-5.1/usr/bin/swift[0x4930520]
swift-5.1/usr/bin/swift[0x4932d28]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f610bbd1390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f610a2ad428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f610a2af02a]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dbd7)[0x7f610a2a5bd7]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dc82)[0x7f610a2a5c82]
swift-5.1/usr/bin/swift[0x49132d5]
swift-5.1/usr/bin/swift[0x48bca45]
swift-5.1/usr/bin/swift[0x3502aeb]
swift-5.1/usr/bin/swift[0x11bf9b0]
swift-5.1/usr/bin/swift[0x11bf5d7]
swift-5.1/usr/bin/swift[0x132c182]
swift-5.1/usr/bin/swift[0x117626d]
swift-5.1/usr/bin/swift[0x10cd256]
swift-5.1/usr/bin/swift[0x1140195]
swift-5.1/usr/bin/swift[0x114205a]
swift-5.1/usr/bin/swift[0x132c274]
swift-5.1/usr/bin/swift[0x79a8e1]
swift-5.1/usr/bin/swift[0x79a039]
swift-5.1/usr/bin/swift[0x508372]
swift-5.1/usr/bin/swift[0x506de1]
swift-5.1/usr/bin/swift[0x4a022d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f610a298830]
swift-5.1/usr/bin/swift[0x49fda9]
<unknown>:0: error: unable to execute command: Aborted
<unknown>:0: error: compile command failed due to signal 6 (use -v to see invocation)

다른 문제를 풀때도 간헐적으로 이런 문제가 발생하는데, 원인을 확인해서 조치해 주실 수 있을까요? 

동일한 소스코드로 컴파일 오류가 나는 케이스와 컴파일이 된 케이스로 채점번호 18732017(컴파일 에러), 18732024(컴파일 성공)을 제시합니다.

댓글을 작성하려면 로그인해야 합니다.