Skip Menu |
 

This queue is for tickets about the Device-SerialPort CPAN distribution.

Report information
The Basics
Id: 7406
Status: new
Priority: 0/
Queue: Device-SerialPort

People
Owner: Nobody in particular
Requestors: richard.sams [...] eunet.at
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.000002
Fixed in: (no value)



Subject: Segmentation Fault
Download (untitled) / with headers
text/plain 159b
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
From: wcbirthisel [...] alum.mit.edu
Download (untitled) / with headers
text/plain 864b
[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
From: richard.samsqunet.at
Download (untitled) / with headers
text/plain 374b
[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
I use a very slow baudrate (4800), i switched on $Babble and $testactive now it runs for on day without crash. One time before i got the message "Illegal insruction" .


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.