develooper Front page | perl.perl5.porters | Postings from July 2008

[perl #57016] debugger: o warn=0 die=0 ignored

Thread Next
From:
Tye McQueen
Date:
July 16, 2008 14:40
Subject:
[perl #57016] debugger: o warn=0 die=0 ignored
Message ID:
rt-3.6.HEAD-9960-1216238547-448.57016-75-0@perl.org
# New Ticket Created by  "Tye McQueen" 
# Please include the string:  [perl #57016]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57016 >


This is a bug report for perl from tyemq@cpan.org,
generated with the help of perlbug 1.35 running under perl v5.8.7.


-----------------------------------------------------------------
[Please enter your report here]

In the Perl debugger, the command "o warn=0 die=0" does nothing useful.

This bug also applies to the latest 5.010 Perl I could conveniently find
on http://search.cpan.org/.

Here is a fix:

--- 5.8.7/perl5db.pl    2005-09-27 10:45:51 -0700
+++ tye/perl5db.pl    2008-07-16 12:52:18 -0700
@@ -7703,6 +7703,8 @@
         }
         elsif ($prevwarn) {
             $SIG{__WARN__} = $prevwarn;
+        } else {
+            undef $SIG{__WARN__};
         }
     } ## end if (@_)
     $warnLevel;
@@ -7744,6 +7746,9 @@
         elsif ($prevdie) {
             $SIG{__DIE__} = $prevdie;
             print $OUT "Default die handler restored.\n";
+        } else {
+            undef $SIG{__DIE__};
+            print $OUT "Die handler removed.\n";
         }
     } ## end if (@_)
     $dieLevel;

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
---
Site configuration information for perl v5.8.7:

Configured by bcundal at Mon Nov 14 11:08:07 PST 2005.

Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
  Platform:
    osname=linux, osvers=2.6.10w3data-web-1, archname=i686-linux
    uname='linux dasdev1 2.6.10w3data-web-1 #4 smp wed feb 2 09:46:25 pst
2005 i686 i686 i386 gnulinux '
    config_args='-des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-42)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:


---
@INC for perl v5.8.7:
    /home/tmcqueen/cvs/da/common/lib
    /home/tmcqueen/cvs/da/das2/lib
    /usr/local/lib/perl5/5.8.7/i686-linux
    /usr/local/lib/perl5/5.8.7
    /usr/local/lib/perl5/site_perl/5.8.7/i686-linux
    /usr/local/lib/perl5/site_perl/5.8.7
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.7:
    HOME=/home/tmcqueen
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/opt/dataflux/client/lib/:
    LOGDIR (unset)

PATH=/usr/local/bin:/usr/local/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/oracle/product/current/bin:/usr/local/dev-util/bin:/opt/oracle/product/current/bin:/home/tmcqueen/bin
    PERL5LIB=/home/tmcqueen/cvs/da/common/lib:/home/tmcqueen/cvs/da/das2/lib
    PERL_BADLANG (unset)
    SHELL=/bin/bash

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