perl 5.000 defect: core dump 
Author Message
 perl 5.000 defect: core dump

Perl 5.000 dumps core on the following code:

#!./perl

    open(IN, "$ARGV[0]") || die "$!\n";
    while (<IN>) {
      NEXT_LOOP:
        $_ = <IN>;
        goto NEXT_LOOP unless eof(IN);
    }
    close(IN);

Quote:
}

This has been pared down from a much larger script that works fine
under 4.036.

It dies in pp_hot.c, line 1185, in the pp_iter function.  The
offending line is:

        *cx->blk_loop.itervar = &sv_undef;

The problem is that the itervar field is a null pointer.

The core dump occurs after the "close(IN)" instruction is executed.

That's as far as I can debug this, due to my relative unfamiliarity
with perl 5 code.  If anyone can help, I'd appreciate it.  (Also,
pardon my ignorance, but is there an official place to file perl 5
defect reports?)

thanks,
--steve


Distributed Object Computing Program    fax: (508)436-5122
Hewlett-Packard, Chelmsford, MA 01824

Standard Disclaimer:
All opinions expressed are my own and do not represent
official statements of the Hewlett-Packard Company.
--

Distributed Object Computing Program    fax: (508)436-5122
Hewlett-Packard, Chelmsford, MA 01824



Mon, 28 Apr 1997 11:01:01 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. PERLFUNC: dump - create an immediate core dump

2. PERLFUNC: dump - create an immediate core dump

3. perl -e and perl -I dump core

4. Perl/Tk SEGV core dump (Perl 5.6.0, Tk 800.022)

5. Perl 4.036 dump core on Alpha - a reason and a fix

6. Perl 4.036 core dumps

7. Perl 4.0.36 fails tests and dumps core on SunOS 4.1.3

8. local()? core dump with perl 4

9. Finding out properties of objects, and core dump (perl 5)

10. Perl 5 patchlevel 36 core dumps on HPUX v8 and v9

11. Perl Dumps Core

12. : perl doesn't build - sudden core dump

 

 
Powered by phpBB® Forum Software