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

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

Thread Previous | Thread Next
From:
Shlomi Fish via RT
Date:
November 26, 2015 20:25
Subject:
[perl #126735] Can not quit from perl debugger by 'q'
Message ID:
rt-4.0.18-21937-1448569526-495.126735-15-0@perl.org
On Thu Nov 26 00:57:44 2015, kes-kes@yandex.ua wrote:
> To: perlbug@perl.org
> Subject: Can not quit from perl debugger by 'q'
> Cc: kes-kes@yandex.ru
> Reply-To: kes-kes@yandex.ru
> Message-Id: <5.22.0_28030_1448525199@keswork>
> From: kes-kes@yandex.ru
> 
> 
> This is a bug report for perl from kes-kes@yandex.ru,
> 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/perl5db.pl 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.

Regards,

-- Shlomi Fish


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=126735

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About