[Bug 644116] Re: Perl script freezes when accessing a USB serial port

Christopher M. Penalver christopher.m.penalver at gmail.com
Sun Dec 2 21:30:55 UTC 2012


** This bug is no longer a duplicate of bug 661321
   Opening /dev/ttyUSB0 hangs, pl2303.ko module

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to perl in Ubuntu.
https://bugs.launchpad.net/bugs/644116

Title:
  Perl script freezes when accessing a USB serial port

Status in “perl” package in Ubuntu:
  New

Bug description:
  Binary package hint: perl

  I have the MyBlaster.pl that controls IR blaster. it was working fine on Ubuntu 10.04. now it freezes
  The following subroutine is called and freeze:

  my $serial=init_serial("/dev/ttyUSB0","19200");

  The first few line of this subroutine are:

  sub init_serial {
          my($port,$baud)=@_;
          my($termios,$cflag,$lflag,$iflag,$oflag);
          my($voice);
   
          my $serial=new FileHandle("+>$port") || die "Could not open $port: $!\n";

  The call to New FileHandler fails, which is in

  IO::File::new(/usr/lib/perl/5.10/IO/File.pm:35):

  In the subroutime new, when performing open()

  It freezes in that routine.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: perl 5.10.1-12ubuntu2
  ProcVersionSignature: Ubuntu 2.6.35-22.32-generic 2.6.35.4
  Uname: Linux 2.6.35-22-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  Date: Mon Sep 20 22:41:24 2010
  InstallationMedia: Mythbuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: perl

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/644116/+subscriptions




More information about the foundations-bugs mailing list