[guest - Thu Aug 19 02:45:55 2004]:
Show quoted text> SerialPort runs for 2 or 3 hours ok and then quits with "Segmentation
> Fault"
> Function ob->lookfor and ob->lookclear is used in a loop.
> System is Slackware 9.0
Device::SerialPort is a pure-Perl wrapper. It does call the ports via
POSIX.pm. But both POSIX.pm and Device::SerialPort have been run for
long periods (they are used in home automation programs, among others.
I don't have Slackware 9.0 (I did lots of testing on RedHat). Have you
monitored memory usage? Perhaps you are slowly leaking (or continuously
allocating) within the loop. I've never had a Segmentation Fault
reported before (on this module), so I don't have much to suggest. The
lookfor and lookclear methods are often used in loops. Are you
receiving a large stream at a high rate? Do you receive any errors
before the evil fault?
-bill