The following demonstrates a problem I've come across with the use of the Perl debugger and the warn builtin. I have tried to isolate the problem to as little Perl code as possible. Anyone have a clue how I might get more info from Perl on what's going on?
Thanks,
Harry DeLano
hdelano@adelphia.net
[delano@blackbox test]$ cat junk1
digraph "db-a12" {
size="6,2.75";
page="8.5,11";
margin="1";
[delano@blackbox test]$ cat warnproblem.pl
open I , "junk1";
@b = <I>;
close I;
@c[0] = "\tmargin=\"1\";\n";
warn "entering xxx\n";
xxx( @c);
$c[0] = $b[3];
warn "entering xxx\n";
xxx( @c);
exit;
sub xxx {
warn "hi.\n";
return;
}
[delano@blackbox test]$ perl -d warnproblem.pl
Loading DB routines from perl5db.pl version 1.19
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
main::(warnproblem.pl:1): open I , "junk1";
DB<1> c
entering xxx
hi.
main::xxx('\x{9}margin="1";\x{a}') called at warnproblem.pl line 6
entering xxx
panic: malloc.
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.
DB<1> q
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.