Skip Menu |

This queue is for tickets about the IO-Prompt CPAN distribution.

Report information
The Basics
Id: 14909
Status: open
Priority: 0/
Queue: IO-Prompt

People
Owner: Nobody in particular
Requestors: emmbee [...] tirwhan.org
Cc:
AdminCc:

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



Subject: Segmentation fault in while loop
IO::Prompt version 0.99.2 IO::Handle version 1.24 When trying to use prompt() in a while loop (as per the documentation), a segmentation fault occurs every time. For example: perl -MIO::Prompt -e'while(prompt){print 1}' will SEGV. This happens only if something is done in the loop (i.e. "while(prompt){}" will run), but seems to be regardless of what is done. This occurs on Linux (Debian Sarge, Ubuntu Hoary and Fedora FC4 at least), perl v5.8.4 built for i386-linux-thread-multi. strace output from running the program is attached, it complains about an illegal seek on /dev/tty.

Message body is not shown because it is too large.

From: emmbee [...] tirwhan.org
In fact, you can close this bug, I've just found it's caused by Want.pm and is fixed in 0.09.