关于 ”Segmentation fault"

问与答 · hikelee · 发布于 8 个月前 · 628 次阅读

最近在用Swift Reflection时,出现了一个“Segmentation fault”。有知道怎么解决这个问题的吗? 重现问题如下,具体代码在github

$uname -a
    Linux dev 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux 

$ swift --version
    Swift version 3.0 (swift-3.0.1-PREVIEW-1)
    Target: x86_64-unknown-linux-gnu

$ git clone https://github.com/hikelee/SegmentationFault.git

$ cd SegmentationFault

$ swift build
    Cloning https://github.com/Zewo/Reflection.git
    HEAD is now at 2bc1a76 make mappable tests public on reflection
    Resolved version: 0.14.0
    Compile Swift Module 'Reflection' (23 sources)
    Compile Swift Module 'Main' (1 sources)
    Linking ./.build/debug/Main

$ .build/debug/Main
    Person(firstName: "James")
    Person(firstName: "James")
    Person(firstName: "James")
    Person(firstName: "James")
    ------
    Person(firstName: "James")
    Person(firstName: "pb?\0\0\0\0\0a")
    Person(firstName: "\u{10}\\u{10}\0a")
    Segmentation fault
共收到 0 条回复
回帖