Skip to content

runtime: panic during panic during deadlock detection #5797

@edre

Description

@edre
1. Run the program in http://play.golang.org/p/1BGCSGhqfH with GOMAXPROCS > 0 (not on
the playground)

What is the expected output?
A normal panic showing what all the goroutines are doing

What do you see instead?
"panic during panic" and truncated output.

Observed at recent head:
go version devel +c96951f239c0 Wed Jun 26 13:59:25 2013 -0700 linux/amd64
but it works correctly at 1.1.1
I bisected this regression to 916cb45c0d5f (runtime: add lr, ctxt, ret to Gobuf)

Background:
I set up a simple work queue with one channel feeding some goroutines, which write their
results to another channel. Using a high GOMAXPROX I expected to see the program using
all the cpu, but found that cpu usage starts high but quickly drops down to using one
cpu. It seemed like there was some deadlock, so I told it to panic halfway through, but
panicking failed...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions