Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11219] enum string interpolation segfaults at runtime #53618

Open
tayloraswift opened this issue Jul 27, 2019 · 4 comments
Open

[SR-11219] enum string interpolation segfaults at runtime #53618

tayloraswift opened this issue Jul 27, 2019 · 4 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution standard library Area: Standard library umbrella

Comments

@tayloraswift
Copy link
Contributor

Previous ID SR-11219
Radar None
Original Reporter @Kelvin13
Type Bug
Environment

Swift version 5.1-dev (LLVM 200186e28b, Swift d71790b)
Target: x86_64-unknown-linux-gnu

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, RunTimeCrash
Assignee None
Priority Medium

md5: 0d5ff5ec75523748bfca940f72919aff

Issue Description:

running this test file causes the program to segfault:

enum Feature:Equatable, CustomStringConvertible
{
    case kern(Bool) 
    case salt(Int)
    
    
    var description:String 
    {
        "\(self)"
    }
}

print(Feature.kern(true))
Stack dump:
0.  Program arguments: /home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/bin/swift -frontend -interpret enumcrash.swift -disable-objc-interop -color-diagnostics -module-name enumcrash 
1.  Swift version 5.1-dev (LLVM 200186e28b, Swift d71790b706)
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/bin/swift[0x4531bb4]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/bin/swift[0x452f80e]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/bin/swift[0x4531fc8]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fd6544bb890]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV15literalCapacity18interpolationCountABSi_SitcfC+0xe)[0x7fd650dc107e]
[0x7fd6548ed150]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
/home/klossy/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2019-07-22-a/usr/lib/swift/linux/libswiftCore.so($ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzlF+0x1a)[0x7fd650dec34a]
[0x7fd6548ed1fc]
[0x7fd6548ed370]
Segmentation fault (core dumped)
@theblixguy
Copy link
Collaborator

Seems to be causing an infinite loop in `public mutating func appendInterpolation<T>(_ value: T) where T: CustomStringConvertible`

@theblixguy
Copy link
Collaborator

cc brentdax (JIRA User)

@belkadan
Copy link
Contributor

Stringification in an interpolation goes through CustomStringConvertible, so you've just put in infinite recursion. How could we diagnose this better, though?

@swift-ci
Copy link
Collaborator

swift-ci commented Dec 8, 2019

Comment by Jacob Mao (JIRA)

Can I try to fix this?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

5 participants