Skip to content

playground: Play gets "Error communicating with remote server" running a very simple function #5744

@gopherbot

Description

@gopherbot

by Jens.Alfke:

I have a very short program that seems to cause something to break in the
play.golang.org runner, causing the web UI to output "Error communicating with
remote server" instead of the expected output.

What steps will reproduce the problem?
1. Run http://play.golang.org/p/DGwJxtT2BR

What is the expected output?
It should output the line "EXIT" followed by a panic report (due to the nil
pointer access.)

What do you see instead?
"Error communicating with remote server."

Notes:
* If you comment out the "defer" call in the function, it will behave as
expected; so it's some kind of problem running the deferred code while handling a panic.
* A simpler nil-pointer dereference does _not_ trigger this problem; it has something to
do with the Timer.Stop method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions