-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const subs hurt under debugger #2902
Comments
From @andkCreated by [email protected]Since patch 7389 we have a problem with Socket::INET in the debugger. # /usr/local/perl-5.7.0@7389/bin/perl -de 'use Net::FTP;$_ = Net::FTP->new("localhost");' Loading DB routines from perl5db.pl version 1.07 Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): use Net::FTP;$_ = Net::FTP->new("localhost"); gdb reports (gdb) bt Perl Info
|
From [Unknown Contact. See original ticket]"Andreas J. Koenig" <k@ak-71.mind.de> wrote:
This solves it for me. (An alternative would be to set CvNODEBUG when we produce null CvGVs. -John Inline Patch--- perl@7892/op.c.dist Tue Nov 28 00:56:32 2000
+++ perl@7892/op.c Tue Nov 28 01:02:36 2000
@@ -4569,17 +4569,11 @@
if (const_sv) {
SvREFCNT_inc(const_sv);
if (cv) {
- cv_undef(cv);
-#ifdef USE_THREADS
- New(666, CvMUTEXP(cv), 1, perl_mutex);
- MUTEX_INIT(CvMUTEXP(cv));
- CvOWNER(cv) = 0;
-#endif /* USE_THREADS */
+ assert(!CvROOT(cv) && !CvCONST(cv));
sv_setpv((SV*)cv, ""); /* prototype is "" */
CvXSUBANY(cv).any_ptr = const_sv;
CvXSUB(cv) = const_sv_xsub;
CvCONST_on(cv);
- /* XXX Does anybody care that CvFILE(cv) is blank? */
}
else {
GvCV(gv) = Nullcv; |
From @andk
> This solves it for me. So it does here. Thanks! I'll make this my default perl to give it > (An alternative would be to set CvNODEBUG when we produce null CvGVs. Are you aware that filt-util.t isn't in the MANIFEST anymore and needs |
From @vanstynIn <m140e1N-000FOoC@feynman.localnet>, John Tobey writes: This reverses a patch that I recently raised to solve a coredump. See Hugo |
From [Unknown Contact. See original ticket]andreas.koenig@anima.de (Andreas J. Koenig) wrote:
Thanks.
Ermm.. now I am, thanks. I guess I'll grab the update-a-perl script -John |
From @simoncozensOn Tue, Nov 28, 2000 at 11:56:41AM -0500, John Tobey wrote:
Hmph. What does that give you that |
From [Unknown Contact. See original ticket]Hugo <hv@crypt.compulink.co.uk> wrote:
Removing cv_undef(cv) removes the need for the patch. -John |
From @vanstynIn <m140oVW-000FOoC@feynman.localnet>, John Tobey writes: Ah, I'm sorry: I hadn't spotted that the cv_undef() was also removed. Hugo |
Migrated from rt.perl.org#4783 (status was 'resolved')
Searchable as RT4783$
The text was updated successfully, but these errors were encountered: