home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!cats.ucsc.edu!haynes
- From: haynes@cats.ucsc.edu (Jim Haynes)
- Newsgroups: comp.lang.perl
- Subject: bug report
- Message-ID: <17h7q8INNs5s@darkstar.UCSC.EDU>
- Date: 27 Aug 92 00:32:08 GMT
- Organization: University of California; Santa Cruz
- Lines: 62
- NNTP-Posting-Host: hobbes.ucsc.edu
-
-
- disclaimer: I'm not yet a perl programmer, but a system manager running other
- people's scripts.
-
- On a Sun Sparc IPC, running SunOS 4.1.1
- running perl 4.010 but it also happens with 4.019 and 4.035
-
- I get a segmentation violation. adb on the core dump file gives
-
- # adb /usr/tmp/perl /sysdev/core
- $c
- core file = /sysdev/core -- program ``perl''
- SIGSEGV 11: segmentation violation
- _memcpy(?)
- _realloc(0xc2c08,0xffffffff,0x0,0x19,0xb,0x3ff8) + 160
- _str_grow(0x75a48,0xffffffff,0xfffffffd,0xffffffff,0x2018,0xc2c08) + b8
- _str_gets(0x75a48,0xf77a1fd8,0xa,0x105408,0xfffffffd,0xc2c08) + 2c8
- _cmd_exec(0x0,0x0,0x206,0x80,0x75a48,0x98388) + 1598
- _cmd_exec(0x0,0x0,0x5000,0x0,0x747b8,0x93548) + 28e8
- _do_subr(0x8b0c8,0x378b48,0x8eb88,0x1,0xffffffff,0x77c08) + 44c
- _eval(0x8b0c8,0x77c04,0x1,0x59,0x3,0x8b108) + 5a9c
- _cmd_exec(0x0,0x0,0x207,0x0,0x747b8,0x8b148) + 1de8
- _cmd_exec(0x0,0x1,0x282,0xffffffff,0x747d8,0x8b488) + 251c
- _cmd_exec(0x0,0x71,0x5207,0x80,0x873c8,0x8bac8) + 2958
- _cmd_exec(0x0,0x0,0x1207,0x778ab,0x86a88,0x872c8) + 28e8
- _main(0x0,0xf7fffd9c,0xf7fffdec,0x96c48,0xf7fffff9,0xa86c8) + 22b8
-
- with perl compiled with debugging:
- panic: realloc at /usr/local/change.pl line 235, <RCSFILE> line 308.
-
- The context of the changelog.pl script is
-
- }
- }
- last if /^desc/;
- }
-
- while(<RCSFILE>) { # Skip description
- last if /^@+$|[^@]@$/;
- }
-
- LINE 235>>> while(<RCSFILE>) {
- chop;
- if (/^(\d)+\.(\d)+/) {
- if ($vers{$_}) {
- $v = $_;
- undef $rcs_text;
- $_ = <RCSFILE>; # get rid of "log"
- while(<RCSFILE>) {
- last if /^@$/;
- $rcs_text .= $_;
- }
-
- and I don't know what RCSFILE contains at this point, because I don't
- know the name of the file it was working on. I could send the whole
- script to anyone who cares to look at it.
- --
- haynes@cats.ucsc.edu
- haynes@cats.bitnet
-
- "Any clod can have the facts, but having opinions is an Art."
- Charles McCabe, San Francisco Chronicle
-