BZ #10: RFE: Print IDs of locks on SIGQUIT

Status fields:

creation_ts:2005-07-22 02:54
component:vm
version:unspecified
rep_platform:All
op_sys:Linux
bug_status:REOPENED
reporter:greenrd@greenrd.org
It would be useful for the SIGQUIT handler to print - in addition to the stack
traces that it currently prints - IDs of monitors held by, and being waited for
by, each thread. I just encountered a VM deadlock and this might have helped me
diagnose it.

Comment #1 by twisti@complang.tuwien.ac.at on 2005-07-22 12:07:56

I agree, that would be really useful. I'm not sure yet how it can be done. I'll
look into it.

Comment #2 by edwin.steiner@gmx.net on 2005-11-19 14:25:03

This is one of the cases where the spec contradicts itself:

[from Section 4.9.1 The Verification Process]

    Pass 4:
    For efficiency reasons, certain tests that could in principle be performed
    in Pass 3 are delayed until the first time the code for the method is
    actually invoked. In so doing, Pass 3 of the verifier avoids loading class
    files unless it has to.

In fact it's not only for efficiency but correctness. There is a lot of code
out there that assumes that only code which is actually executed is verified.
(And only *when* it is executed for the first time.)

Comment #3 by edwin.steiner@gmx.net on 2005-11-19 14:30:50

Sorry, the last comment was meant for a different bug.

Comment #4 by stefan@complang.tuwien.ac.at on 2010-09-23 09:35:32

Sorry, actually it's not implemented.