Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!frankland-river!pem From: pem@frankland-river.aaii.oz.au (Paul E. Maisano) Newsgroups: comp.lang.perl Subject: Patched perl misbehaves under the debugger Message-ID: <1210@frankland-river.aaii.oz.au> Date: 4 Mar 90 05:35:34 GMT Organization: Australian AI Institute Lines: 28 After bringing my version of perl up to patch level 12 on a sparcstation1 and a SUN 3/60, I noticed that "perl -d prog" dumped core occasionally. I narrowed it down to explicit returns inside a subroutine. This happens on both the sparcstation and the sun3. The scripts work fine when run normally. So the work around is obvious: write your programs in such a way that you either don't use explicit returns or so they work first time and need no debugging :-) Seriously, I have just been using perl.old for debugging purposes. This program dumps core when run under the debugger: --------------- #!/usr/bin/perl sub bug { return 1; } &bug; --------------- ------------------ Paul E. Maisano Australian Artificial Intelligence Institute 1 Grattan St. Carlton, Vic. 3053, Australia Ph: +613 663-7922 Fax: +613 663-7937 Email: pem@aaii.oz.au UUCP: {uunet,mcsun,ukc,nttlab}!munnari!aaii.oz.au!pem