develooper Front page | perl.perl5.porters | Postings from November 2015

[perl #126735] Can not quit from perl debugger by 'q'

Thread Previous | Thread Next
Shlomi Fish via RT
November 26, 2015 20:25
[perl #126735] Can not quit from perl debugger by 'q'
Message ID:
On Thu Nov 26 00:57:44 2015, wrote:
> To:
> Subject: Can not quit from perl debugger by 'q'
> Cc:
> Reply-To:
> Message-Id: <5.22.0_28030_1448525199@keswork>
> From:
> This is a bug report for perl from,
> generated with the help of perlbug 1.40 running under perl 5.22.0.
> -----------------------------------------------------------------
> [Please describe your issue here]
> When I try debug script remotely I set:
> PERLDB_OPTS=RemotePort=keswork:9001
> and if the nobody occasionally listen that port
> I can not exit from debugger, even can not run any command
> Only CTRL+C works.

Thanks for the report, kes! The problem happens when one specifies a RemotePort that cannot be connected to. Attached is a patch to fix the problem on mostly recent bleadperl. It passes all tests and adds some new test assertions. The patch was caused by a lexical variable in lib/ that was used in the BEGIN stage before being initialised. I believe it was I who introduced this variable as part of the massive debugger refactoring I have done as part of one of my TPF grants, and it wasn't caught due to inadequate test coverage.

I ran into some problems getting the tests not to hang but they should be OK now.

Please look into applying it.


-- Shlomi Fish

via perlbug:  queue: perl5 status: new

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About