Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Adding features does not necessarily increase functionality -- it just makes the manuals thicker.


computers / alt.os.linux.mint / Re: (Resolved) Re: perl debugger broken?

SubjectAuthor
* perl debugger broken?Mike Scott
`* (Resolved) Re: perl debugger broken?Mike Scott
 `- Re: (Resolved) Re: perl debugger broken?Keith Thompson

1
perl debugger broken?

<uigt4t$1pihp$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7068&group=alt.os.linux.mint#7068

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!news.nntp4.net!news5.corell.dk!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: usenet...@scottsonline.org.uk.invalid (Mike Scott)
Newsgroups: alt.os.linux.mint
Subject: perl debugger broken?
Date: Wed, 8 Nov 2023 21:04:29 +0000
Organization: Scott family
Lines: 39
Message-ID: <uigt4t$1pihp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Nov 2023 21:04:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a987e180de130f01a93c9bed194d875f";
logging-data="1886777"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vE4A7LVi77lzxhqhM5R5k+rIxeNKpBgA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Xe7RwDKrJNF35DWSWIMi3CBc2Lg=
Content-Language: en-GB
 by: Mike Scott - Wed, 8 Nov 2023 21:04 UTC

Hi all.

I've found that the perl debugger 'v' command fails since I upgraded a
while ago.

It's OK on Mint 20.3 (perl 5.30) but broken on Mint 21 (perl 5.34).

I get this:
Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(/tmp/t.pl:1): print "hello\n";
DB<1> v

Undefined subroutine &DB::cmd_l called at
/usr/share/perl/5.34/perl5db.pl line 6034.
at /usr/share/perl/5.34/perl5db.pl line 6034.
DB::cmd_v("v", "", 1) called at /usr/share/perl/5.34/perl5db.pl line 4798
DB::cmd_wrapper("v", "", 1) called at /usr/share/perl/5.34/perl5db.pl
line 4311
DB::Obj::_handle_cmd_wrapper_commands(DB::Obj=HASH(0x55f4251379a0))
called at /usr/share/perl/5.34/perl5db.pl line 3200
DB::DB called at /tmp/t.pl line 1
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.

Indeed, cmd_l is not defined in the current perl5db.pl script.

Has no-one else noticed this? Any fix? - otherwise I'll have to copy
over the older script (or part of it!).

Thanks.

--
Mike Scott
Harlow, England

(Resolved) Re: perl debugger broken?

<uiicuv$25fus$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7069&group=alt.os.linux.mint#7069

  copy link   Newsgroups: alt.os.linux.mint comp.lang.perl.misc
Path: i2pn2.org!i2pn.org!news.niel.me!glou.org!news.glou.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!news.mixmin.net!news2.arglkargh.de!news.karotte.org!gandalf.srv.welterde.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: usenet...@scottsonline.org.uk.invalid (Mike Scott)
Newsgroups: alt.os.linux.mint,comp.lang.perl.misc
Subject: (Resolved) Re: perl debugger broken?
Date: Thu, 9 Nov 2023 10:40:31 +0000
Organization: Scott family
Lines: 44
Message-ID: <uiicuv$25fus$1@dont-email.me>
References: <uigt4t$1pihp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 9 Nov 2023 10:40:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9599f029ab955ef7b730438d7e950781";
logging-data="2277340"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19emMWHgqispgPQ+ANlbLbNr504V05AZdw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YbmnLVeDpQi/LjGQTF3867i71DY=
Content-Language: en-GB
In-Reply-To: <uigt4t$1pihp$1@dont-email.me>
 by: Mike Scott - Thu, 9 Nov 2023 10:40 UTC

On 08/11/2023 21:04, Mike Scott wrote:
> Hi all.
>
> I've found that the perl debugger 'v' command fails since I upgraded a
> while ago.
>
> It's OK on Mint 20.3 (perl 5.30) but broken on Mint 21 (perl 5.34).
>
> I get this:
> Enter h or 'h h' for help, or 'man perldebug' for more help.
>
> main::(/tmp/t.pl:1):    print "hello\n";
>   DB<1> v
>
> Undefined subroutine &DB::cmd_l called at
......
> Indeed, cmd_l is not defined in the current perl5db.pl script.
>

I find this really weird; somehow someone's gratuitously removed a
complete 4-line subroutine and nobody noticed.

Anyway, I copied the relevant lines from an older version, and it seems
to work now.

In perl5db.pl, add
sub cmd_l {
my (undef, $line) = @_;

return _cmd_l_main($line);
}

after the (badly worded) comment
## end sub cmd_l

(X-posted to c.l.p.misc in case anyone there is interested.)

--
Mike Scott
Harlow, England

Re: (Resolved) Re: perl debugger broken?

<878r76fx3a.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7072&group=alt.os.linux.mint#7072

  copy link   Newsgroups: alt.os.linux.mint comp.lang.perl.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: alt.os.linux.mint,comp.lang.perl.misc
Subject: Re: (Resolved) Re: perl debugger broken?
Date: Thu, 09 Nov 2023 13:14:33 -0800
Organization: None to speak of
Lines: 54
Message-ID: <878r76fx3a.fsf@nosuchdomain.example.com>
References: <uigt4t$1pihp$1@dont-email.me> <uiicuv$25fus$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="473460d27044b57d72b3273154386843";
logging-data="2524755"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TzOW7mgk/PtSPvZ5JTmks"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:YGbaDglVZosfNVQ5gBw588MzevM=
sha1:9pF7wVm04as8avOw4BLa4nCjT/s=
 by: Keith Thompson - Thu, 9 Nov 2023 21:14 UTC

Mike Scott <usenet.16@scottsonline.org.uk.invalid> writes:
> On 08/11/2023 21:04, Mike Scott wrote:
>> Hi all.
>> I've found that the perl debugger 'v' command fails since I upgraded
>> a while ago.
>> It's OK on Mint 20.3 (perl 5.30) but broken on Mint 21 (perl 5.34).
>> I get this:
>> Enter h or 'h h' for help, or 'man perldebug' for more help.
>> main::(/tmp/t.pl:1):    print "hello\n";
>>   DB<1> v
>> Undefined subroutine &DB::cmd_l called at
> .....
>> Indeed, cmd_l is not defined in the current perl5db.pl script.
>
> I find this really weird; somehow someone's gratuitously removed a
> complete 4-line subroutine and nobody noticed.
>
> Anyway, I copied the relevant lines from an older version, and it
> seems to work now.
>
> In perl5db.pl, add
> sub cmd_l {
> my (undef, $line) = @_;
>
> return _cmd_l_main($line);
> }
>
> after the (badly worded) comment
> ## end sub cmd_l
>
>
> (X-posted to c.l.p.misc in case anyone there is interested.)

This seems to be the relevant commit in https://github.com/perl/perl5 :

commit b7a96fc9f5394c34d86d8b476ef4293f81ce341b
Author: [omitted]
Date: 2020-03-31 16:45:04 +1100

fix `l $var` where $var is a lexical variable

As with `i $obj` the DB::Obj in the call stack prevented DB::eval
from compiling/executing in the context of the debugged code.

I've omitted the author's name, but it's easy enough to look up.
The commit is over 5000 lines. I haven't studied the changes.

`sub cmd_l` is present in 5.33.0, absent in 5.33.1 and later and in
5.34.0 and later.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor