Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ncar!gatech!mcnc!rti!mozart!sherman From: sherman@unx.sas.com (Chris Sherman) Newsgroups: comp.lang.perl Subject: mg, causes numerous core dumps Message-ID: Date: 22 Jun 91 11:23:36 GMT Sender: news@unx.sas.com (Noter of Newsworthy Events) Organization: SAS Institute Inc. Lines: 34 Nntp-Posting-Host: foster.unx.sas.com A few months ago, somebody posted a little gem called mg, which was a really fancy grep command which could do all kinds of neat things. Well, it causes perl to dump core repeatedly now. I wish I had a non-stripped '-g' perl sitting around so I could give you a stack trace, but it shouldn't be too hard to reproduce the effect. I had some README's sitting in a directory, so I did a: % mg " or " RE* Segmentation fault (core dumped) If perl doesn't core dump, then the program just doesn't work, or it doesn't work correctly. I can't find a situation where it does work anymore. I think it is a reg exp problem since some of the fantatic looking errors look like: % mg the RE* README.SECOND:ThaThaThaThaThaThaThaThaThaThaThaThaThaThaThaThaThaThaThaTha ThaThaThaThaThaThaThaThaThaThaThaThaThaThaThaThank you for your interest in NOTE: The first line was cut off by me to keep lines < 80 columns for purposes of mailing. Also, the string 'the' doesn't appear anywhere in the line. This was a typical problem; it got the file right (usually), but not the correct line. Note: if you didn't save this one, send mail, and I can sent it too you. The code is hideous looking, thus hard to trace, but it did work once. Problem occurs on Sun4 and HPUX (all kinds). Perl v4p10. Thanx, -- Chris Sherman .................... sherman@unx.sas.com | ,-----------------------------------------' / Q: How many IBM CPU's does it take to execute a job? | A: Four; three to hold it down, and one to rip its head off.