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.