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

A certain nested coroutines causes LLDB RPC Server crash on a breakpoint #31

Open
heshuimu opened this issue Oct 15, 2020 · 4 comments
Open

Comments

@heshuimu
Copy link

heshuimu commented Oct 15, 2020

For the following code, if I put a breakpoint on line where let a is in Xcode, LLDB debug server will crash.

If I start the initial coroutine on main queue instead of global, or if I remove the middle CoFuture, no crashes would happen when the breakpoint hits.

import UIKit
import SwiftCoroutine

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        DispatchQueue.global().startCoroutine {
            try CoFuture<Void> {
                try DispatchQueue.main.await {
                    let a = 1 /* SET BREAKPOINT ON THIS LINE*/
                }
            }.await()
        }
    }

}
Message from debugger: The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.

Unfortunately, when this crash happens, no actual diagnostic files are actually generated.

@heshuimu heshuimu changed the title A certain nested coroutines causes LLDB RPC Server crash when placing a breakpoint A certain nested coroutines causes LLDB RPC Server crash on a breakpoint Oct 15, 2020
@ladeiko
Copy link

ladeiko commented Oct 16, 2020

Try to get logs from ~/Library/Logs/DiagnosticReports

@ladeiko
Copy link

ladeiko commented Oct 16, 2020

I have the same issiues

@heshuimu
Copy link
Author

Try to get logs from ~/Library/Logs/DiagnosticReports

I wanted to, but when the crash happens nothing appears in that directory.

@NicoDB79
Copy link

I have the same issue. Crash when putting breakpoint in nested coroutines.
Did someone find a solution?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants